[mpd] fix: checking for existing instance

This commit is contained in:
David JULIEN 2022-11-14 11:06:51 +01:00
parent abf306c99f
commit 296518e619

View File

@ -9,7 +9,7 @@ xss-lock -- slock &
redshift &
dunst &> /dev/null & #temp fix
# MPD daemon start (if no other user instance exists)
[ ! -s "$XDG_CONFIG_HOME/mpd/pid" ] && mpd
[ -z "$(pgrep -fx mpd)" ] && mpd
[ -z "$(pgrep -f sb-mpdup)" ] && sb-mpdup &
pulsemixer --set-volume 50
sbacklight set 3 &