From 6bc1f9b506a8a1fb1600ab89fe975f28f36dc146 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Tue, 26 Dec 2023 20:59:24 -0300 Subject: [PATCH] Update volume scripts --- blocks.def/volume_button.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks.def/volume_button.sh b/blocks.def/volume_button.sh index a7c00c7..92bde68 100755 --- a/blocks.def/volume_button.sh +++ b/blocks.def/volume_button.sh @@ -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