os/arch (panel): music lemon - fail gracefully when mpd is off

This commit is contained in:
Henrik Lissner 2016-12-17 03:07:59 -05:00
parent 10d7ddafbf
commit 79c25bbf57

View file

@ -12,6 +12,11 @@ progress_bar() {
}
while :; do
if ! pgrep mpd >/dev/null; then
sleep 5
continue
fi
output=$(mpc --format ";%title%;%artist%;%album%")
if echo $output | grep "^;" 2>&1 >/dev/null; then
# title=$(echo "$output" | head -1 | cut -d';' -f2)