mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-30 13:24:21 +02:00
spotify: make it work with only pw-cli
This commit is contained in:
parent
8cd2ed3730
commit
5102803e75
1 changed files with 4 additions and 3 deletions
|
@ -2,7 +2,8 @@
|
|||
|
||||
# Kill all spotify streams, except the most recent one.
|
||||
|
||||
pactl list short clients \
|
||||
| awk '($3 == "spotify") {print $1}' \
|
||||
pw-cli dump short client \
|
||||
| grep -F 'ap="spotify"' \
|
||||
| head -n-1 \
|
||||
| xargs -rn1 pacmd kill-client
|
||||
| cut -d: -f1 \
|
||||
| xargs -rn1 pw-cli destroy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue