commit a67e43377b0e91783995e58afaa17908b884928d
parent e1aec059375a5d972777debc0735745751ad63d8
Author: Daniel Moch <daniel@danielmoch.com>
Date: Thu, 10 May 2018 22:33:25 -0400
Check for running pulseaudio server
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.local/bin/my b/.local/bin/my
@@ -126,7 +126,7 @@ case $command in
exec my-open "$@"
;;
sound)
- if type pactl > /dev/null 2>&1
+ if type pactl > /dev/null 2>&1 && pactl stat > /dev/null 2>&1
then
[ -z "$1" ] && exit 1
if [ $1 = "status" ]