# ed bifrost gestures

> Assigns extra mouse buttons, clicks or directional drags, to launcher actions, and tests them without running anything.

- Canonical URL: https://getedith.pro/docs/cli/bifrost/gestures
- Updated: 2026-12-02

Assigns extra mouse buttons, clicks or directional drags, to launcher actions,
and tests them without running anything.

Usage:

```
ed bifrost gestures [status] [--json]
ed bifrost gestures set <id> --button <3-32> --action <action> [--motion <motion>] [--modifiers <keys>] [--app <bundle id>] [--json]
ed bifrost gestures remove <id> [--json]
ed bifrost gestures enable|disable|test|stop-test|permissions|reset [--json]
```

Arguments and options:

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `<operation>` | `status`, `set`, `remove`, `reset`, `enable`, `disable`, `test`, `stop-test`, `permissions` | `status` | What to do. |
| `<id>` | letters, digits, `.`, `_`, `-` | none | The binding to set or remove. |
| `--button` | 3 to 32 | none | The mouse button. 3 is the middle button. |
| `--motion` | `click`, `up`, `down`, `left`, `right` | `click` | A click, or a drag of at least 32 points in that direction. |
| `--modifiers` | `command`, `option`, `control`, `shift`, joined with `+` | none | Keys that must be held, exactly. |
| `--app` | bundle identifier | all apps | Limits the binding to the app under the pointer. |
| `--action` | an id from `status` | none | What runs, such as `launcher.open` or `actions.open`. |
| `--json` | flag | off | Emits the full state as JSON. |

`status` prints what is happening, each binding and every action you can bind:

```
$ ed bifrost gestures
Listening for assigned mouse input.
open-bar  Button 4, click  all apps  Open launcher
launcher.open  ready  Open launcher
actions.open  ready  Extension actions
emoji.pick  unavailable  Emoji Picker
```

Actions are the launcher's own: opening the bar, opening it in Extension
actions, clipboard history, file search and the commands it lists. An action
whose extension is off stays bound but does nothing until the extension is on.

A binding for one app wins over a binding for all apps, and two bindings for the
same input and app are refused. The app is the one that owns the window under
the pointer when you press, so a click on a background Finder window counts as
Finder.

Pressing a bound button holds the input until you let go. If no binding matches
what you did, the press and release are sent on to the app, so a button bound
only to a drag still clicks normally. Drag movement in between is not replayed.

`test` lets input through and runs nothing for 30 seconds, then ends on its own;
`status --json` shows the last input it saw. Bindings and `enable` persist; test
mode does not. The listener only runs while gestures are on and at least one
binding exists, or while testing.

Gestures need Accessibility and Input Monitoring. `permissions` asks macOS for
both; Edith shows them as optional for Launcher, and without them input keeps
its normal behavior.

If the saved bindings cannot be read, `status` says so, `set` and `remove`
refuse to overwrite them, and `reset` clears them.

Exit codes:

| Code | Meaning |
| --- | --- |
| 0 | The state printed or the change was saved. |
| 2 | The command line was wrong: a button outside 3 to 32, an unknown modifier, motion or action, a duplicate input, binding options outside `set`, or `remove` with no id. |
| 3 | `remove` named a binding that does not exist. |
| 4 | The Bifrost extension is off. |

## Where to go next

- [`ed bifrost actions`](https://getedith.pro/docs/cli/bifrost/actions), for actions from other extensions
- [`ed bifrost`](https://getedith.pro/docs/cli/bifrost), the rest of this group
- [All `ed` commands](https://getedith.pro/docs/cli)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
