repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

audio: correct spec privacyLabel idle case (Audio, not empty)

3c63302e62a7a46988628f3d6ff9a2df5209ca64

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Changed files (1)

+2 / −2 text lines

Diff layout

quickshell/nuguland/docs/superpowers/specs/2026-06-29-audio-popup-redesign-design.md

Modified

+2 / −2 text lines

4040- `channelNames(channels)` → maps channel enums/strings to labels (preserve current mapping).
4141- `nodeMuted(plainNode)` → `!!plainNode.muted`.
4242- `roleForSink(plainSink)` → `"warning"` if muted, `"ui.minor"` if volume 0, else `"ui.accent"` (preserve current thresholds).
43- `privacyLabel(flags)` → `{mic,cam}` → "Mic" / "Cam" / "Mic Cam" / "Audio" / "" (preserve current text).
43- `privacyLabel(flags)` → `{mic,cam}` → "Mic Cam" / "Mic" / "Cam" / "Audio" (idle fallback) — preserve original text exactly.
4444- `shapeRow(plainNode, kind)` → `{id, name, kind, volume, percent, muted, role, isDefault, glyph}` plain dict for the view.
4545- `rowsById(rows)` → `{id: row}` map.
4646- Dual-mode export tail (guarded `module.exports`), identical pattern to `clip.js`.
7070- Missing/empty node name → `"Audio"`.
7171- Volume out of range → clamped to `0..1.5` by `clampVolume`.
7272- Empty sink/source list → section renders header + empty (no crash).
73- `privacyLabel` with no flags → `""` (privacy widget hides — preserve current `privacyActive()` behavior).
73- `privacyLabel` with no mic/cam → `"Audio"` (preserve original behavior; `privacyActive()` = mic||cam is what gates the Bar widget, not the label). The Bar lowercases it to `"audio"` for the idle chip.
7474- Native default sink/source null → no default accent bar; rows still list.
7676## 5. Testing