Add ens-forecast to xmobar
This commit is contained in:
Executable
+15
@@ -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
|
||||
Reference in New Issue
Block a user