From 09714c92d0912d65ea67e641ce448d4f6c6f9715 Mon Sep 17 00:00:00 2001 From: Liam Malone Date: Sun, 10 May 2026 17:04:05 +0100 Subject: [PATCH] add workspace swipe gesture --- configs/hypr/binds.lua | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/configs/hypr/binds.lua b/configs/hypr/binds.lua index fcf34d9..62c7a26 100644 --- a/configs/hypr/binds.lua +++ b/configs/hypr/binds.lua @@ -1,4 +1,3 @@ - -- Binds :: General hl.bind("ALT + Return", hl.dsp.exec_cmd("ghostty")) hl.bind("ALT + SHIFT + Return", hl.dsp.exec_cmd("foot")) @@ -22,7 +21,6 @@ hl.bind(mainMod .. " + CTRL + C", hl.dsp.exec_cmd("dms ipc call control-center hl.bind(mainMod .. " + N", hl.dsp.exec_cmd("dms ipc call notifications toggle")) hl.bind(mainMod .. " + SHIFT + N", hl.dsp.exec_cmd("dms ipc call night toggle")) hl.bind(mainMod .. " + CTRL + B", hl.dsp.exec_cmd("dms ipc call bar toggle")) -hl.bind(mainMod .. " + CTRL + S", hl.dsp.exec_cmd("$HOME/.config/hypr/ws-layout-toggle.sh")) hl.bind(mainMod .. " + CTRL + Q", hl.dsp.exec_cmd(lock)) hl.bind(mainMod .. " + C", hl.dsp.window.kill()) @@ -32,8 +30,8 @@ hl.bind(mainMod .. " + CTRL + F", hl.dsp.window.fullscreen({ action = "toggle" hl.bind(mainMod .. " + F4", hl.dsp.exit()) hl.bind(mainMod .. " + right", hl.dsp.window.resize({ x = 10, y = 0, relative = true }), { repeating = true }) hl.bind(mainMod .. " + left", hl.dsp.window.resize({ x = -10, y = 0, relative = true }), { repeating = true }) -hl.bind(mainMod .. " + up", hl.dsp.window.resize({ x = 0, y = -10, relative = true }), { repeating = true }) -hl.bind(mainMod .. " + down", hl.dsp.window.resize({ x = 0, y = 10, relative = true }), { repeating = true }) +hl.bind(mainMod .. " + up", hl.dsp.window.resize({ x = 0, y = -10, relative = true }), { repeating = true }) +hl.bind(mainMod .. " + down", hl.dsp.window.resize({ x = 0, y = 10, relative = true }), { repeating = true }) -- Binds :: Window & Navigation hl.bind(mainMod .. " + H", hl.dsp.focus({ direction = "l" })) @@ -85,6 +83,13 @@ hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("dms ipc call audio decrement 3 hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("dms ipc call brightness increment 5"), { locked = true, repeating = true }) hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("dms ipc call brightness decrement 5"), { locked = true, repeating = true }) +-- Binds :: Gestures +hl.gesture({ + fingers = 3, + direction = "horizontal", + action = "workspace", +}) + -- Binds :: Submaps hl.bind(mainMod .. " + R", hl.dsp.submap("resize")) hl.define_submap("resize", function()