sway: Only add swayfx config if it is being used
This commit is contained in:
parent
a54b182775
commit
8ddfb16749
1 changed files with 19 additions and 15 deletions
|
@ -284,13 +284,19 @@ in
|
||||||
|
|
||||||
startup = cfg.startup;
|
startup = cfg.startup;
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = builtins.concatStringsSep "\n" (
|
||||||
|
[
|
||||||
|
''
|
||||||
for_window [app_id="^.*"] inhibit_idle fullscreen
|
for_window [app_id="^.*"] inhibit_idle fullscreen
|
||||||
for_window [class="^.*"] inhibit_idle fullscreen
|
for_window [class="^.*"] inhibit_idle fullscreen
|
||||||
for_window [app_id="org.gnome.Calculator"] floating enable
|
for_window [app_id="org.gnome.Calculator"] floating enable
|
||||||
for_window [shell="xwayland"] title_format "%title [XWayland]"
|
for_window [shell="xwayland"] title_format "%title [XWayland]"
|
||||||
for_window [app_id="^.*iwgtk$"] floating enable
|
for_window [app_id="^.*iwgtk$"] floating enable
|
||||||
|
|
||||||
|
include /etc/sway/config.d/*
|
||||||
|
''
|
||||||
|
]
|
||||||
|
++ lib.optional (cfg.package == pkgs.swayfx) ''
|
||||||
blur enable
|
blur enable
|
||||||
blur_xray disable
|
blur_xray disable
|
||||||
|
|
||||||
|
@ -299,10 +305,8 @@ in
|
||||||
default_dim_inactive 0.2
|
default_dim_inactive 0.2
|
||||||
|
|
||||||
corner_radius 10
|
corner_radius 10
|
||||||
|
''
|
||||||
|
);
|
||||||
include /etc/sway/config.d/*
|
|
||||||
'';
|
|
||||||
# exec --no-startup-id ${pkgs.swaynotificationcenter}/bin/swaync
|
# exec --no-startup-id ${pkgs.swaynotificationcenter}/bin/swaync
|
||||||
# exec --no-startup-id ${pkgs.networkmanagerapplet}/bin/nm-applet --indicator
|
# exec --no-startup-id ${pkgs.networkmanagerapplet}/bin/nm-applet --indicator
|
||||||
# exec --no-startup-id ${pkgs.swayidle}/bin/swayidle -w timeout 900 "${swaylockcmd}"
|
# exec --no-startup-id ${pkgs.swayidle}/bin/swayidle -w timeout 900 "${swaylockcmd}"
|
||||||
|
|
Loading…
Reference in a new issue