sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit b3a579c03ab9e58e1d11e0706ecea5f5dce1fcaf
parent 863101f8fc5070a3d36bd24a2af85fd1daaf1eec
Author: Simon Bremer <simon.bremer@tum.de>
Date:   Wed, 28 Dec 2016 18:59:02 +0100

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

Diffstat:
Adwm.suckless.org/patches/autostart.md | 20++++++++++++++++++++
Adwm.suckless.org/patches/dwm-autostart-20161205-bb3bd6f.diff | 39+++++++++++++++++++++++++++++++++++++++
2 files changed, 59 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/autostart.md b/dwm.suckless.org/patches/autostart.md @@ -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@sys24.org> diff --git a/dwm.suckless.org/patches/dwm-autostart-20161205-bb3bd6f.diff b/dwm.suckless.org/patches/dwm-autostart-20161205-bb3bd6f.diff @@ -0,0 +1,39 @@ +commit 5918623c5bd7fda155bf9dc3d33890c4ae1722d0 +Author: Simon Bremer <simon.bremer@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 +@@ -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); +@@ -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; +@@ -2145,6 +2152,7 @@ main(int argc, char *argv[]) + checkotherwm(); + setup(); + scan(); ++ runAutostart(); + run(); + cleanup(); + XCloseDisplay(dpy);