feat(menu): group the rofi picker into Tools / System submenus

The root picker had grown to 16 flat entries. Collapse it to six —
Apps · Theme · Tools › · System › · Power · Keybindings — with Tools
(Calculator, Clipboard, Emoji, Files, Web, Capture, Ask) and System
(Network, Bluetooth, DND, plus the self-gated Snapshots / Power-profile)
as submenus the dispatcher routes via `nomarchy-menu tools|system`. Each
submenu ends in a ← Back entry that re-opens the root. The direct
SUPER+CTRL+<mnemonic> binds still reach the leaves straight (bypassing
the menu), and the gated entries still hide when unavailable.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Bernardo Magri
2026-06-16 17:35:03 +01:00
parent f68b245d92
commit e0ee5b9e7e
2 changed files with 67 additions and 42 deletions

View File

@@ -37,15 +37,16 @@ how to override it. Items marked ✓ are shipped.
launcher, no second theming pipeline; the dispatcher owns the menu
structure, so the renderer stays swappable (we moved fuzzel → rofi 2.0
once mainline gained native Wayland, for its richer theming)
- **Organize the picker into category submenus:** the root picker has grown
into a long flat list (Apps · Theme · Clipboard · Calculator · Files ·
Emoji · Web · Network · Bluetooth · Capture · Keybindings · Ask · DND ·
Snapshots · Power profile · Power · …). Group it into category submenus
(e.g. **System**, **Tools**, **Look & Feel**, **Power**) so the top level
stays short and scannable, the dispatcher routing `nomarchy-menu <category>`
→ its leaf modules. Keep the direct `SUPER+CTRL+<mnemonic>` binds as fast
paths straight to the leaves (they bypass the menu), and self-gated
entries (power-profile, snapshots) still hide when unavailable.
- **Organize the picker into category submenus:** the root picker had grown
into a long flat list of 16 entries. It's now six: **Apps · Theme · Tools
· System · Power · Keybindings**. `Tools` (Calculator, Clipboard, Emoji,
Files, Web, Capture, Ask) and `System` (Network, Bluetooth, DND, and the
self-gated Snapshots / Power-profile) are submenus the dispatcher routes via
`nomarchy-menu tools|system`, each ending in a `← Back` entry that re-opens
the root. The direct `SUPER+CTRL+<mnemonic>` binds still hit the leaves
straight (bypassing the menu), and the self-gated entries still hide when
unavailable. Remaining (optional): a **Look & Feel** category once there are
more appearance toggles to group with Theme (night-light, wallpaper).
-**Menu modules from rofi plugins:** the old `calc` flow committed the
expression blind (result only in the *next* menu's `-mesg`) and `qalc -t`
misparsed common phrasings (`15% of 200``rem(15, 1 B)`, the natural-