feat(hyprland): launch-or-focus binds (item 17)
All checks were successful
Check / eval (push) Successful in 3m4s

nomarchy.launchOrFocus (opt-in, commented template example): each
entry gives a key that FOCUSES the app's existing window
(case-insensitive class match via jq + a "(?i)" focuswindow regex) or
launches it when none is open. One shared nomarchy-focus-or-launch
script; a bind whose command was removed from the suite fires a
"not installed" toast instead of failing silently. The same entries
render into the SUPER+? cheatsheet through prettyKeys — bind and
documentation stay one source. README row added.

Verified: V0; V1 — a scratch downstream with two entries renders both
binds (default command = lowercased class; custom mods/command/desc
honored), the script passes bash -n with a usage guard, and the
cheatsheet carries both rows. Focus behaviour needs a session -> V3
(HARDWARE-QUEUE).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Bernardo Magri
2026-07-05 20:56:01 +01:00
parent 4e3acbe89c
commit 8d54eecd67
8 changed files with 116 additions and 6 deletions

View File

@@ -17,6 +17,28 @@ Template:
---
## 2026-07-05 — launch-or-focus binds (iteration #39, item 17)
- **Task:** BACKLOG NEXT#17 (the UI review is Bernardo-gated; back to
the queue head). Item deleted.
- **Did:** nomarchy.launchOrFocus (listOf submodule: key/mods/class/
command/desc; opt-in, template example) → hyprland.nix generates
binds through a shared nomarchy-focus-or-launch script (jq
case-insensitive class match → focuswindow "(?i)" regex, else
launch; uninstalled command → toast, so binds survive suite edits);
rofi.nix renders the same entries into the SUPER+? cheatsheet via
prettyKeys (single source). README row.
- **Verified:** V0; V1 — scratch downstream with 2 entries: both
binds rendered (default command = lowercased class; custom
mods/command/desc honored), tool bash -n + usage exit 64,
cheatsheet rows present. Focus behaviour needs a session → V3
queued.
- **Pending:** V3. Queue after this: #18 control center [big, needs
the form-factor Decision], #19 Look&Feel menu (gated on ≥3
entries), #20 [human], LATER tier.
- **Next suggestion:** a QA sweep (#18/#19/#20 are blocked-ish) — or
item 19's precondition check (does Look & Feel earn 3 entries
yet?).
## 2026-07-05 — placeholder dim + latte review + backdrop probe (iteration #38, item 28c)
- **Task:** item 28 slice (c) — the summer-rasi quickie + the light-
theme capture.