From 1d652319843fffe1a7ed368f973525951879fa44 Mon Sep 17 00:00:00 2001 From: r0r-5chach Date: Fri, 14 Jul 2023 19:50:17 +0100 Subject: [PATCH] added spotifyd.service --- .../.config/systemd/user/spotifyd.service | 15 +++++++++++++++ home/r0r5chach/.config/zsh/dotfiles-update | 4 ++++ 2 files changed, 19 insertions(+) create mode 100644 home/r0r5chach/.config/systemd/user/spotifyd.service diff --git a/home/r0r5chach/.config/systemd/user/spotifyd.service b/home/r0r5chach/.config/systemd/user/spotifyd.service new file mode 100644 index 0000000..2e42b9d --- /dev/null +++ b/home/r0r5chach/.config/systemd/user/spotifyd.service @@ -0,0 +1,15 @@ +[Unit] +Description=A spotify playing daemon +Documentation=https://github.com/Spotifyd/spotifyd +Wants=sound.target +After=sound.target +Wants=network-online.target +After=network-online.target + +[Service] +ExecStart=/usr/bin/spotifyd --no-daemon --verbose --config-path /home/r0r5chach/.config/spotifyd +Restart=always +RestartSec=12 + +[Install] +WantedBy=default.target diff --git a/home/r0r5chach/.config/zsh/dotfiles-update b/home/r0r5chach/.config/zsh/dotfiles-update index 0355f00..270ee6c 100755 --- a/home/r0r5chach/.config/zsh/dotfiles-update +++ b/home/r0r5chach/.config/zsh/dotfiles-update @@ -52,3 +52,7 @@ cp -r /home/$USER/.config/zsh $dot/home/$USER/.config/ cp /home/$USER/.config/code-flags.conf $dot/home/$USER/.config/ cp /home/$USER/.config/electron-flags.conf $dot/home/$USER/.config/ cp /home/$USER/.config/spotifyd $dot/home/$USER/.config + +mkdir $dot/home/$USER/.config/systemd 2> /dev/null +mkdir $dot/home/$USER/.config/systemd/user 2> /dev/null +cp /home/$USER/.config/systemd/user/spotifyd.service