From 56fa8087e55e487444db6f28c1c6d6f29164bbb8 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Tue, 28 May 2019 08:45:33 -0400 Subject: [PATCH] only when mpd running --- .xprofile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.xprofile b/.xprofile index bd4be7a..84dcf41 100644 --- a/.xprofile +++ b/.xprofile @@ -20,7 +20,7 @@ xrandr -q | grep "DP2 con" >/dev/null 2>&1 && xrandr --output DP1 --auto --outpu # This loop will run the `refbar` script to refresh the statusbar whenever a # command changes the music player's status. -while : ; do +while pgrep -x mpd; do mpc idle >/dev/null 2>&1 refbar done &