Fix mcsr/global binds

This commit is contained in:
2026-05-14 20:26:31 -07:00
parent f86529c063
commit b4c8930dfe
4 changed files with 21 additions and 24 deletions

View File

@@ -55,10 +55,20 @@ hl.window_rule({
float = true,
size = { "monitor_w*0.95", "monitor_h*0.95"}
})
hl.layer_rule({
match = { namespace = "quickshell" },
no_anim = true
})
hl.on("window.active", function(window, active)
if window ~= nil and window.class ~= nil and window.class:find("zen") == 1 then
if window == nil or window.class == nil then
hl.dispatch(hl.dsp.submap("reset"))
return
end
if window.class:find("zen") == 1 then
hl.dispatch(hl.dsp.submap("zen"))
elseif window.class:find("Minecraft") == 1 then
hl.dispatch(hl.dsp.submap("mcsr"))
else
hl.dispatch(hl.dsp.submap("reset"))
end