Skip to content

Commit

Permalink
Merge pull request #943 from Mic92/joerg-ci
Browse files Browse the repository at this point in the history
audio-chooser: also disconnect earphones
  • Loading branch information
mergify[bot] authored Oct 22, 2023
2 parents aed2ad2 + 13a125f commit 217a87e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions home/bin/audio-chooser
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 217a87e

Please sign in to comment.