commit 87d9ca65b92d3b9f0654f93bf07603ebb60a1cd9
Author: Axel Gschaider <axel.gschaider_AT_gmail.com>
Date: Thu Dec 20 13:09:11 2012 +0100
agschaid: added autostart patch
diff --git a/dwm.suckless.org/patches/autostart.md b/dwm.suckless.org/patches/autostart.md
new file mode 100644
index 0000000..fcaeb7b
--- /dev/null
+++ b/dwm.suckless.org/patches/autostart.md
_AT_@ -0,0 +1,15 @@
+# autostart #
+
+## Description ##
+This patch will make dwm run "~/.dwm/autostart_blocking.sh" and "~/.dwm/autostart.sh &" (in that order) 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 until its completion. For obvious reasons it is generally a bad idea to start X-applications here :)
+
+## Download ##
+### 6.0
+ * [dwm-6.0-autostart.diff](dwm-6.0-autostart.diff) (1kb) (20121220)
+ * [from github](
https://github.com/axelGschaider/dwm-patch-autostart.sh)
+
+## Author ##
+ * Axel Gschaider: <axel.gschaider_AT_gmail.com>
+
diff --git a/dwm.suckless.org/patches/dwm-6.0-autostart.diff b/dwm.suckless.org/patches/dwm-6.0-autostart.diff
new file mode 100644
index 0000000..d44732c
--- /dev/null
+++ b/dwm.suckless.org/patches/dwm-6.0-autostart.diff
_AT_@ -0,0 +1,32 @@
+diff -r c794a9f5ae5e dwm.c
+--- a/dwm.c Sun Jul 08 09:45:53 2012 +0200
++++ b/dwm.c Tue Oct 02 16:26:04 2012 +0200
+_AT_@ -213,6 +213,7 @@
+ static void resizemouse(const Arg *arg);
+ static void restack(Monitor *m);
+ static void run(void);
++static void runAutostart(void);
+ static void scan(void);
+ static Bool sendevent(Client *c, Atom proto);
+ static void sendmon(Client *c, Monitor *m);
+_AT_@ -1460,6 +1461,12 @@
+ }
+
+ void
++runAutostart(void) {
++ system("cd ~/.dwm; ./autostart_blocking.sh");
++ system("cd ~/.dwm; ./autostart.sh &");
++}
++
++void
+ scan(void) {
+ unsigned int i, num;
+ Window d1, d2, *wins = NULL;
+_AT_@ -2178,6 +2185,7 @@
+ checkotherwm();
+ setup();
+ scan();
++ runAutostart();
+ run();
+ cleanup();
+ XCloseDisplay(dpy);
Received on Thu Dec 20 2012 - 13:10:18 CET