mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
Adding autostart patch
This commit is contained in:
parent
04a7b4de40
commit
611460c6a6
@ -11,7 +11,7 @@ Refer to [https://dwm.suckless.org/](https://dwm.suckless.org/) for details on t
|
|||||||
|
|
||||||
### Changelog:
|
### Changelog:
|
||||||
|
|
||||||
2019-09-06 - Added attachabove, attachaside, attachbelow and attachbottom patches
|
2019-09-06 - Added attachabove, attachaside, attachbelow, attachbottom and autostart patches
|
||||||
|
|
||||||
2019-09-05 - Alpha, systray, togglefullscreen, tagallmon, tagmonfixfs, tagswapmon, pertag and zoomswap patches added
|
2019-09-05 - Alpha, systray, togglefullscreen, tagallmon, tagmonfixfs, tagswapmon, pertag and zoomswap patches added
|
||||||
|
|
||||||
@ -32,6 +32,9 @@ Refer to [https://dwm.suckless.org/](https://dwm.suckless.org/) for details on t
|
|||||||
- [attachbottom](https://dwm.suckless.org/patches/attachbottom/)
|
- [attachbottom](https://dwm.suckless.org/patches/attachbottom/)
|
||||||
- new windows are placed at the bottom of the stack
|
- new windows are placed at the bottom of the stack
|
||||||
|
|
||||||
|
- [autostart](https://dwm.suckless.org/patches/autostart/)
|
||||||
|
- makes dwm run `~/.dwm/autostart_blocking.sh` and `~/.dwm/autostart.sh &` on startup
|
||||||
|
|
||||||
- [pertag](https://dwm.suckless.org/patches/pertag/)
|
- [pertag](https://dwm.suckless.org/patches/pertag/)
|
||||||
- adds nmaster, mfact, layouts and more per tag rather than per monitor
|
- adds nmaster, mfact, layouts and more per tag rather than per monitor
|
||||||
|
|
||||||
|
3
dwm.c
3
dwm.c
@ -2614,6 +2614,9 @@ main(int argc, char *argv[])
|
|||||||
die("pledge");
|
die("pledge");
|
||||||
#endif /* __OpenBSD__ */
|
#endif /* __OpenBSD__ */
|
||||||
scan();
|
scan();
|
||||||
|
#if AUTOSTART_PATCH
|
||||||
|
runAutostart();
|
||||||
|
#endif
|
||||||
run();
|
run();
|
||||||
cleanup();
|
cleanup();
|
||||||
XCloseDisplay(dpy);
|
XCloseDisplay(dpy);
|
||||||
|
10
patch/autostart.c
Normal file
10
patch/autostart.c
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
void
|
||||||
|
runAutostart(void) {
|
||||||
|
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
ret = system("cd ~/.config/dwm; ./autostart_blocking.sh");
|
||||||
|
ret = system("cd ~/.config/dwm; ./autostart.sh &");
|
||||||
|
|
||||||
|
if (ret); // ignore, hide compilation warnings
|
||||||
|
}
|
1
patch/autostart.h
Normal file
1
patch/autostart.h
Normal file
@ -0,0 +1 @@
|
|||||||
|
static void runAutostart(void);
|
@ -6,6 +6,10 @@
|
|||||||
#include "attachx.c"
|
#include "attachx.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if AUTOSTART_PATCH
|
||||||
|
#include "autostart.c"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if PERTAG_PATCH
|
#if PERTAG_PATCH
|
||||||
#include "pertag.c"
|
#include "pertag.c"
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,6 +6,10 @@
|
|||||||
#include "attachx.h"
|
#include "attachx.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if AUTOSTART_PATCH
|
||||||
|
#include "autostart.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if SYSTRAY_PATCH
|
#if SYSTRAY_PATCH
|
||||||
#include "systray.h"
|
#include "systray.h"
|
||||||
#endif
|
#endif
|
||||||
|
14
patches.h
14
patches.h
@ -36,10 +36,13 @@
|
|||||||
*/
|
*/
|
||||||
#define ATTACHBOTTOM_PATCH 0
|
#define ATTACHBOTTOM_PATCH 0
|
||||||
|
|
||||||
/* The systray patch adds systray for the status bar.
|
/* This patch will make dwm run "~/.config/dwm/autostart_blocking.sh" and
|
||||||
* https://dwm.suckless.org/patches/systray/
|
* "~/.config/dwm/autostart.sh &" before entering the handler loop. One or
|
||||||
|
* both of these files can be ommited. Note the path inside .config rather
|
||||||
|
* than the original ~/.dwm folder.
|
||||||
|
* https://dwm.suckless.org/patches/autostart/
|
||||||
*/
|
*/
|
||||||
#define SYSTRAY_PATCH 0
|
#define AUTOSTART_PATCH 0
|
||||||
|
|
||||||
/* The pertag patch adds nmaster, mfacts and layouts per tag rather
|
/* The pertag patch adds nmaster, mfacts and layouts per tag rather
|
||||||
* than per monitor (default).
|
* than per monitor (default).
|
||||||
@ -52,6 +55,11 @@
|
|||||||
*/
|
*/
|
||||||
#define PERTAGBAR_PATCH 0
|
#define PERTAGBAR_PATCH 0
|
||||||
|
|
||||||
|
/* The systray patch adds systray for the status bar.
|
||||||
|
* https://dwm.suckless.org/patches/systray/
|
||||||
|
*/
|
||||||
|
#define SYSTRAY_PATCH 0
|
||||||
|
|
||||||
/* This patch allows you to move all visible windows on a monitor to an adjacent monitor.
|
/* This patch allows you to move all visible windows on a monitor to an adjacent monitor.
|
||||||
* https://github.com/bakkeby/dwm-vanitygaps/blob/master/patches/dwm-tagallmon-6.2.diff
|
* https://github.com/bakkeby/dwm-vanitygaps/blob/master/patches/dwm-tagallmon-6.2.diff
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user