Skip to content

Move the Mac's trackpad and workspace stepping into Omarchy's platform settings slot - #654

Merged
maralcbr merged 3 commits into
quattro-upstreamfrom
mac/127-apple-settings-slot
Sep 28, 2026
Merged

maralcbr merged 3 commits into
quattro-upstreamfrom
mac/127-apple-settings-slot

Conversation

@maralcbr

@maralcbr maralcbr commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Uses the default/hypr/platform/settings slot that omacom#13362 (4573758) now carries.

  • The trackpad's tap-to-click default moves from defaults/apple.lua (the early slot, meant for binds) to a new settings/apple.lua. The settings slot loads after Omarchy's defaults and before the theme and the user's files. defaults/apple.lua keeps the lid, capture and keyboard-brightness binds and the menu decorator.
  • Swipe split: workspace_swipe_use_r = true moves from the late apple-gestures.lua into settings/apple.lua, behind the Apple guard. A user's hl.config({ gestures = { workspace_swipe_use_r = false } }) in input.lua now wins. Before, the late slot overrode it. Stepping by number is now a Mac default for every workspace swipe, the user's own gesture included. The gesture registration stays late, with the omarchy_workspace_gesture = false opt-out. The manual says how to turn the stepping off.
  • Today's quattro-upstream has no settings slot and no default.hypr.platform loader. There, defaults/apple.lua loads settings/apple.lua from beside it, so both settings still apply before the user's files.

Tested in an Arch container (aarch64), against this branch and with OMARCHY_TEST_RUNTIME set to omacom#13362 4573758:

  • apple-platform-hooks-test.sh: each device is set once, after Omarchy's defaults where the slot exists, and the user's tap-to-click wins.
  • hyprland-apple-workspace-gesture-test.sh: stepping is on by default on a Mac, off elsewhere, and the user's false wins with either gesture.
  • hyprland-platform-defaults-test.sh, manual-apple-hotkeys-test.sh and packages/omarchy-mac/test/all pass.

Second review: no blockers. The manual's wording was corrected, and the test header and one test guard were fixed.

The early platform slot is for binds; settings Omarchy's defaults may also
touch belong after them. The trackpad's tap-to-click default moves to
default/hypr/platform/settings/apple.lua, which Omarchy loads after its own
defaults and before the theme and the user's files. A runtime without that
slot (no default.hypr.platform loader) never loads it, so defaults/apple.lua
applies it there instead, as it did before. The three-finger swipe stays in
the late slot.
Stepping a swipe by number, into empty workspaces, was set in the late slot
and only when Omarchy's own gesture registered, so a user's
workspace_swipe_use_r = false next to it was overridden. It is now a Mac
setting in settings/apple.lua, loaded before the user's files: their false
wins, and a gesture of their own steps the same way unless they say
otherwise. The gesture itself stays late, stepping aside for the user's own or
omarchy_workspace_gesture = false. The manual says how to turn the stepping
off.
@maralcbr
maralcbr force-pushed the mac/127-apple-settings-slot branch from f0966e5 to d5170a2 Compare September 28, 2026 05:31
@maralcbr maralcbr changed the title Set the Mac's trackpad in Omarchy's platform settings slot Move the Mac's trackpad and workspace stepping into Omarchy's platform settings slot Sep 28, 2026
@maralcbr
maralcbr marked this pull request as ready for review September 28, 2026 05:34
@maralcbr
maralcbr merged commit b4bec21 into quattro-upstream Sep 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant