aboutsummaryrefslogtreecommitdiff
path: root/selectAudioSink.sh
blob: 58bf9f636892dec9553ceab44a0f27ff9dc33871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# selectAudioSink.sh
#
# Sets an audio sink.

port="$(pactl list sinks |
	sed -n '/Ports/,/Active Port/p' |
	sed '/Ports/d;/Active/d;s/:.*$//;s/^\s*//' |
	dmenu -c -bw 3 -i -l 10)"

pactl set-sink-port alsa_output.pci-0000_00_1f.3.analog-stereo "$port"