home/sway: check before adding swayfx-specific configuration

This commit is contained in:
Aly Raffauf 2024-05-12 18:19:40 -04:00
parent d7d9094594
commit 8d4c870999

View file

@ -447,23 +447,29 @@
bindswitch --reload --locked lid:on output eDP-1 disable
bindswitch --reload --locked lid:off output eDP-1 enable
blur enable
blur_passes 1
${
if config.wayland.windowManager.sway.package == pkgs.swayfx
then "
blur enable
blur_passes 1
corner_radius 10
shadows enable
corner_radius 10
shadows enable
layer_effects launcher blur enable
layer_effects launcher blur_ignore_transparent enable
layer_effects swaybar blur enable
layer_effects swaybar blur_ignore_transparent enable
layer_effects waybar blur enable
layer_effects waybar blur_ignore_transparent enable
layer_effects notifications blur enable
layer_effects notifications blur_ignore_transparent enable
layer_effects logout_dialog blur enable
layer_effects swayosd blur enable
layer_effects swayosd blur_ignore_transparent enable"
else ""
}
layer_effects launcher blur enable
layer_effects launcher blur_ignore_transparent enable
layer_effects swaybar blur enable
layer_effects swaybar blur_ignore_transparent enable
layer_effects waybar blur enable
layer_effects waybar blur_ignore_transparent enable
layer_effects notifications blur enable
layer_effects notifications blur_ignore_transparent enable
layer_effects logout_dialog blur enable
layer_effects swayosd blur enable
layer_effects swayosd blur_ignore_transparent enable
'';
xdg.portal = {