spotify: reenable spotify-clean

It seems the logic is OK. Just log the output of pw-cli dump short.
This commit is contained in:
Vincent Bernat 2022-07-27 22:30:34 +02:00
parent 5a8c0d87a1
commit 4ca15b049d

View file

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