Adding autostart patch

This commit is contained in:
bakkeby
2019-09-06 23:37:30 +02:00
parent 04a7b4de40
commit 611460c6a6
7 changed files with 37 additions and 4 deletions

10
patch/autostart.c Normal file
View 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
View File

@@ -0,0 +1 @@
static void runAutostart(void);

View File

@@ -6,6 +6,10 @@
#include "attachx.c"
#endif
#if AUTOSTART_PATCH
#include "autostart.c"
#endif
#if PERTAG_PATCH
#include "pertag.c"
#endif

View File

@@ -6,6 +6,10 @@
#include "attachx.h"
#endif
#if AUTOSTART_PATCH
#include "autostart.h"
#endif
#if SYSTRAY_PATCH
#include "systray.h"
#endif