From: jxnshi Date: Fri, 24 Jan 2025 20:11:28 +0000 (+0100) Subject: Add autostart X-Git-Url: https://jxnshi.xyz/repos?a=commitdiff_plain;h=eeeee81777e798fedb14873923b3dcd6faf03725;p=dwm-config.git Add autostart --- diff --git a/dwm.c b/dwm.c index 59d49f1..94e6118 100644 --- a/dwm.c +++ b/dwm.c @@ -193,6 +193,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); @@ -1389,6 +1390,11 @@ run(void) handler[ev.type](&ev); /* call handler */ } +runAutostart(void) { + system("cd ~/.dwm; ./autostart_blocking.sh"); + system("cd ~/.dwm; ./autostart.sh &"); +} + void scan(void) { @@ -2189,6 +2195,7 @@ main(int argc, char *argv[]) #endif /* __OpenBSD__ */ scan(); run(); + runAutostart(); cleanup(); XCloseDisplay(dpy); return EXIT_SUCCESS;