From f5bdcf3edce94023fd34ee64e3da51a231ef5749 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 1 Aug 2022 22:29:48 +0200 Subject: [status] fix mute detection pamixer apparently no longer reports the mute status via an exit code but rather prints true or false to stdout. --- scripts/audio_status.sh | 5 +++-- 1 file 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 -- cgit v1.2.3