mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-20 17:15:41 +02:00
spotify: remove cleaner
Maybe this is not useful anymore...
This commit is contained in:
parent
90fd18e275
commit
3b3a43850e
4 changed files with 0 additions and 26 deletions
|
@ -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
|
|
@ -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
|
|
@ -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=pipewire-pulse.socket
|
||||
Wants=policykit-agent.service
|
||||
Wants=redshift.service
|
||||
Wants=spotify-clean.timer
|
||||
Wants=ssh-agent.service
|
||||
Wants=weather.timer
|
||||
Wants=wireplumber.service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue