From 540c4dbb27cf3886109608de65c70e2d248474c2 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 1 Feb 2019 17:49:22 -0500 Subject: [PATCH] mpdupdate fix? --- .scripts/statusbar/mpdupdate | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.scripts/statusbar/mpdupdate b/.scripts/statusbar/mpdupdate index 84c7ab1..9a57ca4 100755 --- a/.scripts/statusbar/mpdupdate +++ b/.scripts/statusbar/mpdupdate @@ -1,8 +1,7 @@ #!/bin/sh - [ "$(pgrep -x "$(basename "$0")" | wc -l)" -gt 2 ] && exit -while : ; do +sleep 5 && while : ; do pgrep -x mpd || exit mpc idle > /dev/null pkill -RTMIN+11 i3blocks ;