From dc464e5bbbc38c4691294b0fd015a4256bb90ec2 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Tue, 24 Sep 2019 07:12:43 -0400 Subject: mpd-module-update with break --- .local/bin/mpd-module-update | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 .local/bin/mpd-module-update (limited to '.local') diff --git a/.local/bin/mpd-module-update b/.local/bin/mpd-module-update new file mode 100755 index 0000000..7518976 --- /dev/null +++ b/.local/bin/mpd-module-update @@ -0,0 +1,7 @@ +#!/bin/sh + +# This loop will update the mpd statusbar module whenever a command changes the +# music player's status. mpd must be running on X's start for this to work. +while : ; do + mpc idle >/dev/null && pkill -RTMIN+11 dwmblocks || break +done -- cgit v1.3.1