Browse Source

Scripts: Fix listing of audio devices

master
Riyyi 3 years ago
parent
commit
a5908b4dcd
  1. 2
      .local/bin/volctl

2
.local/bin/volctl

@ -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/) /'

Loading…
Cancel
Save