[wiki] [sites] resetnmaster small custom function || prx

From: <git_AT_suckless.org>
Date: Sat, 26 Sep 2020 21:43:57 +0200

commit e2415b9e6891dfc4868f42e547d6ba7362aa63aa
Author: prx <prx_AT_ybad.name>
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
_AT_@ -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>
Received on Sat Sep 26 2020 - 21:43:57 CEST

This archive was generated by hypermail 2.3.0 : Sat Sep 26 2020 - 21:48:42 CEST