From bcd0a32bab1ca794fc2dbb0861e5d309c9545c97 Mon Sep 17 00:00:00 2001 From: rope Date: Wed, 27 May 2026 12:59:05 +0100 Subject: [PATCH] quickshell: use hl.layer_rule for blur behind bar/toasts Co-Authored-By: Claude Opus 4.6 --- settings/hyprland.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)