dwm-autostart-20161205-bb3bd6f

This commit is contained in:
2026-08-03 00:12:27 +02:00
parent 98aabde339
commit 2aeba241b0
2 changed files with 47 additions and 0 deletions
+8
View File
@@ -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);
@@ -1390,6 +1391,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)
{
@@ -2158,6 +2165,7 @@ main(int argc, char *argv[])
die("pledge");
#endif /* __OpenBSD__ */
scan();
runAutostart();
run();
cleanup();
XCloseDisplay(dpy);