added binds for scrolling layout and closing windows

This commit is contained in:
2026-09-02 19:24:06 +01:00
parent e93b76bef1
commit 755cf67f7a

View File

@@ -36,6 +36,8 @@ if hl.plugin.hyprgrass ~= nil then
pattern = { kind = "edge", origin = "t", direction = "r" }, pattern = { kind = "edge", origin = "t", direction = "r" },
action = hl.dsp.focus({ workspace = "-1" }), action = hl.dsp.focus({ workspace = "-1" }),
}) })
-- Binds to control keyboard
hl.plugin.hyprgrass.bind({ hl.plugin.hyprgrass.bind({
pattern = { kind = "edge", origin = "b", direction = "u" }, pattern = { kind = "edge", origin = "b", direction = "u" },
action = hl.dsp.exec_cmd( action = hl.dsp.exec_cmd(
@@ -47,6 +49,20 @@ if hl.plugin.hyprgrass ~= nil then
action = hl.dsp.exec_cmd("pkill wvkbd"), action = hl.dsp.exec_cmd("pkill wvkbd"),
}) })
-- Binds for moving and closing windows
hl.plugin.hyprgrass.bind({
pattern = { kind = "edge", origin = "b", direction = "r" },
action = hl.dsp.layout("move -col"),
})
hl.plugin.hyprgrass.bind({
pattern = { kind = "edge", origin = "b", direction = "l" },
action = hl.dsp.layout("move +col"),
})
hl.plugin.hyprgrass.bind({
pattern = { kind = "edge", origin = "r", direction = "d" },
action = hl.dsp.window.close(),
})
-- Tablet mode toggle -- Tablet mode toggle
hl.bind("switch:on:Intel HID switches", function() hl.bind("switch:on:Intel HID switches", function()
hl.exec_cmd("pkill way-edges") hl.exec_cmd("pkill way-edges")