From 13a125fab068621e6c25b8fc43231b0f70508a6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 22 Oct 2023 07:14:25 +0200 Subject: [PATCH] audio-chooser: also disconnect earphones --- home/bin/audio-chooser | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home/bin/audio-chooser b/home/bin/audio-chooser index bc247a2d5..e8ce0b997 100755 --- a/home/bin/audio-chooser +++ b/home/bin/audio-chooser @@ -13,18 +13,21 @@ earphones=bluez_card.5C_56_A4_74_38_19 case $selected in headphones) echo "Setting up Headphones" + bluetoothctl disconnect "5C:56:A4:74:38:19" || true pactl set-card-profile "$headset" output:analog-stereo+input:mono-fallback || true pactl set-card-profile "$speakers" off || true pactl set-card-profile "$earphones" off || true ;; speakers) echo "Setting up Speakers" + bluetoothctl disconnect "5C:56:A4:74:38:19" || true pactl set-card-profile "$speakers" output:analog-stereo+input:analog-stereo || true pactl set-card-profile "$headset" off || true pactl set-card-profile "$earphones" off || true ;; "headphones (output-only)") echo "Setting up Headphones (Output-Only)" + bluetoothctl disconnect "5C:56:A4:74:38:19" || true pactl set-card-profile "$headset" output:analog-stereo || true pactl set-card-profile "$speakers" off || true pactl set-card-profile "$earphones" off || true