fix_pa_bluez_profile (232B)
1 #!/bin/bash 2 3 # set pulseaudio profile for bluetooth headset to A2DP 4 5 pacmd list-cards | grep -A1 index: | grep -B1 bluez | cut -d':' -f2 | 6 grep -v '<' | while read CARD 7 do 8 echo $CARD 9 #pacmd set-card-profile "$CARD" a2dp_sink 10 done