Scripts: Fix listing of audio devices
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ pulseTcp()
|
|||||||
"$0" p off
|
"$0" p off
|
||||||
|
|
||||||
# Select audio output device
|
# Select audio output device
|
||||||
devices="$(pactl list sources short | awk '/alsa_output.*RUNNING/ { print }' | sort -k 2)"
|
devices="$(pactl list sources short | awk '/alsa_output.*/ { print }' | sort -k 2)"
|
||||||
select="$3"
|
select="$3"
|
||||||
if [ -z "$select" ]; then
|
if [ -z "$select" ]; then
|
||||||
echo "$devices" | sed -nE '=;s/.*alsa_output\.(.*)\.monitor.*/\1/p;' | sed 'N;s/\n/) /'
|
echo "$devices" | sed -nE '=;s/.*alsa_output\.(.*)\.monitor.*/\1/p;' | sed 'N;s/\n/) /'
|
||||||
|
|||||||
Reference in New Issue
Block a user