summaryrefslogtreecommitdiff
path: root/volume
diff options
context:
space:
mode:
Diffstat (limited to 'volume')
-rwxr-xr-xvolume2
1 files changed, 1 insertions, 1 deletions
diff --git a/volume b/volume
index b2f6e37..9331d1d 100755
--- a/volume
+++ b/volume
@@ -18,6 +18,6 @@ case $BLOCK_BUTTON in
esac
volstat="$(volsv -v)"
mutstat="$(volsv -g)"
-echo "$mutstat" | grep -q "\[off\]" && printf "[X]" && exit
+echo "$mutstat" | grep -q "yes" && printf "[X]" && exit
vol="$(echo "$volstat" | grep '[0-9]\+%' | sed "s,.* \([0-9]\+\)%.*,\1,;1q")"
printf "[%s]" "$vol"