From 02bda162f7e8561462bb4765a36214a2249a7761 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Tue, 24 Mar 2020 08:23:13 -0400 Subject: [PATCH] dwmblocks started by default --- dwm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dwm.c b/dwm.c index d748a68..bea6b6e 100644 --- a/dwm.c +++ b/dwm.c @@ -226,6 +226,7 @@ static void resizeclient(Client *c, int x, int y, int w, int h); static void resizemouse(const Arg *arg); static void restack(Monitor *m); static void run(void); +static void runAutostart(void); static void scan(void); static int sendevent(Client *c, Atom proto); static void sendmon(Client *c, Monitor *m); @@ -1519,6 +1520,11 @@ run(void) handler[ev.type](&ev); /* call handler */ } +void +runAutostart(void) { + system("export STATUSBAR=\"dwmblocks\" ; killall dwmblocks ; dwmblocks &"); +} + void scan(void) { @@ -2478,6 +2484,7 @@ main(int argc, char *argv[]) die("pledge"); #endif /* __OpenBSD__ */ scan(); + runAutostart(); run(); cleanup(); XCloseDisplay(dpy);