Update volume scripts

This commit is contained in:
Santiago Lo Coco 2023-12-26 20:59:24 -03:00
parent d613089e3a
commit 6bc1f9b506
1 changed files with 2 additions and 2 deletions

View File

@ -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