simplify service definitions

This commit is contained in:
Felix Van der Jeugt 2020-10-16 10:25:48 +02:00
parent 3baff6a2ad
commit 83204601bd
No known key found for this signature in database
GPG key ID: 58B209295023754D
6 changed files with 42 additions and 47 deletions

View file

@ -1,9 +1,9 @@
#!/bin/sh -e
exec > /dev/null
exec env -i \
HOME="${HOME:-/home/noctua}" \
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-/home/noctua/.config}" \
XDG_CACHE_HOME="${XDG_CONFIG_HOME:-/home/noctua/.cache}" \
PATH="/usr/local/bin:$HOME/.cargo/bin:$PATH" \
DISPLAY=":0" \
/home/noctua/.cargo/bin/spotifyd --no-daemon
#!/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'