resetnmaster

Description

Set the number of clients in master area to 1.

This is also very useful with the nrowgrid patch.

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);
}

Download

If you are already using the pertag patch, apply this version instead.

Author