summaryrefslogtreecommitdiffhomepage
path: root/patches.def.h
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2021-05-30 19:22:00 +0200
committerbakkeby <[email protected]>2021-05-30 19:22:00 +0200
commit246f8f7260ee3fdd0cf0d6d73163cb1f4604c895 (patch)
treea2a689dc5bd17270b29bbc603122799943c849af /patches.def.h
parenta76fb54d790aef6c9a06b1adee23039c659db535 (diff)
downloaddwm-flexipatch-246f8f7260ee3fdd0cf0d6d73163cb1f4604c895.tar.gz
dwm-flexipatch-246f8f7260ee3fdd0cf0d6d73163cb1f4604c895.zip
Adding togglelayout patch
Diffstat (limited to 'patches.def.h')
-rw-r--r--patches.def.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/patches.def.h b/patches.def.h
index 580ae9e..eec285e 100644
--- a/patches.def.h
+++ b/patches.def.h
@@ -1071,6 +1071,18 @@
*/
#define TOGGLEFULLSCREEN_PATCH 0
+/* Minor patch that lets you use the same keyboard shortcut to toggle to the previous layout if the
+ * designated layout is already active.
+ *
+ * This allows you to use e.g. MOD+m to change to the monocle layout and use the same keybinding to
+ * toggle back to what it was previously. The default behaviour in dwm forces you to use either
+ * MOD+space or MOD+t to change back to tiled layout.
+ *
+ * https://github.com/bakkeby/patches/wiki/togglelayout
+ */
+
+#define TOGGLELAYOUT_PATCH 0
+
/* Lets you transfer the currently focused client between the master and stack area
* while increasing or decreasing the master area (nmaster) accordingly.
* https://dwm.suckless.org/patches/transfer/