mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit 4022b84783cde681ea0b3d085e09cfb5acd8a523
parent 9422d0dae49554da481fb8e68120fc1fbdfe3a98
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat,  2 Mar 2019 20:53:14 +0100

fix pa bluez profile of multiple cards

Diffstat:
fix_pa_bluez_profile | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/fix_pa_bluez_profile b/fix_pa_bluez_profile @@ -2,6 +2,9 @@ # set pulseaudio profile for bluetooth headset to A2DP -CARD=$(pacmd list-cards | grep -A1 index: | grep -B1 bluez | head -1 | cut -d':' -f2) -pacmd set-card-profile "$CARD" a2dp_sink - +pacmd list-cards | grep -A1 index: | grep -B1 bluez | cut -d':' -f2 | + grep -v '<' | while read CARD +do +echo $CARD +#pacmd set-card-profile "$CARD" a2dp_sink +done