mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-01 05:44:20 +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.
|
# Kill all spotify streams, except the most recent one.
|
||||||
|
|
||||||
pactl list short clients \
|
pw-cli dump short client \
|
||||||
| awk '($3 == "spotify") {print $1}' \
|
| grep -F 'ap="spotify"' \
|
||||||
| head -n-1 \
|
| 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