commit e2415b9e6891dfc4868f42e547d6ba7362aa63aa
Author: prx <[email protected]>
Date:   Sat Sep 26 21:43:54 2020 +0200

    resetnmaster small custom function

diff --git a/dwm.suckless.org/patches/resetnmaster/index.md 
b/dwm.suckless.org/patches/resetnmaster/index.md
new file mode 100644
index 00000000..d8779703
--- /dev/null
+++ b/dwm.suckless.org/patches/resetnmaster/index.md
@@ -0,0 +1,32 @@
+resetnmaster
+===========
+
+Description
+-----------
+Set the number of clients in master area to 1.
+This is so tiny it doesn't deserve a full diff.
+
+Configuration
+-------------
+Add the `resetnmaster` declaration before keys array in your config.h : 
+
+    void resetnmaster(const Arg *arg);
+
+Add the following line to the keys array in your config.h (or config.def.h) to 
bind Mod+o
+to resetnmaster.
+
+       { MODKEY,           XK_o,  resetnmaster,    {0} },
+
+Add at the end of you config.h:
+
+       void
+       resetnmaster(const Arg *arg)
+       {
+               selmon->nmaster = 1;
+               arrange(selmon);
+       }
+
+
+Author
+------
+* prx <prx at ybad dot name>


Reply via email to