diff --git a/services/spotifyd/run b/services/spotifyd/run new file mode 100755 index 0000000..757f320 --- /dev/null +++ b/services/spotifyd/run @@ -0,0 +1,9 @@ +#!/bin/sh +export USER="$(whoami)" +export HOME=/home/"$USER" +export DISPLAY=":0" +. "$HOME/.profile" + +spotifyd --no-daemon 2>&1 \ + | tee -a $XDG_RUNTIME_DIR/playlist \ + | sed '/trunc/d;/loaded$/d;/^Loading/d'