[wiki] [sites] Added updated Autostart patch from 3rd party git repo, now applies to recent version of master; || Simon Bremer

From: <git_AT_suckless.org>
Date: Wed, 28 Dec 2016 18:59:06 +0100

commit b3a579c03ab9e58e1d11e0706ecea5f5dce1fcaf
Author: Simon Bremer <simon.bremer_AT_tum.de>
Date: Wed Dec 28 18:59:02 2016 +0100

    Added updated Autostart patch from 3rd party git repo, now applies to recent version of master;

diff --git a/dwm.suckless.org/patches/autostart.md b/dwm.suckless.org/patches/autostart.md
new file mode 100644
index 0000000..4e0b364
--- /dev/null
+++ b/dwm.suckless.org/patches/autostart.md
_AT_@ -0,0 +1,20 @@
+autostart
+======
+
+Description
+-----------
+
+This patch will make dwm run "~/.dwm/autostart_blocking.sh" and "~/.dwm/autostart.sh &" before entering the handler loop. One or both of these files can be ommited.
+
+Be aware that dwm will not startup as long as autostart_blocking.sh is running and will stay completely unresponive. For obvious reasons it is generally a bad idea to start X-applications here :)
+
+Download
+--------
+
+ * [dwm-autostart-20161205-bb3bd6f.diff](dwm-autostart-20161205-bb3bd6f.diff)
+
+Authors
+-------
+
+ * Pulled from: [https://github.com/axelGschaider/dwm-patch-autostart.sh/](https://github.com/axelGschaider/dwm-patch-autostart.sh/)
+ * Adapted to recent version Simon Bremer <simon.bremer_AT_sys24.org>
diff --git a/dwm.suckless.org/patches/dwm-autostart-20161205-bb3bd6f.diff b/dwm.suckless.org/patches/dwm-autostart-20161205-bb3bd6f.diff
new file mode 100644
index 0000000..6f11eaf
--- /dev/null
+++ b/dwm.suckless.org/patches/dwm-autostart-20161205-bb3bd6f.diff
_AT_@ -0,0 +1,39 @@
+commit 5918623c5bd7fda155bf9dc3d33890c4ae1722d0
+Author: Simon Bremer <simon.bremer_AT_tum.de>
+Date: Thu Dec 22 17:31:07 2016 +0100
+
+ Applied and fixed autostart patch for previous version;
+
+diff --git a/dwm.c b/dwm.c
+index d27cb67..066ed71 100644
+--- a/dwm.c
++++ b/dwm.c
+_AT_@ -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);
+_AT_@ -1386,6 +1387,12 @@ run(void)
+ }
+
+ void
++runAutostart(void) {
++ system("cd ~/.dwm; ./autostart_blocking.sh");
++ system("cd ~/.dwm; ./autostart.sh &");
++}
++
++void
+ scan(void)
+ {
+ unsigned int i, num;
+_AT_@ -2145,6 +2152,7 @@ main(int argc, char *argv[])
+ checkotherwm();
+ setup();
+ scan();
++ runAutostart();
+ run();
+ cleanup();
+ XCloseDisplay(dpy);
Received on Wed Dec 28 2016 - 18:59:06 CET

This archive was generated by hypermail 2.3.0 : Wed Dec 28 2016 - 19:00:17 CET