Update volume scripts
This commit is contained in:
parent
d613089e3a
commit
6bc1f9b506
|
@ -21,14 +21,14 @@ changeDefaultSink() {
|
|||
pactl set-default-sink $SINKHDMI
|
||||
if [ $? -ne 0 ]; then
|
||||
INDEX="$(pactl list short cards | grep alsa_card.pci-0000_01_00.1 | cut -d$'\t' -f1)"
|
||||
pactl set-card-profile "$INDEX" output:analog-stereo
|
||||
pactl set-card-profile "$INDEX" output:hdmi-stereo
|
||||
pactl set-default-sink $SINKHDMI
|
||||
fi
|
||||
elif [ "$SINK" = "$SINKHDMI" ]; then
|
||||
pactl set-default-sink $SINKANALOG
|
||||
if [ $? -ne 0 ]; then
|
||||
INDEX="$(pactl list short cards | grep alsa_card.pci-0000_00_1b.0 | cut -d$'\t' -f1)"
|
||||
pactl set-card-profile "$INDEX" output:analog-stereo
|
||||
pactl set-card-profile "$INDEX" output:analog-stereo+input:analog-stereo
|
||||
pactl set-default-sink $SINKANALOG
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue