fix(waybar): mic icon centering and change to event-driven updating

This commit is contained in:
2026-02-09 14:18:04 +00:00
parent 2fce7ad031
commit 5cfcb8a394
3 changed files with 26 additions and 12 deletions

View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
print_icon() {
if wpctl get-volume @DEFAULT_AUDIO_SOURCE@ | grep -q MUTED; then
echo ""
else
echo ""
fi
}
# Print once on startup
print_icon
# Subscribe to PipeWire events
wpctl subscribe @DEFAULT_AUDIO_SOURCE@ | while read -r _; do
print_icon
done