feat(binds): convert gestures to new Hyprland Lua syntax
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>main
parent
b5b21ce4cd
commit
7b9379b1c1
|
|
@ -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" })
|
hl.gesture({ fingers = 3, direction = "horizontal", action = "workspace" })
|
||||||
-- TODO: verify dispatcher syntax for non-built-in gesture actions in Lua:
|
hl.gesture({ fingers = 3, direction = "up", action = function() hl.dsp.window.move({ workspace = "special:magic", silent = true }) end })
|
||||||
-- gesture = 3, up, dispatcher, movetoworkspacesilent, special:magic
|
hl.gesture({ fingers = 3, direction = "down", action = "special", workspace_name = "magic" })
|
||||||
-- gesture = 3, down, special, magic
|
hl.gesture({ fingers = 3, direction = "pinchin", action = function() hl.dsp.exec_cmd(menu) end })
|
||||||
-- gesture = 3, pinchin, dispatcher, exec, $menu
|
hl.gesture({ fingers = 3, direction = "pinchout", action = "float" })
|
||||||
-- gesture = 3, pinchout, float
|
hl.gesture({ fingers = 4, direction = "pinchout", action = "close" })
|
||||||
-- gesture = 4, pinchout, close
|
hl.gesture({ fingers = 4, direction = "pinchin", action = function() hl.dsp.exec_cmd(terminal) end })
|
||||||
-- gesture = 4, pinchin, dispatcher, exec, $terminal
|
hl.gesture({ fingers = 4, direction = "down", action = function() hl.dsp.window.move({ workspace = "special:magic" }) end })
|
||||||
-- gesture = 4, down, dispatcher, movetoworkspace, special:magic
|
hl.gesture({ fingers = 4, direction = "up", action = function() hl.dsp.window.move({ workspace = "r+0" }) end })
|
||||||
-- gesture = 4, up, dispatcher, movetoworkspace, r+0
|
hl.gesture({ fingers = 4, direction = "left", action = function() hl.dsp.window.move({ workspace = "r+1" }) end })
|
||||||
-- gesture = 4, left, dispatcher, movetoworkspace, r+1
|
hl.gesture({ fingers = 4, direction = "right", action = function() hl.dsp.window.move({ workspace = "r-1" }) end })
|
||||||
-- gesture = 4, right, dispatcher, movetoworkspace, r-1
|
|
||||||
|
|
||||||
--------------------
|
--------------------
|
||||||
---- APPS ----------
|
---- APPS ----------
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue