diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-07 18:57:23 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-07 18:57:23 +0200 |
| commit | b324ff0fb5cbc13a038ce2e5a2a4af69598bb91a (patch) | |
| tree | 3038d7ed7f940b209b7e9db68393c6e229d925cd /desktop/island/privacy.sh | |
| parent | 744802e1ecb44ddb4714f8922b8ee0e9e5def811 (diff) | |
| download | quickshell-b324ff0fb5cbc13a038ce2e5a2a4af69598bb91a.tar.gz quickshell-b324ff0fb5cbc13a038ce2e5a2a4af69598bb91a.zip | |
fix(island): review findings in the pill components
- The flag switches once per wheel notch; a touchpad's stream of small
deltas switched an erratic number of times.
- The flick decides on resolved icon paths, so a name the icon theme lacks
falls back to the workspace number instead of a blank slot.
- Layout switching uses Hyprland's 'current' keyboard rather than looking
up the main device in a subshell.
- The capsule radius reaches half the rest height, a real capsule.
- privacy.sh exits non-zero when pw-dump fails, so Privacy keeps its last
reading instead of reporting nothing captured.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/island/privacy.sh')
| -rwxr-xr-x | desktop/island/privacy.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/island/privacy.sh b/desktop/island/privacy.sh index 9d5b360..8e70933 100755 --- a/desktop/island/privacy.sh +++ b/desktop/island/privacy.sh @@ -16,7 +16,9 @@ # pw-dump because a capturing source is told from an idle one by its node # state, which Quickshell's PwNode does not expose. -dump=$(pw-dump 2>/dev/null) +# No dump is a broken run, not "nothing is capturing": print nothing, and +# Privacy.qml keeps its last reading. +dump=$(pw-dump 2>/dev/null) || exit 1 mic=$(printf '%s' "$dump" | jq '[.[] | select(.type == "PipeWire:Interface:Node") |
