Krolyxon
Commit ce210bb

Branches

Refs →

aurorace210bb

hypr: touchpad gestures

Author
krolyxon
Date
2026-10-25 16:00 +0530
Parent
38c75f1
Commit
ce210bb969d4c35794be6d9b0fa5484826fb57f4

+51 −0

1 file changed

  1. M .config/hypr/source/input.lua +51 −0
M .config/hypr/source/input.lua View
@@ -26,6 +26,57 @@ hl.config({
2626 },
2727 })
2828
29+--------------------------------------------------
30+-- Gestures
31+--------------------------------------------------
32+
33+hl.config({
34+ gestures = {
35+ -- swiping past the last workspace would create the next monitor's (11, 21, ...)
36+ workspace_swipe_create_new = false,
37+ },
38+})
39+
40+-- 3-finger horizontal swipe: previous/next workspace on the focused monitor
41+hl.gesture({
42+ fingers = 3,
43+ direction = "horizontal",
44+ action = "workspace",
45+})
46+
47+-- 4-finger horizontal swipe: drag the focused window to the previous/next workspace
48+hl.gesture({
49+ fingers = 4,
50+ direction = "horizontal",
51+ action = "move",
52+})
53+
54+-- 3-finger up: aurora's workspace overview
55+hl.gesture({
56+ fingers = 3,
57+ direction = "up",
58+ action = function()
59+ hl.dispatch(hl.dsp.exec_cmd("qs -c aurora ipc call shell overview"))
60+ end,
61+})
62+
63+-- 3-finger down: scratchpad (same special workspace as SUPER+S)
64+hl.gesture({
65+ fingers = 3,
66+ direction = "down",
67+ action = "special",
68+ workspace_name = "magic",
69+})
70+
71+-- 3-finger pinch: zoom around the cursor
72+hl.gesture({
73+ fingers = 3,
74+ direction = "pinch",
75+ action = "cursorZoom",
76+ zoom_level = 2,
77+ mode = "live",
78+})
79+
2980 --------------------------------------------------
3081 -- Per-device Configuration
3182 --------------------------------------------------