index.md - sites - public wiki contents of suckless.org
(HTM) git clone git://git.suckless.org/sites
(DIR) Log
(DIR) Files
(DIR) Refs
---
index.md (923B)
---
1 resetnmaster
2 ============
3
4 Description
5 -----------
6 Set the number of clients in master area to 1.
7
8 This is also very useful with the [nrowgrid](../nrowgrid/) patch.
9
10 Configuration
11 -------------
12 Add the `resetnmaster` declaration before keys array in your config.h :
13
14 void resetnmaster(const Arg *arg);
15
16 Add the following line to the keys array in your config.h (or config.def.h) to bind Mod+o
17 to resetnmaster.
18
19 { MODKEY, XK_o, resetnmaster, {0} },
20
21 Add at the end of you config.h:
22
23 void
24 resetnmaster(const Arg *arg)
25 {
26 selmon->nmaster = 1;
27 arrange(selmon);
28 }
29
30 Download
31 --------
32 * [dwm-resetnmaster-6.3.diff](dwm-resetnmaster-6.3.diff)
33
34 If you are already using the [pertag](../pertag/) patch, apply this version instead.
35
36 * [dwm-resetnmaster-pertag-6.3.diff](dwm-resetnmaster-pertag-6.3.diff)
37
38 Author
39 ------
40 * cdarkly - <cdarkly@protonmail.com> - Added v6.3 diff files
41 * prx <prx at si3t dot ch>