mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-03 06:44:21 +02:00
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:
parent
ea5bfbe7bb
commit
2e4e2d311c
4 changed files with 0 additions and 24 deletions
|
@ -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
|
|
|
@ -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
|
|
|
@ -1,7 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Timer for cleaning spotify extra PA streams
|
|
||||||
After=pulseaudio.socket
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnUnitActiveSec=1h
|
|
||||||
OnStartupSec=1h
|
|
|
@ -8,7 +8,6 @@ Wants=picom.service
|
||||||
Wants=policykit-agent.service
|
Wants=policykit-agent.service
|
||||||
Wants=pipewire-pulse.socket
|
Wants=pipewire-pulse.socket
|
||||||
Wants=redshift.service
|
Wants=redshift.service
|
||||||
Wants=spotify-clean.timer
|
|
||||||
Wants=ssh-agent.service
|
Wants=ssh-agent.service
|
||||||
Wants=weather.timer
|
Wants=weather.timer
|
||||||
Wants=wireplumber.service
|
Wants=wireplumber.service
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue