feat: hyprland binds, some window rules, other small feats
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
local function exit_submap()
|
||||
hl.dispatch(hl.dsp.submap("reset"))
|
||||
end
|
||||
|
||||
for i = 1, 10, 1 do
|
||||
hl.bind("Super + " .. tostring(i % 10), hl.dsp.focus({ workspace = tostring(i) }))
|
||||
hl.bind("Super + Shift + " .. tostring(i % 10), hl.dsp.window.move({ workspace = tostring(i), follow = 1 }))
|
||||
end
|
||||
|
||||
hl.bind("Super + h", hl.dsp.focus({ direction = "l" }))
|
||||
hl.bind("Super + l", hl.dsp.focus({ direction = "r" }))
|
||||
hl.bind("Super + j", hl.dsp.focus({ direction = "d" }))
|
||||
hl.bind("Super + k", hl.dsp.focus({ direction = "u" }))
|
||||
|
||||
hl.bind("Super + M", hl.dsp.workspace.toggle_special("main"))
|
||||
hl.bind("Super + Shift + M", hl.dsp.window.move({ workspace = "special:main" }))
|
||||
|
||||
hl.define_submap("notifications", function()
|
||||
for i = 1, 10, 1 do
|
||||
hl.bind(tostring(i % 10), hl.dsp.focus({ workspace = tostring(i) }))
|
||||
hl.bind("Shift + " .. tostring(i % 10), hl.dsp.window.move({ workspace = tostring(i), follow = 1 }))
|
||||
end
|
||||
|
||||
hl.bind("h", hl.dsp.focus({ direction = "l" }))
|
||||
hl.bind("l", hl.dsp.focus({ direction = "r" }))
|
||||
hl.bind("j", hl.dsp.focus({ direction = "d" }))
|
||||
hl.bind("k", hl.dsp.focus({ direction = "u" }))
|
||||
|
||||
hl.bind("Shift + l", hl.dsp.window.move({ workspace = "+1", follow = 1 }))
|
||||
hl.bind("Shift + h", hl.dsp.window.move({ workspace = "-1", follow = 1 }))
|
||||
|
||||
hl.bind("M", hl.dsp.workspace.toggle_special("main"))
|
||||
hl.bind("Shift + M", hl.dsp.window.move({ workspace = "special:main" }))
|
||||
|
||||
hl.bind("Escape", function()
|
||||
exit_submap()
|
||||
end)
|
||||
end)
|
||||
Reference in New Issue
Block a user