From 72e7afea8e35f63cee5956c84206d5c7b70ddae5 Mon Sep 17 00:00:00 2001 From: James Murphy Date: Wed, 17 Jan 2018 16:15:04 -0600 Subject: [PATCH] volume-pulseaudio: pulse-detection: explicitly try the "pulse" device --- volume-pulseaudio/volume-pulseaudio | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volume-pulseaudio/volume-pulseaudio b/volume-pulseaudio/volume-pulseaudio index 53663a5a..8a99d248 100755 --- a/volume-pulseaudio/volume-pulseaudio +++ b/volume-pulseaudio/volume-pulseaudio @@ -75,7 +75,7 @@ done if [[ -z "$MIXER" ]] ; then MIXER="default" - if [[ "$(amixer info | head -1 | cut -d ' ' -f 2)" == "pulse" ]] ; then + if amixer -D pulse info >/dev/null 2>&1 ; then MIXER="pulse" fi fi