dwm-autostart-20161205-bb3bd6f.diff - sites - public wiki contents of suckless.org
(HTM) git clone git://git.suckless.org/sites
(DIR) Log
(DIR) Files
(DIR) Refs
---
dwm-autostart-20161205-bb3bd6f.diff (963B)
---
1 commit 5918623c5bd7fda155bf9dc3d33890c4ae1722d0
2 Author: Simon Bremer <simon.bremer@tum.de>
3 Date: Thu Dec 22 17:31:07 2016 +0100
4
5 Applied and fixed autostart patch for previous version;
6
7 diff --git a/dwm.c b/dwm.c
8 index d27cb67..066ed71 100644
9 --- a/dwm.c
10 +++ b/dwm.c
11 @@ -194,6 +194,7 @@ static void resizeclient(Client *c, int x, int y, int w, int h);
12 static void resizemouse(const Arg *arg);
13 static void restack(Monitor *m);
14 static void run(void);
15 +static void runAutostart(void);
16 static void scan(void);
17 static int sendevent(Client *c, Atom proto);
18 static void sendmon(Client *c, Monitor *m);
19 @@ -1386,6 +1387,12 @@ run(void)
20 }
21
22 void
23 +runAutostart(void) {
24 + system("cd ~/.dwm; ./autostart_blocking.sh");
25 + system("cd ~/.dwm; ./autostart.sh &");
26 +}
27 +
28 +void
29 scan(void)
30 {
31 unsigned int i, num;
32 @@ -2145,6 +2152,7 @@ main(int argc, char *argv[])
33 checkotherwm();
34 setup();
35 scan();
36 + runAutostart();
37 run();
38 cleanup();
39 XCloseDisplay(dpy);