sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 87d9ca65b92d3b9f0654f93bf07603ebb60a1cd9
parent ec158e3830911b845e69104e3adc29fbf83bdf32
Author: Axel Gschaider <axel.gschaider@gmail.com>
Date:   Thu, 20 Dec 2012 13:09:11 +0100

agschaid: added autostart patch

Diffstat:
Adwm.suckless.org/patches/autostart.md | 15+++++++++++++++
Adwm.suckless.org/patches/dwm-6.0-autostart.diff | 32++++++++++++++++++++++++++++++++
2 files changed, 47 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/autostart.md b/dwm.suckless.org/patches/autostart.md @@ -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@gmail.com> + diff --git a/dwm.suckless.org/patches/dwm-6.0-autostart.diff b/dwm.suckless.org/patches/dwm-6.0-autostart.diff @@ -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 +@@ -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); +@@ -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; +@@ -2178,6 +2185,7 @@ + checkotherwm(); + setup(); + scan(); ++ runAutostart(); + run(); + cleanup(); + XCloseDisplay(dpy);