From cba1b1e5aabd9fbcf28b8615ca7311e41541fac5 Mon Sep 17 00:00:00 2001 From: Alexis Jhon Gaspar Date: Sat, 30 Sep 2023 13:19:57 +0800 Subject: [PATCH] Improve restart handling, adding autostart --- dwm-flexipatch/config.def.h | 1 - dwm-flexipatch/patches.def.h | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/dwm-flexipatch/config.def.h b/dwm-flexipatch/config.def.h index aa3e31c..cc9e3f9 100644 --- a/dwm-flexipatch/config.def.h +++ b/dwm-flexipatch/config.def.h @@ -405,7 +405,6 @@ static const char *layoutmenu_cmd = "layoutmenu.sh"; #if COOL_AUTOSTART_PATCH static const char *const autostart[] = { - "st", NULL, NULL /* terminate */ }; #endif // COOL_AUTOSTART_PATCH diff --git a/dwm-flexipatch/patches.def.h b/dwm-flexipatch/patches.def.h index da4e6ac..dca9ecb 100644 --- a/dwm-flexipatch/patches.def.h +++ b/dwm-flexipatch/patches.def.h @@ -485,13 +485,13 @@ * than the original ~/.dwm folder. * https://dwm.suckless.org/patches/autostart/ */ -#define AUTOSTART_PATCH 0 +#define AUTOSTART_PATCH 1 /* By default, windows that are not visible when requesting a resize/move will not * get resized/moved. With this patch, they will. * https://dwm.suckless.org/patches/autoresize/ */ -#define AUTORESIZE_PATCH 0 +#define AUTORESIZE_PATCH 1 /* This patch adds proper support for Right-To-Left languages. (such as Farsi, Arabic or Hebrew). * @@ -550,7 +550,7 @@ * then all processes from autostart array will be killed. * https://dwm.suckless.org/patches/cool_autostart/ */ -#define COOL_AUTOSTART_PATCH 0 +#define COOL_AUTOSTART_PATCH 1 /* The cyclelayouts patch lets you cycle through all your layouts. * https://dwm.suckless.org/patches/cyclelayouts/ @@ -948,7 +948,7 @@ * Additionally dwm can quit cleanly by using kill -TERM dwmpid. * https://dwm.suckless.org/patches/restartsig/ */ -#define RESTARTSIG_PATCH 1 +#define RESTARTSIG_PATCH 0 /* Adds rio-like drawing to resize the selected client. * This depends on an external tool slop being installed. @@ -974,7 +974,7 @@ * will be restored. * https://dwm.suckless.org/patches/save_floats/ */ -#define SAVEFLOATS_PATCH 0 +#define SAVEFLOATS_PATCH 1 /* The scratchpad patch allows you to spawn or restore floating terminal windows. * It is typically useful when one need to do some short typing. @@ -1020,7 +1020,7 @@ /* Allows restarting dwm without the dependency of an external script. * https://dwm.suckless.org/patches/selfrestart/ */ -#define SELFRESTART_PATCH 0 +#define SELFRESTART_PATCH 1 /* This patch allow clients to keep focus when being sent to another monitor. * https://github.com/bakkeby/patches/blob/master/dwm/dwm-sendmon_keepfocus-6.2.diff