vincentbernat.i3wm-configur.../bin/spotify-clean
Vincent Bernat 8cd2ed3730 Revert "spotify: remove socket cleaning"
This reverts commit 2e4e2d311c. Problem
is still here.
2022-06-30 21:18:07 +02:00

8 lines
191 B
Bash
Executable file

#!/bin/sh
# Kill all spotify streams, except the most recent one.
pactl list short clients \
| awk '($3 == "spotify") {print $1}' \
| head -n-1 \
| xargs -rn1 pacmd kill-client