aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <[email protected]>2020-04-26 11:18:07 -0400
committerLuke Smith <[email protected]>2020-04-26 11:18:07 -0400
commitd6dfa585fc854cda143197c5b7873ab9c9afd0aa (patch)
tree7207fed8de19242086561ed1969212b264f1ea3e
parentgitignore (diff)
downloadseiwm-d6dfa585fc854cda143197c5b7873ab9c9afd0aa.tar.xz
seiwm-d6dfa585fc854cda143197c5b7873ab9c9afd0aa.zip
don't necessarily restart dwmblocks
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
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