[zsh] add bluetooth audio resync function
This commit is contained in:
parent
7b9bc5c888
commit
ef5ea0f8ce
|
@ -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
|
||||||
|
|
Reference in a new issue