feat: hyprland binds, some window rules, other small feats
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
local function exit_submap()
|
||||
hl.dispatch(hl.dsp.submap("reset"))
|
||||
end
|
||||
|
||||
hl.bind("Super + Q", hl.dsp.exit())
|
||||
|
||||
hl.define_submap("groups", function()
|
||||
hl.bind("c", function()
|
||||
hl.dispatch(hl.dsp.group.toggle())
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("l", function()
|
||||
hl.dispatch(hl.dsp.group.next())
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("h", function()
|
||||
hl.dispatch(hl.dsp.group.prev())
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("Ctrl + L", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("notify-send 'Group locking toggled' --app-name='Hyprtclt'"))
|
||||
hl.dispatch(hl.dsp.group.lock_active())
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("Shift + L", function()
|
||||
hl.dispatch(hl.dsp.window.move({ into_or_create_group = "r" }))
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("Shift + H", function()
|
||||
hl.dispatch(hl.dsp.window.move({ into_or_create_group = "l" }))
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("Escape", function()
|
||||
exit_submap()
|
||||
end)
|
||||
end)
|
||||
Reference in New Issue
Block a user