btsync: Make compatible with pipewire
pacmd only supports the “real” pulseaudio daemon.
This commit is contained in:
parent
2b9bb92757
commit
54242cc943
|
@ -3,5 +3,5 @@ set -eo pipefail
|
||||||
card=$(pactl list cards short | grep -E -o "bluez_card.*" | cut -f1)
|
card=$(pactl list cards short | grep -E -o "bluez_card.*" | cut -f1)
|
||||||
# pactl does not support any easily parsable output format
|
# pactl does not support any easily parsable output format
|
||||||
profile=$(pactl list cards | rg -oU "Name: ${card}.*(\\n.*?)*.*Active Profile: (.*)" -r "\$2")
|
profile=$(pactl list cards | rg -oU "Name: ${card}.*(\\n.*?)*.*Active Profile: (.*)" -r "\$2")
|
||||||
pacmd set-card-profile "$card" off
|
pactl set-card-profile "$card" off
|
||||||
pacmd set-card-profile "$card" "$profile"
|
pactl set-card-profile "$card" "$profile"
|
||||||
|
|
Loading…
Reference in a new issue