This commit is contained in:
2026-01-18 16:27:08 -08:00
parent 122ea23b63
commit 2419938a47

View File

@ -1,8 +1,10 @@
#!/bin/sh #!/bin/sh
VOLUME=$(mixer | grep vol) VOLUME=$(wpctl get-volume @DEFAULT_SINK@)
#VOLUME=$(mixer | grep vol)
case $VOLUME in case $VOLUME in
*mute*) *MUTED*)
echo " MUTED";; echo " MUTED";;
esac esac
VOLUME=$(echo $VOLUME | awk '{print $3}' | sed 's/:.*//;s/^0//;s/\.//') #VOLUME=$(echo $VOLUME | awk '{print $3}' | sed 's/:.*//;s/^0//;s/\.//')
VOLUME=$(echo $VOLUME | awk '{print $2}' | sed s/^0\.//g)
echo " $VOLUME" echo " $VOLUME"