From 5053183365bdad550ee49595304697325ac8943d Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Fri, 17 Jun 2022 14:14:55 -0400 Subject: [PATCH] Enable Seamless & Self Restart Patches - Disable restart signal patch (external method of controlling dwm) - Enable seamless restart patch (preserve wm settings across restart) - Enable self restart patch (internal method of controlling dwm) - Update self restart keybinding to be same as restart sig --- README.org | 8 ++++---- config.def.h | 2 +- patches.def.h | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.org b/README.org index 7dd06a2..8541cab 100644 --- a/README.org +++ b/README.org @@ -2507,7 +2507,7 @@ Additionally dwm can quit cleanly by using kill -TERM dwmpid. https://dwm.suckless.org/patches/restartsig/ #+BEGIN_SRC c :tangle patches.def.h -#define RESTARTSIG_PATCH 1 +#define RESTARTSIG_PATCH 0 #+END_SRC *** Rio Draw @@ -2606,7 +2606,7 @@ This patch persists some settings across window manager restarts. These include The above is not persisted across reboots, however. #+BEGIN_SRC c :tangle patches.def.h -#define SEAMLESS_RESTART_PATCH 0 +#define SEAMLESS_RESTART_PATCH 1 #+END_SRC *** Selective Fake Fullscreen @@ -2626,7 +2626,7 @@ Allows restarting dwm without the dependency of an external script. https://dwm.suckless.org/patches/selfrestart/ #+BEGIN_SRC c :tangle patches.def.h -#define SELFRESTART_PATCH 0 +#define SELFRESTART_PATCH 1 #+END_SRC *** Send Monitor Keep Focus @@ -4674,7 +4674,7 @@ static Key keys[] = { #endif // KILLUNSEL_PATCH #if SELFRESTART_PATCH - { MODKEY|ShiftMask, XK_r, self_restart, {0} }, + { MODKEY|ControlMask|ShiftMask, XK_q, self_restart, {0} }, #endif // SELFRESTART_PATCH { MODKEY|ShiftMask, XK_q, quit, {0} }, diff --git a/config.def.h b/config.def.h index 3ea0e25..a108b42 100644 --- a/config.def.h +++ b/config.def.h @@ -1028,7 +1028,7 @@ static Key keys[] = { #endif // KILLUNSEL_PATCH #if SELFRESTART_PATCH - { MODKEY|ShiftMask, XK_r, self_restart, {0} }, + { MODKEY|ControlMask|ShiftMask, XK_q, self_restart, {0} }, #endif // SELFRESTART_PATCH { MODKEY|ShiftMask, XK_q, quit, {0} }, diff --git a/patches.def.h b/patches.def.h index 6168738..da7d315 100644 --- a/patches.def.h +++ b/patches.def.h @@ -237,7 +237,7 @@ #define RESIZEPOINT_PATCH 0 -#define RESTARTSIG_PATCH 1 +#define RESTARTSIG_PATCH 0 #define RIODRAW_PATCH 0 @@ -253,11 +253,11 @@ #define SCRATCHPAD_ALT_1_PATCH 0 -#define SEAMLESS_RESTART_PATCH 0 +#define SEAMLESS_RESTART_PATCH 1 #define SELECTIVEFAKEFULLSCREEN_PATCH 0 -#define SELFRESTART_PATCH 0 +#define SELFRESTART_PATCH 1 #define SENDMON_KEEPFOCUS_PATCH 0