feat(rofi): show the Print-key hints on the Capture menu rows
All checks were successful
Check / eval (push) Successful in 3m2s

Iteration #66 (direct request: "make sure menu items that have a keybind
display it"). Audit found every SUPER(+CTRL) module-opening row already
hinted (item 28c); the one gap was Tools ▸ Capture — its Region/Full
screen rows run the exact grim commands of the Print / SHIFT+Print /
CTRL+Print binds but showed nothing. Adds `hintForBind mods key` (matches
keybinds.nix by mods+key, so no drift and no brittle full-action compare)
and `-markup-rows` on the Capture menu so the spans render.

Verified: V0 green; V1 HM built — shipped nomarchy-menu shows
`Region → clipboard {{Print}}`, `Region → file {{SHIFT + Print}}`,
`Full screen → file {{CTRL + Print}}`. Substring case-matches precede the
appended span, so dispatch is unchanged. V3 (pango dim render) queued.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Bernardo Magri
2026-07-08 14:16:45 +01:00
parent b18980f642
commit 714fbd1daf
3 changed files with 41 additions and 4 deletions

View File

@@ -271,6 +271,10 @@ QA machine), the **T14s** (webcam case).
saves a PNG under ~/Pictures/Screenshots (toast shows the path);
CTRL+Print saves the whole screen the same way; bare Print still
copies a region to the clipboard. Both new rows appear in SUPER+?.
Also (iteration #66): Tools ▸ Capture now shows the matching dim key
hint on the Region → clipboard / Region → file / Full screen → file
rows (Print / SHIFT + Print / CTRL + Print) — pango renders, no raw
`<span>` leaks.
- [ ] **rofi menu polish** (iteration #58, item 39 + #56/#57 34/40) —
after `home-update`: (a) menu System Power profile shows a
colored icon per profile (performance/balanced/power-saver), not

View File

@@ -17,6 +17,31 @@ Template:
---
## 2026-07-08 — Capture rows show Print-key hints (iteration #66, direct requests)
- **Task:** Two live requests from Bernardo. (1) Fold his provided
power-menu mockup into item 36(b). (2) "make sure all menu items that
have a keybind display the keybind" (he dropped the flush-right ask —
inline is fine).
- **Did:** (1) BACKLOG item 36(b) un-gated — mockup + Nomarchy adaptation
(reuse batterylimit/power-profile writers, not raw TLP; wire the Waybar
battery `on-click`; one open call: replace-or-keep the System rows).
(2) Audited every menu/submenu: all SUPER(+CTRL) module-opening rows
already carry a hint (item 28c). The one real gap = the Tools ▸ Capture
rows, which run the exact `grim` commands of the Print / SHIFT+Print /
CTRL+Print binds but showed nothing. Added `hintForBind mods key` (reads
keybinds.nix by mods+key, drift-free) → hints on the three matching rows,
and `-markup-rows` on the Capture menu so the spans render.
- **Verified:** V0 `nix flake check --no-build` green; V1 HM built, shipped
nomarchy-menu shows `Region → clipboard {{Print}}`, `Region → file
{{SHIFT + Print}}`, `Full screen → file {{CTRL + Print}}` under
`-markup-rows`. Substring `case` matches sit before the appended span, so
dispatch is unaffected (same proven pattern as Tools/System).
- **Pending:** V3 — pango dim actually rendering in the Capture submenu
(queued on the existing Capture entry). Power-menu item 36(b) stays
`[human]` on the replace-or-keep call.
- **Next suggestion:** back to the queue head (item 36a done; 32 done) —
next actionable is likely item 33 (rofi scrollbar) or a QA sweep.
## 2026-07-08 — SUPER+? cheatsheet re-fixed: base keysym (iteration #65, item 32)
- **Task:** BACKLOG item 32 — SUPER+? still didn't open the cheatsheet
after item 26's fix. Re-diagnose.