sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit e2415b9e6891dfc4868f42e547d6ba7362aa63aa
parent e1798e7034ced4b2028a457a1fb397cd6559ee29
Author: prx <prx@ybad.name>
Date:   Sat, 26 Sep 2020 21:43:54 +0200

resetnmaster small custom function

Diffstat:
Adwm.suckless.org/patches/resetnmaster/index.md | 32++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/resetnmaster/index.md 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>