Repository navigation
Swipe between workspaces with three fingers on Macs by default - #629
Merged
Merged
Conversation
The default is added after the user's Hyprland files, and steps aside when the user already set a three-finger sideways gesture, so uncommenting the input.lua example does not trip Hyprland's duplicate-gesture error. omarchy_workspace_gesture = false turns it off. x86 and Snapdragon keep no default gesture.
Tests that load the toggles on their own have no o table.
This was referenced Sep 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Owner decision 2026-09-27: turn on the three-finger horizontal workspace swipe by default on Apple Silicon. x86 and Snapdragon are unchanged.
default/hypr/apple-gestures.luaaddshl.gesture({ fingers = 3, direction = "horizontal", action = "workspace" })on Apple Silicon.toggles.lualoads it, which is the one default module that runs after the user's files.helpers.luarecords everyhl.gesturecall, so the default is skipped when the user already has a three-finger sideways gesture with no modifier (left, right, horizontal or swipe;mods = "NONE"counts as no modifier, as Hyprland reads it). Uncommenting the example ininput.luatherefore leaves one gesture and no error.omarchy_workspace_gesture = falsein~/.config/hypr/input.lua. The Mac manual's trackpad section says how.hyprland.luafiles already requiredefault.hypr.toggles, so existing installs pick this up with the package.hl.gestureerror now points at the wrapper inhelpers.luaand not at the user's file. Gestures added at the very end ofhyprland.lua, after the toggles line, also load too late to replace the default. That's why the manual points atinput.lua.This stays in omarchy-mac. It's Apple-only, and upstream omacom#13362 carries no Mac code.
Tests: new
test/shell.d/hyprland-apple-workspace-gesture-test.shloads the shippedhyprland.luaagainst a stub that enforces Hyprland's overshadow rule. It covers Mac vs other platforms, the uncommented example, the focus examples, swipe, 4-finger, vertical, modifier andNONEcases, and the opt-out flag. It fails without the change. The related hyprland/touchpad suites pass on macOS and on the M2 (Arch).Hardware (M2 Max converged, M1 Pro, Hyprland 0.56.2): after reload
hyprctl configerrorsis empty, and a probehyprctl evalof the same gesture is refused as "overshadowed by a previous HORIZONTAL", so the gesture is live. On the M2, with the example uncommented there was no config error and still exactly one gesture. With the opt-out flag the gesture was gone. The user's file was restored afterwards.Design debate: late registration was kept. Modifier normalisation and Mac-only wrapping were adopted from it.
Second review: it found one real regression.
toggle-input-device-testloads the toggles without the helpers, soapple-gestures.luanow returns whenois missing. It also raised two test style nits, both fixed. It confirmed the rest against the Hyprland 0.56.2 source: the direction aliases, mods parsing, the fresh Lua state on reload, and that existing installs need no migration.