From 07a915dc9d5ee23a19fbdc19527309049bf1db32 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 27 Aug 2021 08:28:07 +0200 Subject: [PATCH] spotify-clean: use pacmd from PulseAudio --- bin/spotify-clean | 2 +- dotfiles/systemd/spotify-clean.timer | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/spotify-clean b/bin/spotify-clean index 077c50c..f976111 100755 --- a/bin/spotify-clean +++ b/bin/spotify-clean @@ -3,4 +3,4 @@ pactl list short clients \ | awk '($3 == "spotify") {print $1}' \ | head -n-1 \ - | xargs -rn1 pw-cli destroy + | xargs -rn1 pacmd kill-client diff --git a/dotfiles/systemd/spotify-clean.timer b/dotfiles/systemd/spotify-clean.timer index 91b8269..2bd5c80 100644 --- a/dotfiles/systemd/spotify-clean.timer +++ b/dotfiles/systemd/spotify-clean.timer @@ -4,3 +4,4 @@ After=pulseaudio.socket [Timer] OnUnitActiveSec=1h +OnStartupSec=1h