dwm-vertical-horizontal-i3like.diff - sites - public wiki contents of suckless.org
 (HTM) git clone git://git.suckless.org/sites
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
       dwm-vertical-horizontal-i3like.diff (940B)
       ---
            1 diff --git a/config.def.h b/config.def.h
            2 index a2ac963..cd0b16b 100644
            3 --- a/config.def.h
            4 +++ b/config.def.h
            5 @@ -68,7 +68,6 @@ static Key keys[] = {
            6          { MODKEY,                       XK_j,      focusstack,     {.i = +1 } },
            7          { MODKEY,                       XK_k,      focusstack,     {.i = -1 } },
            8          { MODKEY,                       XK_i,      incnmaster,     {.i = +1 } },
            9 -        { MODKEY,                       XK_d,      incnmaster,     {.i = -1 } },
           10          { MODKEY,                       XK_h,      setmfact,       {.f = -0.05} },
           11          { MODKEY,                       XK_l,      setmfact,       {.f = +0.05} },
           12          { MODKEY,                       XK_Return, zoom,           {0} },
           13 diff --git a/dwm.c b/dwm.c
           14 index 5646a5c..123f5e0 100644
           15 --- a/dwm.c
           16 +++ b/dwm.c
           17 @@ -973,7 +973,7 @@ grabkeys(void)
           18  void
           19  incnmaster(const Arg *arg)
           20  {
           21 -        selmon->nmaster = MAX(selmon->nmaster + arg->i, 0);
           22 +        selmon->nmaster = !selmon->nmaster;
           23          arrange(selmon);
           24  }
           25