btsync: Make compatible with pipewire

pacmd only supports the “real” pulseaudio daemon.
upower
Simon Bruder 2021-08-10 13:15:36 +02:00
parent 2b9bb92757
commit 54242cc943
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 2 additions and 2 deletions

View File

@ -3,5 +3,5 @@ set -eo pipefail
card=$(pactl list cards short | grep -E -o "bluez_card.*" | cut -f1)
# pactl does not support any easily parsable output format
profile=$(pactl list cards | rg -oU "Name: ${card}.*(\\n.*?)*.*Active Profile: (.*)" -r "\$2")
pacmd set-card-profile "$card" off
pacmd set-card-profile "$card" "$profile"
pactl set-card-profile "$card" off
pactl set-card-profile "$card" "$profile"