summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-08-10 09:42:43 +0200
committerbakkeby <[email protected]>2020-08-10 09:42:43 +0200
commit85dd49a6a4fd5dfdbb9055ae27b996777cbe1f1f (patch)
treea9f7f9eeff104706ec393214b826f724405c20f2
parent3f4f88c1428c8f2057488daa34fe7d4c131d9594 (diff)
downloaddwm-flexipatch-85dd49a6a4fd5dfdbb9055ae27b996777cbe1f1f.tar.gz
dwm-flexipatch-85dd49a6a4fd5dfdbb9055ae27b996777cbe1f1f.zip
autostart: moving configs to config.def.h
-rw-r--r--config.def.h6
-rw-r--r--patch/autostart.c5
-rw-r--r--patches.def.h6
3 files changed, 9 insertions, 8 deletions
diff --git a/config.def.h b/config.def.h
index ac842b3..86118ce 100644
--- a/config.def.h
+++ b/config.def.h
@@ -15,6 +15,12 @@ static const unsigned int gappoh = 10; /* horiz outer gap between windo
static const unsigned int gappov = 30; /* vert outer gap between windows and screen edge */
static const int smartgaps = 0; /* 1 means no outer gap when there is only one window */
#endif // VANITYGAPS_PATCH
+#if AUTOSTART_PATCH
+static const char autostartblocksh[] = "autostart_blocking.sh";
+static const char autostartsh[] = "autostart.sh";
+static const char dwmdir[] = "dwm";
+static const char localshare[] = ".local/share";
+#endif // AUTOSTART_PATCH
#if BAR_HOLDBAR_PATCH
static const int showbar = 0; /* 0 means no bar */
#else
diff --git a/patch/autostart.c b/patch/autostart.c
index 265d4e8..b829c59 100644
--- a/patch/autostart.c
+++ b/patch/autostart.c
@@ -1,8 +1,3 @@
-static const char autostartblocksh[] = "autostart_blocking.sh";
-static const char autostartsh[] = "autostart.sh";
-static const char dwmdir[] = "dwm";
-static const char localshare[] = ".local/share";
-
void
runautostart(void)
{
diff --git a/patches.def.h b/patches.def.h
index 05d493f..7834b58 100644
--- a/patches.def.h
+++ b/patches.def.h
@@ -282,9 +282,9 @@
*/
#define ATTACHBOTTOM_PATCH 0
-/* This patch will make dwm run "~/.config/dwm/autostart_blocking.sh" and
- * "~/.config/dwm/autostart.sh &" before entering the handler loop. One or
- * both of these files can be ommited. Note the path inside .config rather
+/* This patch will make dwm run "~/.local/share/dwm/autostart_blocking.sh" and
+ * "~/.local/share/dwm/autostart.sh &" before entering the handler loop. One or
+ * both of these files can be ommited. Note the path inside .local/share rather
* than the original ~/.dwm folder.
* https://dwm.suckless.org/patches/autostart/
*/