vincentbernat.i3wm-configur.../bin/spotify-clean
Vincent Bernat 54d5d473af spotify: disable streams cleaning
It seems it kills the wrong ones.
2022-07-17 10:34:05 +02:00

10 lines
203 B
Bash
Executable file

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