[zsh] add bluetooth audio resync function

This commit is contained in:
Simon Bruder 2019-02-08 13:22:15 +00:00
parent 7b9bc5c888
commit ef5ea0f8ce
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -67,6 +67,15 @@ function tfont() {
) )
} }
## resync pulseaudio bluetooth connection
function btsync() {
(
card=$(pactl list cards short|grep -E -o 'bluez_card.*[[:space:]]')
pacmd set-card-profile $card off
pacmd set-card-profile $card a2dp_sink
)
}
# Fancy stuff # Fancy stuff
## dircolors ## dircolors