You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`Mode`|`idle`, `hints`, `grid`, `recursive_grid`, `scroll`, `monitor_select`, or the name of the open [declared mode](CONFIGURATION.md#modes)|
193
194
194
195
**JSON output**
195
196
@@ -270,8 +271,8 @@ the check. The full set is
270
271
271
272
# Navigation modes
272
273
273
-
Modes take over the keyboard until you select a target or exit. All five
274
-
require a running daemon.
274
+
Modes take over the keyboard until you select a target or exit. Every mode
275
+
command requires a running daemon.
275
276
276
277
## Mode flag reference
277
278
@@ -295,7 +296,7 @@ nothing.
295
296
|`--modifier`|| value |`hints` · `grid` · `recursive_grid`| Comma-separated modifier keys to hold during action (cmd, super, meta, shift, alt, option, ctrl) (requires --action) |
296
297
|`--on-exit`|| value, repeatable |`hints` · `grid` · `recursive_grid`| Step to run after the action is fulfilled and the mode exits (same syntax as hotkeys, e.g. 'action left_click' or 'exec notify-send done'). Repeat the flag to run several steps in order. Requires --action; not run on manual escape/idle |
297
298
|`--repeat`|`-r`| none |`hints` · `grid` · `recursive_grid`| Re-activate mode after performing the action (requires --action) |
|`--search`|`-s`| none |`hints`| Show search input when the mode is activated |
300
301
|`--hide-on-empty-search`|| none |`hints`| Hide all hints when search query is empty (requires --search) |
301
302
|`--role`|| value, repeatable |`hints`| Filter by element role (comma-separated: button,link — the hints.clickable_roles vocabulary, see 'neru roles'). Repeat the flag to add more |
@@ -522,6 +523,35 @@ neru monitor_select --toggle
522
523
523
524
---
524
525
526
+
## neru mode
527
+
528
+
Enter a mode you declared under [`[modes.<name>]`](CONFIGURATION.md#modes).
529
+
530
+
```
531
+
neru mode <name> [flags]
532
+
```
533
+
534
+
A declared mode has no logic of its own: it captures the keyboard, shows its
535
+
indicator, and answers every key from its own `[modes.<name>.hotkeys]` table.
536
+
`Escape` returns to idle unless the table rebinds it. The same command is a
537
+
binding step, `"mode <name>"`, from any hotkey table or macro.
538
+
539
+
**Flags** — every flag listed for `mode` in the
540
+
[mode flag reference](#mode-flag-reference): `--toggle` and nothing else, since
541
+
a declared mode makes no selection.
542
+
543
+
A name nothing declares is refused with `ERR_INVALID_INPUT`, the same way a
544
+
binding into one is refused at load.
545
+
546
+
**Examples**
547
+
548
+
```bash
549
+
neru mode window
550
+
neru mode window --toggle
551
+
```
552
+
553
+
---
554
+
525
555
# Actions
526
556
527
557
One-shot input that runs without entering a mode. All action subcommands
@@ -1631,8 +1661,9 @@ scripts are safe.
1631
1661
```
1632
1662
1633
1663
`action` names either a mode command — `hints`, `grid`, `recursive_grid`,
1634
-
`scroll`, `monitor_select`, `idle` — or one of the standalone commands. `args`
1635
-
carries the same flags a user would type.
1664
+
`scroll`, `monitor_select`, `idle`, or `mode` with the declared name as the
1665
+
first entry of `args` — or one of the standalone commands. `args` carries the
1666
+
same flags a user would type.
1636
1667
1637
1668
A mode command's flags are read exactly as the CLI reads them, and answered
1638
1669
with the same message: an unknown flag, a flag the named mode does not accept,
0 commit comments