fixed backwards if statement and spaces

This commit is contained in:
2017-05-10 20:32:42 -06:00
parent 4144f8b251
commit 725368d210
+1 -1
View File
@@ -24,7 +24,7 @@ fi
muted=`pactl list sinks | grep "Mute" | awk '{print $2}'` muted=`pactl list sinks | grep "Mute" | awk '{print $2}'`
vol=`pactl list sinks | grep "front-left" | awk '{print $5}'` vol=`pactl list sinks | grep "front-left" | awk '{print $5}'`
if [[ $muted == "no" ]]; then if [[ $muted == "yes" ]]; then
twmnc -t 'volume' -c 'muted' -d 100 twmnc -t 'volume' -c 'muted' -d 100
else else
twmnc -t 'volume' -c "${direction}${vol}" -d 100 twmnc -t 'volume' -c "${direction}${vol}" -d 100