Add ens-forecast to xmobar

This commit is contained in:
Daniele Fucini
2026-10-10 09:18:57 +02:00
parent 493d555983
commit a7f19fe2a7
4 changed files with 43 additions and 4 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
sink=$(pactl get-default-sink)
muted=$(pactl get-sink-mute "$sink" | cut -d' ' -f2)
if [ "$muted" = "yes" ]; then
echo " 0%"
else
case "$sink" in
bluez_output.*) icon="" ;;
*) icon="" ;;
esac
echo "$icon $(pactl get-sink-volume "$sink" | grep Volume | cut -d/ -f2 | xargs)"
fi