diff --git a/modules/tablet.lua b/modules/tablet.lua index d192229..c16b4a3 100644 --- a/modules/tablet.lua +++ b/modules/tablet.lua @@ -36,6 +36,8 @@ if hl.plugin.hyprgrass ~= nil then pattern = { kind = "edge", origin = "t", direction = "r" }, action = hl.dsp.focus({ workspace = "-1" }), }) + + -- Binds to control keyboard hl.plugin.hyprgrass.bind({ pattern = { kind = "edge", origin = "b", direction = "u" }, action = hl.dsp.exec_cmd( @@ -47,6 +49,20 @@ if hl.plugin.hyprgrass ~= nil then 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 hl.bind("switch:on:Intel HID switches", function() hl.exec_cmd("pkill way-edges")