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