From 0caade59d11c5ac4a6b62b1e2386711e7809cfbb 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 00000000..84c7ab1e --- /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