Draw a mouse gesture while holding right click to trigger a keyboard shortcut or open an app.
Set up different gestures that only apply inside a specific application.
Bind a gesture to a shell command or AppleScript to automate a repeated task.
Export your gesture library as a JSON file to back it up or share it with another Mac.
| licoy/strokemouse | john-rocky/coreai-model-zoo | eyrefree/vscam | |
|---|---|---|---|
| Stars | 108 | 112 | 102 |
| Language | Swift | Swift | Swift |
| Last pushed | — | — | 2019-09-28 |
| Maintenance | — | — | Dormant |
| Setup difficulty | moderate | hard | moderate |
| Complexity | 3/5 | — | 3/5 |
| Audience | general | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires granting macOS Accessibility permission, and optionally Automation permission for AppleScript based gestures.
StrokeMouse is a macOS tool for creating custom mouse gestures. You hold down a trigger button, right click by default though middle click or a side button can be used instead, and drag the mouse in a shape. Once the shape matches a gesture you have defined, StrokeMouse runs whatever action you assigned to it, such as pressing a keyboard shortcut, opening an app, moving or resizing a window, sending a media key, or running a shell command or AppleScript. Gestures can apply everywhere on your Mac or only inside specific apps, and each gesture can have its own trigger button and its own target app or window. The app lives quietly in the menu bar, where its icon changes color depending on whether it is running normally, paused, or missing a needed permission. Your full set of gestures can be exported and imported as a JSON file, so a personal setup can be backed up or shared, and gestures can also be edited by hand in that file if needed. Because it needs to watch mouse movement everywhere on the system and inject keyboard shortcuts, StrokeMouse requires the macOS Accessibility permission, and optionally the Automation permission if a gesture uses AppleScript to control another app. The app includes a guided setup to help grant these permissions the first time you run it, and it will not pretend to be listening if permission has not been granted. To build it from source, you need macOS 14 Sonoma or later and Xcode 16 or newer, plus the XcodeGen tool installed through Homebrew to generate the Xcode project. The project includes scripts for generating the project file, building a debug or release version, and packaging signed releases as zip, tar.gz, and DMG files. It is built with Swift and SwiftUI, uses Apple's CGEventTap API to watch mouse events globally, and includes Sparkle for in app update checks. The project is released under the GNU Affero General Public License version 3. Since it can run shell commands and AppleScript with system level reach, the author notes that you should only add scripts and gestures you trust, and takes no responsibility for misuse or accidental actions.
A macOS menu bar app that lets you draw custom mouse gestures to trigger shortcuts, apps, window actions, or scripts.
Mainly Swift. The stack also includes Swift, SwiftUI, XcodeGen.
You can use and modify the software freely, but if you run a modified version as a network service, you must also release your changes, under the AGPL 3.0 license.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly general.
This repo across BitVibe Labs
Verify against the repo before relying on details.