From 725368d21012af4304eb43566fa6d14a30abd0d8 Mon Sep 17 00:00:00 2001 From: Eric Phillips Date: Wed, 10 May 2017 20:32:42 -0600 Subject: [PATCH] fixed backwards if statement and spaces --- volumeset.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/volumeset.sh b/volumeset.sh index 06c278f..247e62f 100755 --- a/volumeset.sh +++ b/volumeset.sh @@ -10,10 +10,10 @@ if [[ $# -eq 1 ]]; then "up") pactl set-sink-mute $sink false pactl set-sink-volume $sink +$step% - direction='increased to ';; + direction='increased to';; "down") pactl set-sink-volume $sink -$step% - direction='decreased to ';; + direction='decreased to';; "mute") pactl set-sink-mute $sink toggle;; *) @@ -24,7 +24,7 @@ fi muted=`pactl list sinks | grep "Mute" | awk '{print $2}'` 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 else twmnc -t 'volume' -c "${direction}${vol}" -d 100