From 54242cc943a412d06ba552ba8e7d7c244df2fe28 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 10 Aug 2021 13:15:36 +0200 Subject: [PATCH] btsync: Make compatible with pipewire MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pacmd only supports the “real” pulseaudio daemon. --- users/simon/modules/scripts/btsync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/simon/modules/scripts/btsync b/users/simon/modules/scripts/btsync index c0f4ae9..4eb80fe 100755 --- a/users/simon/modules/scripts/btsync +++ b/users/simon/modules/scripts/btsync @@ -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"