systemd: schedule cleaning of spotify PA streams

This commit is contained in:
Vincent Bernat 2021-08-01 12:06:03 +02:00
parent 4ce36110d4
commit 325d7778d7
4 changed files with 22 additions and 1 deletions

7
bin/spotify-clean Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
pactl list short clients \
| awk '($3 == "spotify") {print $1}' \
| sort -n \
| head -n-1 \
| xargs -rn1 pw-cli destroy