Fix mcsr/global binds
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user