aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/audio_status.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/audio_status.sh b/scripts/audio_status.sh
index 6e09da8..93fe840 100755
--- a/scripts/audio_status.sh
+++ b/scripts/audio_status.sh
@@ -17,9 +17,12 @@ then
print_unmute
fi
- echo -n $(pacmd info | grep 'active port.*output' | cut -d"-" -f3 | sed "s/>//")
+ if type pacmd &>/dev/null
+ then
+ echo -n $(pacmd info | grep 'active port.*output' | cut -d"-" -f3 | sed "s/>//") ""
+ fi
- echo " [$(pamixer --get-volume)%]"
+ echo "[$(pamixer --get-volume)%]"
elif type amixer &>/dev/null
then