From 7b9379b1c18c504062bc3f233e80be1595654f36 Mon Sep 17 00:00:00 2001 From: The_miro Date: Tue, 19 May 2026 15:00:26 +0200 Subject: [PATCH] feat(binds): convert gestures to new Hyprland Lua syntax Co-Authored-By: Claude Sonnet 4.6 --- desktopenvs/hyprlua/hypr-usr/binds.lua | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/desktopenvs/hyprlua/hypr-usr/binds.lua b/desktopenvs/hyprlua/hypr-usr/binds.lua index 96f46e7..f8e781c 100644 --- a/desktopenvs/hyprlua/hypr-usr/binds.lua +++ b/desktopenvs/hyprlua/hypr-usr/binds.lua @@ -20,17 +20,16 @@ hl.bind("switch:off:Lid Switch", hl.dsp.exec_cmd("hyprctl dispatch exec hyprlock -------------------- hl.gesture({ fingers = 3, direction = "horizontal", action = "workspace" }) --- TODO: verify dispatcher syntax for non-built-in gesture actions in Lua: --- gesture = 3, up, dispatcher, movetoworkspacesilent, special:magic --- gesture = 3, down, special, magic --- gesture = 3, pinchin, dispatcher, exec, $menu --- gesture = 3, pinchout, float --- gesture = 4, pinchout, close --- gesture = 4, pinchin, dispatcher, exec, $terminal --- gesture = 4, down, dispatcher, movetoworkspace, special:magic --- gesture = 4, up, dispatcher, movetoworkspace, r+0 --- gesture = 4, left, dispatcher, movetoworkspace, r+1 --- gesture = 4, right, dispatcher, movetoworkspace, r-1 +hl.gesture({ fingers = 3, direction = "up", action = function() hl.dsp.window.move({ workspace = "special:magic", silent = true }) end }) +hl.gesture({ fingers = 3, direction = "down", action = "special", workspace_name = "magic" }) +hl.gesture({ fingers = 3, direction = "pinchin", action = function() hl.dsp.exec_cmd(menu) end }) +hl.gesture({ fingers = 3, direction = "pinchout", action = "float" }) +hl.gesture({ fingers = 4, direction = "pinchout", action = "close" }) +hl.gesture({ fingers = 4, direction = "pinchin", action = function() hl.dsp.exec_cmd(terminal) end }) +hl.gesture({ fingers = 4, direction = "down", action = function() hl.dsp.window.move({ workspace = "special:magic" }) end }) +hl.gesture({ fingers = 4, direction = "up", action = function() hl.dsp.window.move({ workspace = "r+0" }) end }) +hl.gesture({ fingers = 4, direction = "left", action = function() hl.dsp.window.move({ workspace = "r+1" }) end }) +hl.gesture({ fingers = 4, direction = "right", action = function() hl.dsp.window.move({ workspace = "r-1" }) end }) -------------------- ---- APPS ----------