From 3044fe518b7612cdb67b92b8c11e5a96585357c1 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Wed, 19 Dec 2018 09:35:46 -0500 Subject: [PATCH] mpdupdate returns --- .scripts/statusbar/mpdupdate | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .scripts/statusbar/mpdupdate diff --git a/.scripts/statusbar/mpdupdate b/.scripts/statusbar/mpdupdate new file mode 100755 index 0000000..84c7ab1 --- /dev/null +++ b/.scripts/statusbar/mpdupdate @@ -0,0 +1,9 @@ +#!/bin/sh + +[ "$(pgrep -x "$(basename "$0")" | wc -l)" -gt 2 ] && exit + +while : ; do + pgrep -x mpd || exit + mpc idle > /dev/null + pkill -RTMIN+11 i3blocks ; +done