diff --git a/bin/spotify-clean b/bin/spotify-clean index bb78790..f0726dd 100755 --- a/bin/spotify-clean +++ b/bin/spotify-clean @@ -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