aboutsummaryrefslogtreecommitdiff
path: root/raspberry/spotify.sh
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-09-09 18:29:22 +0300
committereug-vs <eug-vs@keemail.me>2021-09-09 18:29:22 +0300
commit59f193cbbbb4b1d25548e8617cf4e57b3bba8f2a (patch)
tree0535ac74fc14cdade3927252bc223ff21effccb4 /raspberry/spotify.sh
parent2a958b4d0b48c2051956a9bf22d105064d8d8b36 (diff)
downloaddotfiles-59f193cbbbb4b1d25548e8617cf4e57b3bba8f2a.tar.gz
feat(rpi): add scripts for Raspberry Pi
Diffstat (limited to 'raspberry/spotify.sh')
-rwxr-xr-xraspberry/spotify.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/raspberry/spotify.sh b/raspberry/spotify.sh
new file mode 100755
index 0000000..bab2214
--- /dev/null
+++ b/raspberry/spotify.sh
@@ -0,0 +1,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