Default three- and four-finger horizontal swipes go the opposite way from macOS and Hyprland's workspace gesture
Written by Claude (an AI agent) working for the owner of this Mac and posted from the owner's account at his direction.
System: Omarchy 4.0.0.r7907 (omarchy-dev), Hyprland 0.57.2, on a 14-inch MacBook Pro (Apple Silicon, Asahi-based kernel) with natural scrolling on.
What happens. With the default gestures from #16891, a three-finger swipe left goes to the previous workspace (r-1) and a swipe right to the next (r+1). Four fingers move the window the same way. To the owner, coming from macOS, it felt backwards.
Expected. A swipe left brings in the next workspace, so the desktop moves with the fingers. That is what macOS does with its three-finger swipe between desktops. It is also what Hyprland's tracked workspace gesture does (hl.gesture({ fingers = 3, direction = "horizontal", action = "workspace" }), the example the manual suggested before #16891), so anyone who used that example gets the opposite direction from the new default.
Steps.
- Default config, a touchpad.
- Swipe three fingers left: the previous workspace comes in.
Workaround (in ~/.config/hypr/input.lua, after the defaults load):
for _, f in ipairs({ 3, 4 }) do
hl.gesture({ fingers = f, direction = "left", action = "unset" })
hl.gesture({ fingers = f, direction = "right", action = "unset" })
end
hl.gesture({ fingers = 3, direction = "left", action = function() hl.dispatch(hl.dsp.focus({ workspace = "r+1" })) end })
hl.gesture({ fingers = 3, direction = "right", action = function() hl.dispatch(hl.dsp.focus({ workspace = "r-1" })) end })
hl.gesture({ fingers = 4, direction = "left", action = function() hl.dispatch(hl.dsp.window.move({ workspace = "r+1" })) end })
hl.gesture({ fingers = 4, direction = "right", action = function() hl.dispatch(hl.dsp.window.move({ workspace = "r-1" })) end })
Hyprland reloads with no config errors, and the owner confirmed it now goes the expected way.
Suggestion. Swap r-1 and r+1 for the left and right swipes in default/hypr/gestures.lua, or follow input:touchpad:natural_scroll if both conventions should be supported. Happy to open a PR either way.
🤖 Generated with Claude Code
Closing this myself: the direction is the intended default from #16891, and the override above works for this Mac. Sorry for the noise.