spotify: remove socket cleaning

This may not needed anymore. Moreover, the ID returned by pactl is not
the one we can use with PipeWire.
This commit is contained in:
Vincent Bernat 2022-06-29 11:02:07 +02:00
parent ea5bfbe7bb
commit 2e4e2d311c
4 changed files with 0 additions and 24 deletions

View file

@ -1,8 +0,0 @@
#!/bin/sh
# Kill all spotify streams, except the most recent one.
pactl list short clients \
| awk '($3 == "spotify") {print $1}' \
| head -n-1 \
| xargs -rn1 pacmd kill-client

View file

@ -1,8 +0,0 @@
[Unit]
Description=Clean spotify extra PulseAudio streams
After=sound.target
[Service]
ExecStart=%h/.config/i3/bin/spotify-clean
Type=oneshot
RemainAfterExit=false

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=policykit-agent.service
Wants=pipewire-pulse.socket
Wants=redshift.service
Wants=spotify-clean.timer
Wants=ssh-agent.service
Wants=weather.timer
Wants=wireplumber.service