mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-03 17:54:31 +02:00
systemd: schedule cleaning of spotify PA streams
This commit is contained in:
parent
4ce36110d4
commit
325d7778d7
4 changed files with 22 additions and 1 deletions
7
bin/spotify-clean
Executable file
7
bin/spotify-clean
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue