A lightweight macOS menu bar app that maps three-finger trackpad swipe gestures to keyboard shortcuts, configurable per-application.
- Global three-finger swipe detection — works in any app, regardless of system trackpad settings
- Per-app keyboard shortcut mappings — configure different shortcuts for different apps, with a global default fallback
- Menu bar app — runs quietly in the background with no dock icon
- Simple GUI — settings window with shortcut recorder and per-app rule management
- Launch at login — optional auto-start support
- macOS 14 (Sonoma) or later
- Accessibility permission (for simulating keyboard shortcuts)
- Input Monitoring permission (for reading trackpad gestures)
- App Management permission (for auto-updates — see Setup)
git clone <repo-url>
cd swyper
make bundle # Builds build/Swyper.app
make install # Copies to /Applicationsmake bundle uses the committed Resources/AppIcon.icns by default. Install librsvg with brew install librsvg if you want to regenerate the icon from Resources/AppIcon.svg during local builds.
- Launch Swyper — a hand icon appears in the menu bar
- Grant Accessibility and Input Monitoring permissions when prompted (System Settings > Privacy & Security)
- Grant App Management permission (System Settings > Privacy & Security > App Management) — this allows Swyper to update itself via the built-in auto-updater. macOS may require this permission before Sparkle can replace the app bundle during updates.
- Open Settings from the menu bar icon to configure swipe-to-shortcut mappings
Note: You may need to disable conflicting system three-finger gestures in System Settings > Trackpad > More Gestures, or switch them to four-finger gestures.
Set global shortcuts for swipe up/down/left/right that apply to all apps.
Add app-specific overrides — for example, map left/right swipes to browser back/forward in Safari, and to tab switching in your editor. Per-app mappings take priority; any direction without an app-specific shortcut falls back to the default.
- Enabled — toggle gesture detection on/off
- Settings — open the configuration window
- Launch at Login — start Swyper automatically on login
- Quit — exit the app
make build # Compile with Swift Package Manager
make bundle # Build + create .app bundle
make run # Build + launch
make lint # Run SwiftLint
make clean # Remove build artifactsInstall librsvg with brew install librsvg to regenerate AppIcon.icns from the SVG source; otherwise the build uses the committed .icns fallback.
swift test # Run the test suiteTests cover model logic, config serialization/backward-compatibility, and the swipe detection algorithm. Tests run automatically on CI via GitHub Actions on pushes and pull requests to main.
If a three-finger swipe doesn't register, Swyper's diagnostic log shows what the gesture detector saw. Watch it live while reproducing the problem:
log stream --predicate 'subsystem == "com.swyper.app"'Or, after noting the time a swipe failed, pull recent history:
log show --last 10m --predicate 'subsystem == "com.swyper.app"' --infoMessages to look for:
Three-finger tracking started— the detector saw three fingertips. If this never appears, three contacts were never registered simultaneously (or detection is suppressed, below).Three-finger gesture ended without a swipe: … per-finger travel …— tracking started but no swipe fired; the per-finger travel shows whether fingers moved too little, or one finger lagged behind the others, or a finger dropped out mid-swipe (contact count changed).Four or more contacts moving together (… down) — three-finger detection suppressed until all fingers lift— the frame looked like a system four-finger gesture (e.g. switching spaces); nothing registers until every contact lifts. A resting thumb or palm that stays put does not trigger this — only four contacts all in motion do.Contacts: … palm-sized excluded (sizes: …)— a contact was excluded as a palm. If a real fingertip pressed flat reads at or above size 0.9, it is dropped and the finger count falls below three.Swipe … ignored: no shortcut configured for …— the swipe was detected, but the frontmost app has no mapping for that direction.
Swyper uses the private MultitouchSupport.framework (loaded dynamically via dlopen) to receive raw multitouch data from the trackpad. It tracks active touch points and detects when three fingers move together past a displacement threshold, then simulates the configured keyboard shortcut via the CGEvent API.
MIT