os/arch (panel): music lemon - fail gracefully when mpd is off
This commit is contained in:
parent
10d7ddafbf
commit
79c25bbf57
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue