spotify: make it work with only pw-cli

This commit is contained in:
Vincent Bernat 2022-06-30 21:22:43 +02:00
parent 8cd2ed3730
commit 5102803e75

View file

@ -2,7 +2,8 @@
# Kill all spotify streams, except the most recent one.
pactl list short clients \
| awk '($3 == "spotify") {print $1}' \
pw-cli dump short client \
| grep -F 'ap="spotify"' \
| head -n-1 \
| xargs -rn1 pacmd kill-client
| cut -d: -f1 \
| xargs -rn1 pw-cli destroy