mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-21 19:34:36 +02:00
spotify: reenable spotify-clean
It seems the logic is OK. Just log the output of pw-cli dump short.
This commit is contained in:
parent
5a8c0d87a1
commit
4ca15b049d
1 changed files with 3 additions and 3 deletions
|
@ -1,10 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Kill all spotify streams, except the most recent (old?) one.
|
||||
# Kill all spotify streams, except the most recent one.
|
||||
|
||||
exit 0
|
||||
pw-cli dump short | grep spotify
|
||||
pw-cli dump short client \
|
||||
| grep -F 'ap="spotify"' \
|
||||
| tail -n+2 \
|
||||
| head -n-1 \
|
||||
| cut -d: -f1 \
|
||||
| xargs -rn1 pw-cli destroy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue