From 85dd49a6a4fd5dfdbb9055ae27b996777cbe1f1f Mon Sep 17 00:00:00 2001 From: bakkeby Date: Mon, 10 Aug 2020 09:42:43 +0200 Subject: [PATCH] autostart: moving configs to config.def.h --- config.def.h | 6 ++++++ patch/autostart.c | 5 ----- patches.def.h | 6 +++--- 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/ */