From d6dfa585fc854cda143197c5b7873ab9c9afd0aa Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 26 Apr 2020 11:18:07 -0400 Subject: [PATCH] don't necessarily restart dwmblocks --- dwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwm.c b/dwm.c index cdadd9a..fc80537 100644 --- a/dwm.c +++ b/dwm.c @@ -1593,7 +1593,7 @@ run(void) void runAutostart(void) { - system("killall dwmblocks 2>/dev/null ; dwmblocks &"); + system("pidof -s dwmblocks >/dev/null || dwmblocks &"); } void