summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2019-09-06 23:37:30 +0200
committerbakkeby <[email protected]>2019-09-06 23:37:30 +0200
commit611460c6a6d72876d306e54bdba475d0e7f19676 (patch)
tree0adbc007f1007f40611c91f86d418e7daa0932e3 /patch
parent04a7b4de407480089e575b0047d6998ccc001791 (diff)
downloaddwm-flexipatch-611460c6a6d72876d306e54bdba475d0e7f19676.tar.gz
dwm-flexipatch-611460c6a6d72876d306e54bdba475d0e7f19676.zip
Adding autostart patch
Diffstat (limited to 'patch')
-rw-r--r--patch/autostart.c10
-rw-r--r--patch/autostart.h1
-rw-r--r--patch/include.c4
-rw-r--r--patch/include.h4
4 files changed, 19 insertions, 0 deletions
diff --git a/patch/autostart.c b/patch/autostart.c
new file mode 100644
index 0000000..c61ea7f
--- /dev/null
+++ b/patch/autostart.c
@@ -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
+} \ No newline at end of file
diff --git a/patch/autostart.h b/patch/autostart.h
new file mode 100644
index 0000000..6058a3d
--- /dev/null
+++ b/patch/autostart.h
@@ -0,0 +1 @@
+static void runAutostart(void); \ No newline at end of file
diff --git a/patch/include.c b/patch/include.c
index ebf5e3c..fa6c20b 100644
--- a/patch/include.c
+++ b/patch/include.c
@@ -6,6 +6,10 @@
#include "attachx.c"
#endif
+#if AUTOSTART_PATCH
+#include "autostart.c"
+#endif
+
#if PERTAG_PATCH
#include "pertag.c"
#endif
diff --git a/patch/include.h b/patch/include.h
index 29785e1..295ee77 100644
--- a/patch/include.h
+++ b/patch/include.h
@@ -6,6 +6,10 @@
#include "attachx.h"
#endif
+#if AUTOSTART_PATCH
+#include "autostart.h"
+#endif
+
#if SYSTRAY_PATCH
#include "systray.h"
#endif