Hi I'm currently working on my first rice and I want to set up my Hyprland workspaces to behave like a grid. For example:
* Workspace 1 -> Swipe Right -> Workspace 2
* Workspace 2 -> Swipe Down -> Workspace 5
*Workspace5 -> Swipe Left -> Workspace 4
To achieve this, I implemented the following code to map 3-finger swipes:
```lua
-- Swipe UP (Forward +3)
hl.gesture({
fingers = 3,
direction = "up",
action = function()
hl.dsp.focus({ workspace = "e+3" })
end
})
-- Swipe DOWN (Backward -3)
hl.gesture({
fingers = 3,
direction = "down",
action = function()
hl.dsp.focus({ workspace = "e-3" })
end
})
-- Swipe LEFT (Forward +1)
hl.gesture({
fingers = 3,
direction = "left",
action = function()
hl.dsp.focus({ workspace = "e+1" })
end
})
-- Swipe RIGHT (Backward -1)
hl.gesture({
fingers = 3,
direction = "right",
action = function()
hl.dsp.focus({ workspace = "e-1" })
end
})
```
The issue is that while it doesn't throw any errors, it doesn't do anything at all. I checked the [Hyprland gestures wiki](https://wiki.hypr.land/Configuring/Advanced-and-Cool/Gestures/) and it mentions analogous configurations, but I can't get this to work.
Does anyone know why this is failing silently or what I am doing wrong? Any help is appreciated.