From ef5ea0f8ce42507058f255c5664912f3a4b09b36 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 8 Feb 2019 13:22:15 +0000 Subject: [PATCH] [zsh] add bluetooth audio resync function --- home/.zshrc.local | 9 +++++++++ 1 file changed, 9 insertions(+) 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