[zsh] add bluetooth audio resync function

legacy
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
1 changed files with 9 additions and 0 deletions

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
## dircolors