From 3db3255eaf1c99092ca6e381a46839c2a01f5769 Mon Sep 17 00:00:00 2001 From: Lukasz M Date: Tue, 9 Jun 2020 17:42:58 +0200 Subject: [PATCH] added autostart patch --- dwm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dwm.c b/dwm.c index 9fd0286..be24acb 100644 --- a/dwm.c +++ b/dwm.c @@ -194,6 +194,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); @@ -1381,6 +1382,12 @@ run(void) handler[ev.type](&ev); /* call handler */ } +void +runAutostart(void) { + system("cd ~/.dwm; ./autostart_blocking.sh"); + system("cd ~/.dwm; ./autostart.sh &"); +} + void scan(void) { @@ -2145,6 +2152,7 @@ main(int argc, char *argv[]) die("pledge"); #endif /* __OpenBSD__ */ scan(); + runAutostart(); run(); cleanup(); XCloseDisplay(dpy);