From 2f4c2a68a1cbebb0e06a5b3296e4bbb575c5fcb2 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Mon, 5 Nov 2018 17:51:24 -0500 Subject: scripts sorted --- .scripts/statusbar/i3mpdupdate | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .scripts/statusbar/i3mpdupdate (limited to '.scripts/statusbar/i3mpdupdate') diff --git a/.scripts/statusbar/i3mpdupdate b/.scripts/statusbar/i3mpdupdate new file mode 100755 index 0000000..646b49e --- /dev/null +++ b/.scripts/statusbar/i3mpdupdate @@ -0,0 +1,9 @@ +#!/bin/sh + +[ "$(pgrep -x i3mpdupdate | wc -l)" -gt 2 ] && exit + +while : ; do + pgrep -x mpd || exit + mpc idle > /dev/null + pkill -RTMIN+11 i3blocks ; +done -- cgit v1.3.1