diff --git a/bin/spotify-clean b/bin/spotify-clean index 04a2aa8..8521bc5 100755 --- a/bin/spotify-clean +++ b/bin/spotify-clean @@ -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