aboutsummaryrefslogtreecommitdiff
path: root/raspberry/spotify.sh
blob: bab2214d759ce66efbe7732d73a4a1f9c9b3a297 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

SPOTIFYD_RELEASE_URL=https://github.com/Spotifyd/spotifyd/releases/download/v0.3.2/spotifyd-linux-armv6-slim.tar.gz

# Download spotifyd binary
if [ ! -f ~/.local/bin/spotifyd ]; then
	echo Spotifyd binary not found. Downloading...
	cd /tmp
	wget $SPOTIFYD_RELEASE_URL
	tar -xvzf spotifyd-*.tar.gz
	mv spotifyd ~/.local/bin
fi

# Start spotifyd with restart behavior
while true; do
    spotifyd  --no-daemon
    echo Restarting...
done