dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 3044fe518b7612cdb67b92b8c11e5a96585357c1
parent 87768dc39b2b9f26bc88f7a9e5acb55dec1a1030
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Wed, 19 Dec 2018 09:35:46 -0500

mpdupdate returns

Diffstat:
A.scripts/statusbar/mpdupdate | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/.scripts/statusbar/mpdupdate 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