quickshell: use hl.layer_rule for blur behind bar/toasts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
8d20250f80
commit
bcd0a32bab
1 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue