Change volume mute display, add max-volume

This commit is contained in:
Riyyi
2019-03-19 13:27:24 +01:00
parent c75e2fc900
commit e29157351a
3 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -10,13 +10,14 @@ case $BLOCK_BUTTON in
5) $MEDIACONTROL down 5 ;; # Scroll down
esac
VOLUME="$($MEDIACONTROL getvolume)%"
if [ "$($MEDIACONTROL getmute)" = "1" ]; then
COLOR="$COLOR7"
VOLUME="MUTE"
SYMBOL=""
else
COLOR="$COLOR15"
VOLUME="$($MEDIACONTROL getvolume)%"
if [ "${VOLUME%?}" -ge "50" ]; then
SYMBOL=""