1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Cleanup i3/blocks/volume formatting a touch

This commit is contained in:
Joe Groocock 2016-09-01 14:11:06 +01:00
parent 6b97fe75f9
commit 34d7ae3a12

View File

@ -75,21 +75,17 @@ VOL=$(volume | format)
ACTIVE=$(pacmd list-sinks | grep '* index' | awk -F": " '{print $2}') ACTIVE=$(pacmd list-sinks | grep '* index' | awk -F": " '{print $2}')
if pactl list short sinks | grep -q \^$ACTIVE".*Yeti" if pactl list short sinks | grep -q \^$ACTIVE".*Yeti"; then
then
printf "" printf ""
elif [ "$VOL" -eq -1 ] elif [ "$VOL" -eq -1 ]; then
then
printf "X" printf "X"
exit 0 exit 0
elif [ "$VOL" -eq 0 ] elif [ "$VOL" -eq 0 ]; then
then
printf "" printf ""
elif [ "$VOL" -gt 59 ] elif [ "$VOL" -gt 59 ]; then
then
printf "" printf ""
else else
printf "" printf ""
fi fi
printf " "$VOL printf " $VOL"