aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2021-05-04 14:39:14 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2021-05-04 14:39:14 +0200
commit19b412f5f13a34b51d5a3f1b6e08ccd8db9b6e55 (patch)
tree3a34a91795bb4d8248207bc3d2779fcde8f433c7 /scripts
parent7bc537f38600878c66234c27432b6a78c6e7b004 (diff)
downloaddotfiles-19b412f5f13a34b51d5a3f1b6e08ccd8db9b6e55.tar.gz
dotfiles-19b412f5f13a34b51d5a3f1b6e08ccd8db9b6e55.zip
[audio_status] only show synk if pacmd is installed
Diffstat (limited to 'scripts')
-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