#!/bin/sh # This file is maintained at http://git.mdcc.cx/draai # Copyright: © 2021 Joost van Baal-Ilić # This script is in the public domain. # # running mpd as a user (not as a system daemon) with minimal configuration, # and starting draai # # alternatively, one can achieve this using systemd. # see also /usr/share/doc/mpd/README.Debian. # # FIXME # exit with error in case mpd.conf does not define an audio_output like: # # cat <>/etc/mpd.conf # audio_output { # type "pulse" # name "My Pulse Output" # } # EOT if test ! -e $HOME/.mpdconf then if grep -v '^#' /etc/mpd.conf | grep user then cat >&2 <&1 | logger ) & # hack sleep 2 # joostvb preferences mpc consume mpc crossfade 2 exec draai init