fix(waybar): inhibited notification state reads by shape, not color alone
All checks were successful
Check / eval (push) Successful in 2m59s

Item 28 color-only accessibility sweep. Swept every Waybar status
indicator for shape/glyph redundancy: all already carry non-color
distinction (updates shows a count + self-hides; vpn/doctor/nightlight/
recording self-gate; battery/idle/muted are glyph-distinct) except the
swaync notification module — its `inhibited-*` states reused the normal
bells (󰂜/󰂚), so an app-inhibited (suppressed) state was distinguished
from a normal one by color alone.

Route every suppressed state (DND + inhibited) to the bell-off glyph 󰂛
+ @muted, so "notifications are off right now" reads by SHAPE. Applied
to the generated bar and all four whole-swaps (summer-day/night use
their own bell-off glyph; executive-slate/boreal use 󰂛) — parity rule.
Reuses the glyph DND already ships, so no new codepoint / tofu risk.

Verified: V0 (flake check --no-build; 4 jsoncs valid JSON) + V1 (built
homeConfigurations.nomarchy.activationPackage — the built config has
inhibited-* = U+F009B and style.css routes .inhibited-* → @muted).
V3 pending: live inhibited-state render with an app holding an inhibitor
(HARDWARE-QUEUE). MEMORY gains the "status is never color-only" invariant.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Bernardo Magri
2026-07-08 21:07:10 +01:00
parent 850dc310df
commit 6bd03747c9
11 changed files with 82 additions and 22 deletions

View File

@@ -17,6 +17,30 @@ Template:
---
## 2026-07-08 — Color-only status sweep + inhibited-bell fix (iteration #69)
- **Task:** BACKLOG #28 slice — the audit's systemic "status is never
color-only" finding (accessibility): sweep the remaining Waybar status
indicators for shape/glyph redundancy.
- **Did:** swept every status module. All already carry non-color
redundancy (updates shows a count + self-hides; vpn/doctor/nightlight/
recording self-gate; battery/idle/muted are glyph-distinct) EXCEPT one:
swaync `inhibited-*` reused the normal bells (󰂜/󰂚), so an inhibitor
suppressing notifications was distinguished from normal by *color alone*.
Fixed: route every suppressed state (DND + inhibited) to the bell-off
glyph 󰂛 + @muted — generated bar (waybar.nix) AND all four whole-swaps
(summer-day/night use their own bell-off, executive-slate/boreal 󰂛;
parity rule). Reused the proven DND glyph → zero tofu risk.
- **Verified:** V0 (flake check --no-build green; all 4 jsoncs valid JSON).
V1: built homeConfigurations.nomarchy.activationPackage; confirmed in the
*built* artifact that inhibited-none/notification = U+F009B (bell-off,
was F009C/F009A) and style.css routes .inhibited-* → @muted.
- **Pending:** V3 queued (HARDWARE-QUEUE, Any-machine) — confirm the muted
bell-off renders while an app holds a notification inhibitor. Low risk:
the glyph already ships for DND. MEMORY gains the "status is never
color-only" design invariant (regression guard).
- **Next suggestion:** #28 remaining is [human] (icon-weight call) or
V3-visual; likely a QA sweep or await Bernardo on #29/#33.
## 2026-07-08 — Migration guide: existing NixOS → Nomarchy (docs, direct request)
- **Task:** Bernardo asked whether THIS machine (TuringMachine, NixOS 25.11)
can migrate to Nomarchy without a reinstall, keeping all files — and to