Skip to content

Add touchpad gestures toggle for three-finger workspace swipes - #339

Open
DataKnox wants to merge 1 commit into
omacom:quattrofrom
DataKnox:touchpad-gestures-toggle
Open

Add touchpad gestures toggle for three-finger workspace swipes#339
DataKnox wants to merge 1 commit into
omacom:quattrofrom
DataKnox:touchpad-gestures-toggle

Conversation

@DataKnox

@DataKnox DataKnox commented Sep 4, 2026

Copy link
Copy Markdown

Summary

Apple trackpads are the natural home for the macOS-style three-finger swipe between workspaces, but turning it on meant hand-editing ~/.config/hypr/input.lua. This ships it as a Hyprland toggle flag instead, using the existing omarchy-hyprland-toggle mechanism.

  • default/hypr/toggles/touchpad-gestures.lua — the flag: hl.gesture({ fingers = 3, direction = "horizontal", action = "workspace" })
  • bin/omarchy-toggle-touchpad-gesturesomarchy toggle touchpad gestures [on|off|toggle], with a notification either way
  • Menu: Trigger > Hardware > Touchpad Gestures, gated on omarchy-hw-touchpad like the Touchpad row, with a ✓ when on
  • Manual: added to the toggles table in 13-toggles-idle-screensaver.md, and the trackpad gestures section in 34-keyboard-mouse-trackpad.md now points at the toggle first
  • config/hypr/input.lua: one comment line pointing at the toggle

Off by default. Making it default-on for Macs would need the flag file created at install plus a migration for existing users, so I left that as a follow-up if maintainers want it.

Testing

  • On an M2 MacBook Pro (Hyprland 0.56.1, apple-mtp-multi-touch): off removes the flag, toggle re-creates it, hyprctl configerrors is clean, the swipe works, and a bad argument exits 1 with usage.
  • omarchy toggle touchpad gestures --help routes to the new binary; omarchy toggle touchpad --help still routes to the existing one.
  • ./test/all: test/cli passes; test/shell has the same two pre-existing failures (config-test.sh, unowned-system-paths-test.sh) that need an omarchy-pkgs checkout.

🤖 Generated with Claude Code

https://claude.ai/code/session_019CP9zCPpL6HL7mKmmS8NbN

Apple trackpads are the natural home for the macOS-style three-finger swipe
between workspaces, but turning it on meant editing ~/.config/hypr/input.lua.
Ship it as a Hyprland toggle flag instead: `omarchy toggle touchpad gestures`
and Trigger > Hardware > Touchpad Gestures (shown only when a touchpad is
detected, with a check mark when on). Off by default, and the flag file
survives Hyprland reloads like the other toggles.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019CP9zCPpL6HL7mKmmS8NbN
@malik-na

malik-na commented Sep 9, 2026

Copy link
Copy Markdown
Member

Please add a focused test for on, off, toggle persistence, invalid arguments, and Hyprland reload failure. The user-facing path is small, but this PR currently adds it without a regression test.

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.

2 participants