Skip to content

Add opt-in macOS-style trackpad toggle - #15339

Open
beastllama wants to merge 1 commit into
omacom:quattrofrom
beastllama:trackpad-macos-preset
Open

beastllama wants to merge 1 commit into
omacom:quattrofrom
beastllama:trackpad-macos-preset

Conversation

@beastllama

Copy link
Copy Markdown

Summary

Adds a one-command toggle for macOS-style trackpad behavior:

omarchy toggle trackpad-macos

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

  • Opt-in, not default. Stock Omarchy defaults are untouched; the preset lives in default/hypr/toggles/trackpad-macos.lua and only activates via the existing omarchy-hyprland-toggle state mechanism (~/.local/state/omarchy/toggles/hypr/), the same pattern as omarchy toggle animations.
  • Gated on hardware. The wrapper checks omarchy-hw-touchpad and refuses (with a notification) when no trackpad is present, so desktops never see a dead toggle.
  • No plugins. A swipe-up overview would need a Hyprland plugin; given the maintainer guidance against shipping plugins by default (Enable Hyprland plugin HyprExpo by default #3077), this PR stays native-only. The overview idea can be a separate discussion if there's interest.
  • Docs. One paragraph in manual/34-keyboard-mouse-trackpad.md next to the existing gestures section.

Test plan

  • omarchy toggle trackpad-macos on a real machine (Intel MacBook Pro, bcm5974 trackpad): toggle reports on, state file lands in ~/.local/state/omarchy/toggles/hypr/, Hyprland reloads clean
  • Natural scrolling and three-finger horizontal workspace swipe verified working on that trackpad
  • omarchy toggle trackpad-macos off removes the state file; hyprctl configerrors empty afterwards
  • omarchy-hw-touchpad gate exercised (device detected: bcm5974)

Happy to adjust naming (trackpad-macos vs something else) or move the wrapper under a different group if the maintainers prefer.

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.
@jonnyace

Copy link
Copy Markdown
Contributor

Heads up: since #16891 merged, this toggle's fingers = 3, direction = "horizontal" gesture is overshadowed by the default 3-finger left/right gestures (Hyprland keeps the first registration), so turning it on only changes natural scroll. The toggle file would need to unset 3 left/right first.

For reference, here's what I'm running on an M1 Max MacBook Pro (Hyprland 0.56.2), all native, no plugins:

  • 3 fingers left/right: action = "workspace" (finger-tracked, like macOS spaces) plus a workspaces slide animation
  • 3 fingers up: omarchy:menu.apps
  • 4-finger pinchin: omarchy:menu.apps (Launchpad)
  • 4-finger pinchout: toggle between emptym and previous (Show Desktop)
  • natural_scroll = true

Happy to open a PR against this branch if that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants