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
This commit is contained in:
Sravan Balaji
2022-06-17 14:14:55 -04:00
parent 95137984ea
commit 5053183365
3 changed files with 8 additions and 8 deletions

View File

@@ -2507,7 +2507,7 @@ Additionally dwm can quit cleanly by using kill -TERM dwmpid.
https://dwm.suckless.org/patches/restartsig/ https://dwm.suckless.org/patches/restartsig/
#+BEGIN_SRC c :tangle patches.def.h #+BEGIN_SRC c :tangle patches.def.h
#define RESTARTSIG_PATCH 1 #define RESTARTSIG_PATCH 0
#+END_SRC #+END_SRC
*** Rio Draw *** 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. The above is not persisted across reboots, however.
#+BEGIN_SRC c :tangle patches.def.h #+BEGIN_SRC c :tangle patches.def.h
#define SEAMLESS_RESTART_PATCH 0 #define SEAMLESS_RESTART_PATCH 1
#+END_SRC #+END_SRC
*** Selective Fake Fullscreen *** Selective Fake Fullscreen
@@ -2626,7 +2626,7 @@ Allows restarting dwm without the dependency of an external script.
https://dwm.suckless.org/patches/selfrestart/ https://dwm.suckless.org/patches/selfrestart/
#+BEGIN_SRC c :tangle patches.def.h #+BEGIN_SRC c :tangle patches.def.h
#define SELFRESTART_PATCH 0 #define SELFRESTART_PATCH 1
#+END_SRC #+END_SRC
*** Send Monitor Keep Focus *** Send Monitor Keep Focus
@@ -4674,7 +4674,7 @@ static Key keys[] = {
#endif // KILLUNSEL_PATCH #endif // KILLUNSEL_PATCH
#if SELFRESTART_PATCH #if SELFRESTART_PATCH
{ MODKEY|ShiftMask, XK_r, self_restart, {0} }, { MODKEY|ControlMask|ShiftMask, XK_q, self_restart, {0} },
#endif // SELFRESTART_PATCH #endif // SELFRESTART_PATCH
{ MODKEY|ShiftMask, XK_q, quit, {0} }, { MODKEY|ShiftMask, XK_q, quit, {0} },

View File

@@ -1028,7 +1028,7 @@ static Key keys[] = {
#endif // KILLUNSEL_PATCH #endif // KILLUNSEL_PATCH
#if SELFRESTART_PATCH #if SELFRESTART_PATCH
{ MODKEY|ShiftMask, XK_r, self_restart, {0} }, { MODKEY|ControlMask|ShiftMask, XK_q, self_restart, {0} },
#endif // SELFRESTART_PATCH #endif // SELFRESTART_PATCH
{ MODKEY|ShiftMask, XK_q, quit, {0} }, { MODKEY|ShiftMask, XK_q, quit, {0} },

View File

@@ -237,7 +237,7 @@
#define RESIZEPOINT_PATCH 0 #define RESIZEPOINT_PATCH 0
#define RESTARTSIG_PATCH 1 #define RESTARTSIG_PATCH 0
#define RIODRAW_PATCH 0 #define RIODRAW_PATCH 0
@@ -253,11 +253,11 @@
#define SCRATCHPAD_ALT_1_PATCH 0 #define SCRATCHPAD_ALT_1_PATCH 0
#define SEAMLESS_RESTART_PATCH 0 #define SEAMLESS_RESTART_PATCH 1
#define SELECTIVEFAKEFULLSCREEN_PATCH 0 #define SELECTIVEFAKEFULLSCREEN_PATCH 0
#define SELFRESTART_PATCH 0 #define SELFRESTART_PATCH 1
#define SENDMON_KEEPFOCUS_PATCH 0 #define SENDMON_KEEPFOCUS_PATCH 0