diff --git a/home/.zshrc.local b/home/.zshrc.local index 23ed3ff..e409f06 100644 --- a/home/.zshrc.local +++ b/home/.zshrc.local @@ -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