spotify: remove cleaner

Maybe this is not useful anymore...
This commit is contained in:
Vincent Bernat 2025-05-03 09:40:47 +02:00
parent 90fd18e275
commit 3b3a43850e
4 changed files with 0 additions and 26 deletions

View file

@ -1,9 +0,0 @@
#!/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

View file

@ -1,9 +0,0 @@
[Unit]
Description=Cleaner for Spotify extra PulseAudio streams
After=sound.target
[Service]
ExecStart=%h/.config/i3/bin/spotify-clean
Type=oneshot
RemainAfterExit=false
TimeoutStartSec=5s

View file

@ -1,7 +0,0 @@
[Unit]
Description=Timer for cleaning spotify extra PA streams
After=pulseaudio.socket
[Timer]
OnUnitActiveSec=1h
OnStartupSec=1h

View file

@ -8,7 +8,6 @@ Wants=picom.service
Wants=pipewire-pulse.socket
Wants=policykit-agent.service
Wants=redshift.service
Wants=spotify-clean.timer
Wants=ssh-agent.service
Wants=weather.timer
Wants=wireplumber.service