aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/audio_status.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/audio_status.sh b/scripts/audio_status.sh
index 93fe840..2a8b28f 100755
--- a/scripts/audio_status.sh
+++ b/scripts/audio_status.sh
@@ -10,11 +10,12 @@ function print_unmute {
if type pamixer &>/dev/null
then
- if pamixer --get-mute &> /dev/null
+ muted="$(pamixer --get-mute)"
+ if test ! $? || test "$muted" == "true"
then
print_mute
else
- print_unmute
+ print_unmute
fi
if type pacmd &>/dev/null