Skip to content
Edith

Docs

Command reference

ed mouse

ed mouse is the command-line surface for the Mouse Tuner page under Mac Utilities. It turns Mouse Tuner on and off, assigns button actions, keeps per-device profiles and lists the apps left alone. Scroll speed, glide time, linear scrolling, scroll direction, the sideways modifier, pointer acceleration, the drag gesture, the click filter and the three-finger middle click are settings, changed in Mouse Tuner settings or with ed config.

The ed command line

Command What it does
ed mouse status Show what Mouse Tuner changes.
ed mouse on Start tuning the mouse.
ed mouse off Stop tuning and put the mouse back.
ed mouse buttons List what each extra button does.
ed mouse assign Give a mouse button an action.
ed mouse unassign Give a button its usual job back.
ed mouse devices List connected mice and trackpads.
ed mouse profiles List device profiles.
ed mouse profile Save settings for one mouse.
ed mouse forget Remove a device profile.
ed mouse exclude Leave an app alone.
ed mouse include Tune the mouse in an app again.

Mouse Tuner needs Accessibility to change mouse events and Input Monitoring to see them; Input Monitoring takes effect after Edith relaunches. Without both, the mouse works as before. Trackpad scrolling keeps the system direction. Turning pointer acceleration off saves the exact previous com.apple.mouse.scaling value and live HID acceleration, and puts them back when Mouse Tuner turns off, when Edith quits, when the extension is removed and on the next launch after a crash. Space switching sends the default Control and arrow shortcuts, so those must stay on in Keyboard Shortcuts.

Page operations

The page uses these operations, which also work through ed invoke with a JSON payload and print the full status as JSON:

Terminal
ed invoke mouseTuner mouseTuner.ui.status --json '{}'ed invoke mouseTuner mouseTuner.ui.on --json '{}'ed invoke mouseTuner mouseTuner.ui.off --json '{}'ed invoke mouseTuner mouseTuner.ui.setButton --json '{"button":5,"action":"shortcut","value":"cmd+shift+4"}'ed invoke mouseTuner mouseTuner.ui.clearButton --json '{"button":5}'ed invoke mouseTuner mouseTuner.ui.saveProfile --json '{"profile":{"vendorID":1133,"productID":50475,"name":"Desk mouse","scrollSpeed":150}}'ed invoke mouseTuner mouseTuner.ui.removeProfile --json '{"profileID":"046d:c52b"}'ed invoke mouseTuner mouseTuner.ui.exclude --json '{"app":"com.example.game"}'ed invoke mouseTuner mouseTuner.ui.include --json '{"app":"com.example.game"}'ed invoke mouseTuner mouseTuner.ui.apps --json '{}'ed invoke mouseTuner mouseTuner.ui.permission --json '{}'

Buttons are numbered from zero as macOS numbers them: 2 is the middle button, 3 Back, 4 Forward and 5 the first extra button. A rejected value returns its reason as the error.