Make all hyprland binds submap universal
This commit is contained in:
@@ -55,3 +55,18 @@ hl.window_rule({
|
||||
float = true,
|
||||
size = { "monitor_w*0.95", "monitor_h*0.95"}
|
||||
})
|
||||
|
||||
hl.on("window.active", function(window, active)
|
||||
if window ~= nil and window.class ~= nil and window.class:find("zen") == 1 then
|
||||
hl.dispatch(hl.dsp.submap("zen"))
|
||||
else
|
||||
hl.dispatch(hl.dsp.submap("reset"))
|
||||
end
|
||||
end)
|
||||
|
||||
hl.define_submap("zen", function()
|
||||
hl.bind("ALT + ALT_L", hl.dsp.send_key_state({mods = "ALT", key = "F12", state = "down"}), {release = true})
|
||||
-- hl.bind("ALT + ALT_L", hl.dsp.send_shortcut({mods = "ALT", key = "SPACE", state = "down"}), {release = true})
|
||||
hl.bind("ALT + N", hl.dsp.send_shortcut({mods = "CTRL", key = "TAB"}))
|
||||
hl.bind("ALT + T", hl.dsp.send_shortcut({mods = "CTRL + SHIFT", key = "TAB"}))
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user