mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-23 18:28:34 +02:00
9 lines
322 B
Bash
Executable file
9 lines
322 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Kill all spotify streams, except the most recent one. We need to use
|
|
# the serial to know which one this is as ID are not monotonous.
|
|
|
|
pw-dump \
|
|
| jq '.[]|select(.type == "PipeWire:Interface:Client" and .info.props."application.name" == "spotify").id' \
|
|
| head -n-1 \
|
|
| xargs -trn1 pw-cli destroy
|