Add touchpad gestures toggle for three-finger workspace swipes - #339
Open
DataKnox wants to merge 1 commit into
Open
Add touchpad gestures toggle for three-finger workspace swipes#339DataKnox wants to merge 1 commit into
DataKnox wants to merge 1 commit into
Conversation
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
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. |
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
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 existingomarchy-hyprland-togglemechanism.default/hypr/toggles/touchpad-gestures.lua— the flag:hl.gesture({ fingers = 3, direction = "horizontal", action = "workspace" })bin/omarchy-toggle-touchpad-gestures—omarchy toggle touchpad gestures [on|off|toggle], with a notification either wayomarchy-hw-touchpadlike the Touchpad row, with a ✓ when on13-toggles-idle-screensaver.md, and the trackpad gestures section in34-keyboard-mouse-trackpad.mdnow points at the toggle firstconfig/hypr/input.lua: one comment line pointing at the toggleOff 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
apple-mtp-multi-touch):offremoves the flag,togglere-creates it,hyprctl configerrorsis clean, the swipe works, and a bad argument exits 1 with usage.omarchy toggle touchpad gestures --helproutes to the new binary;omarchy toggle touchpad --helpstill routes to the existing one../test/all:test/clipasses;test/shellhas the same two pre-existing failures (config-test.sh,unowned-system-paths-test.sh) that need anomarchy-pkgscheckout.🤖 Generated with Claude Code
https://claude.ai/code/session_019CP9zCPpL6HL7mKmmS8NbN