From bfc4f820fea112e87682a9aed1c45114a5df2926 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Mon, 16 May 2022 15:32:49 +0200 Subject: [PATCH] add unused spotifyd service --- config/spotifyd/.gitignore | 1 + services/spotifyd/run | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 config/spotifyd/.gitignore create mode 100755 services/spotifyd/run diff --git a/config/spotifyd/.gitignore b/config/spotifyd/.gitignore new file mode 100644 index 0000000..768fb20 --- /dev/null +++ b/config/spotifyd/.gitignore @@ -0,0 +1 @@ +spotifyd.conf \ No newline at end of file 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'