Frans Bergman 5 жил өмнө
parent
commit
2f825e5827
1 өөрчлөгдсөн 9 нэмэгдсэн , 0 устгасан
  1. 9 0
      dwm.c

+ 9 - 0
dwm.c

@@ -195,6 +195,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,13 @@ 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)
 {
@@ -2191,6 +2199,7 @@ main(int argc, char *argv[])
 		die("pledge");
 #endif /* __OpenBSD__ */
 	scan();
+    runAutostart();
 	run();
 	cleanup();
 	XCloseDisplay(dpy);