diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 0314afe..e8a0bf8 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -235,6 +235,10 @@ in hl.env("DRI_PRIME", "pci-0000_03_00_0") ''} + -- Layer rules: blur behind bar and toasts + hl.layer_rule({ match = { namespace = "quickshell-bar" }, blur = true, ignorealpha = 0.3 }) + hl.layer_rule({ match = { namespace = "quickshell-toast" }, blur = true, ignorealpha = 0.3 }) + -- Startup hl.on("hyprland.start", function() -- Ensure hyprland-session.target starts even if HM's @@ -245,10 +249,6 @@ in hl.exec_cmd("wl-paste --type text --watch cliphist store") hl.exec_cmd("wl-paste --type image --watch cliphist store") hl.exec_cmd("hyprctl setcursor Bibata-Modern-Ice 24") - hl.exec_cmd("hyprctl keyword layerrule 'blur, quickshell-bar'") - hl.exec_cmd("hyprctl keyword layerrule 'blur, quickshell-toast'") - hl.exec_cmd("hyprctl keyword layerrule 'ignorealpha 0.3, quickshell-bar'") - hl.exec_cmd("hyprctl keyword layerrule 'ignorealpha 0.3, quickshell-toast'") hl.exec_cmd("swayosd-server") ${lib.optionalString isMacbook ''hl.exec_cmd("hypridle")''} end)