sway: Only add swayfx config if it is being used

This commit is contained in:
Erwin Boskma 2024-05-07 08:46:26 +02:00
parent a54b182775
commit 8ddfb16749
Signed by: erwin
SSH key fingerprint: SHA256:3F6Cm6I3erRqlBwEghZWAQl6eS5WrGTX1Vs/Evec1lQ

View file

@ -284,25 +284,29 @@ in
startup = cfg.startup;
};
extraConfig = ''
for_window [app_id="^.*"] inhibit_idle fullscreen
for_window [class="^.*"] inhibit_idle fullscreen
for_window [app_id="org.gnome.Calculator"] floating enable
for_window [shell="xwayland"] title_format "%title [XWayland]"
for_window [app_id="^.*iwgtk$"] floating enable
extraConfig = builtins.concatStringsSep "\n" (
[
''
for_window [app_id="^.*"] inhibit_idle fullscreen
for_window [class="^.*"] inhibit_idle fullscreen
for_window [app_id="org.gnome.Calculator"] floating enable
for_window [shell="xwayland"] title_format "%title [XWayland]"
for_window [app_id="^.*iwgtk$"] floating enable
blur enable
blur_xray disable
include /etc/sway/config.d/*
''
]
++ lib.optional (cfg.package == pkgs.swayfx) ''
blur enable
blur_xray disable
shadows enable
shadows enable
default_dim_inactive 0.2
default_dim_inactive 0.2
corner_radius 10
include /etc/sway/config.d/*
'';
corner_radius 10
''
);
# exec --no-startup-id ${pkgs.swaynotificationcenter}/bin/swaync
# exec --no-startup-id ${pkgs.networkmanagerapplet}/bin/nm-applet --indicator
# exec --no-startup-id ${pkgs.swayidle}/bin/swayidle -w timeout 900 "${swaylockcmd}"