spotify: try to fix stream cleaning

This commit is contained in:
Vincent Bernat 2022-07-22 12:08:27 +02:00
parent 14f933d7e7
commit a614930197

View file

@ -1,10 +1,9 @@
#!/bin/sh
# Kill all spotify streams, except the most recent one.
# Kill all spotify streams, except the most recent (old?) one.
exit 0
pw-cli dump short client \
| grep -F 'ap="spotify"' \
| head -n-1 \
| tail -n+2 \
| cut -d: -f1 \
| xargs -rn1 pw-cli destroy