added spotifyd.service

This commit is contained in:
Joshua Perry 2023-07-14 19:50:17 +01:00
parent 6deb38423f
commit 1d65231984
2 changed files with 19 additions and 0 deletions

View File

@ -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

View File

@ -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/code-flags.conf $dot/home/$USER/.config/
cp /home/$USER/.config/electron-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 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