From 3b3a43850e145cb5d3fc27243f017513c4610b63 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 3 May 2025 09:40:47 +0200 Subject: [PATCH] spotify: remove cleaner Maybe this is not useful anymore... --- bin/spotify-clean | 9 --------- dotfiles/systemd/spotify-clean.service | 9 --------- dotfiles/systemd/spotify-clean.timer | 7 ------- dotfiles/systemd/xsession.target | 1 - 4 files changed, 26 deletions(-) delete mode 100755 bin/spotify-clean delete mode 100644 dotfiles/systemd/spotify-clean.service delete mode 100644 dotfiles/systemd/spotify-clean.timer diff --git a/bin/spotify-clean b/bin/spotify-clean deleted file mode 100755 index dd8dae3..0000000 --- a/bin/spotify-clean +++ /dev/null @@ -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 diff --git a/dotfiles/systemd/spotify-clean.service b/dotfiles/systemd/spotify-clean.service deleted file mode 100644 index 3214b32..0000000 --- a/dotfiles/systemd/spotify-clean.service +++ /dev/null @@ -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 diff --git a/dotfiles/systemd/spotify-clean.timer b/dotfiles/systemd/spotify-clean.timer deleted file mode 100644 index 2bd5c80..0000000 --- a/dotfiles/systemd/spotify-clean.timer +++ /dev/null @@ -1,7 +0,0 @@ -[Unit] -Description=Timer for cleaning spotify extra PA streams -After=pulseaudio.socket - -[Timer] -OnUnitActiveSec=1h -OnStartupSec=1h diff --git a/dotfiles/systemd/xsession.target b/dotfiles/systemd/xsession.target index dee8f2a..61e1594 100644 --- a/dotfiles/systemd/xsession.target +++ b/dotfiles/systemd/xsession.target @@ -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