Repository navigation
Add opt-in macOS-style trackpad toggle - #15339
Open
beastllama wants to merge 1 commit into
Open
beastllama wants to merge 1 commit into
beastllama wants to merge 1 commit into
Conversation
Switchers from macOS expect content to follow their fingers when scrolling and a three-finger swipe to change workspaces. Omarchy deliberately ships neither, and wiring them up by hand means editing Lua. Add a toggle that applies both in one step, and nothing until asked: omarchy toggle trackpad-macos The toggle refuses to run without a trackpad and leaves Omarchy's stock defaults untouched when off.
Contributor
|
Heads up: since #16891 merged, this toggle's For reference, here's what I'm running on an M1 Max MacBook Pro (Hyprland 0.56.2), all native, no plugins:
Happy to open a PR against this branch if that helps. |
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.
Summary
Adds a one-command toggle for macOS-style trackpad behavior:
It turns on natural (inverse) scrolling and a three-finger horizontal swipe to change workspaces — the two gestures macOS switchers reach for first. Toggling again restores Omarchy's stock behavior.
Design
default/hypr/toggles/trackpad-macos.luaand only activates via the existingomarchy-hyprland-togglestate mechanism (~/.local/state/omarchy/toggles/hypr/), the same pattern asomarchy toggle animations.omarchy-hw-touchpadand refuses (with a notification) when no trackpad is present, so desktops never see a dead toggle.manual/34-keyboard-mouse-trackpad.mdnext to the existing gestures section.Test plan
omarchy toggle trackpad-macoson a real machine (Intel MacBook Pro, bcm5974 trackpad): toggle reportson, state file lands in~/.local/state/omarchy/toggles/hypr/, Hyprland reloads cleanomarchy toggle trackpad-macos offremoves the state file;hyprctl configerrorsempty afterwardsomarchy-hw-touchpadgate exercised (device detected:bcm5974)Happy to adjust naming (
trackpad-macosvs something else) or move the wrapper under a different group if the maintainers prefer.