home/sway: improve handling of optional swayfx configuration
Some checks are pending
flakehub / flakehub-publish (push) Waiting to run
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run

This commit is contained in:
Aly Raffauf 2024-07-27 23:15:00 -04:00
parent 01096d5a44
commit 49ff24b4a9

View file

@ -228,7 +228,8 @@ in {
workspaceAutoBackAndForth = true; workspaceAutoBackAndForth = true;
}; };
extraConfig = '' extraConfig =
''
bindsym --locked XF86MonBrightnessUp exec ${helpers.brightness.up} bindsym --locked XF86MonBrightnessUp exec ${helpers.brightness.up}
bindsym --locked XF86MonBrightnessDown exec ${helpers.brightness.down} bindsym --locked XF86MonBrightnessDown exec ${helpers.brightness.down}
bindsym --locked XF86AudioRaiseVolume exec ${helpers.volume.up} bindsym --locked XF86AudioRaiseVolume exec ${helpers.volume.up}
@ -253,10 +254,9 @@ in {
bindswitch --reload --locked lid:on output eDP-1 disable bindswitch --reload --locked lid:on output eDP-1 disable
bindswitch --reload --locked lid:off output eDP-1 enable bindswitch --reload --locked lid:off output eDP-1 enable
''
${ + lib.strings.optionalString (config.wayland.windowManager.sway.package
if config.wayland.windowManager.sway.package == pkgs.swayfx == pkgs.swayfx) ''
then "
blur enable blur enable
blur_passes 1 blur_passes 1
@ -279,8 +279,6 @@ in {
layer_effects swayosd blur enable layer_effects swayosd blur enable
layer_effects swayosd blur_ignore_transparent enable layer_effects swayosd blur_ignore_transparent enable
layer_effects waybar blur enable layer_effects waybar blur enable
layer_effects waybar blur_ignore_transparent enable" layer_effects waybar blur_ignore_transparent enable
else ""
}
''; '';
} }