From 8d4c870999db4a549af2dd1aeb593647ebc9dbe7 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 12 May 2024 18:19:40 -0400 Subject: [PATCH] home/sway: check before adding swayfx-specific configuration --- homeManagerModules/desktop/sway/default.nix | 36 ++++++++++++--------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/homeManagerModules/desktop/sway/default.nix b/homeManagerModules/desktop/sway/default.nix index 567d6685..2e79d433 100644 --- a/homeManagerModules/desktop/sway/default.nix +++ b/homeManagerModules/desktop/sway/default.nix @@ -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 = {