JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
implemented exact focus next, if arg != NULL to focus{next,prev}
[dwm.git] / config.def.h
index ddecedd..d7824e3 100644 (file)
@@ -20,8 +20,8 @@ Rule rules[] = {
 
 /* geometries, s{x,y,w,h} and bh are already initualized here */
 /*   func name  bx  by  bw  wx  wy  ww     wh  mx  my       mw  mh     tx  ty     tw  th  mox moy mow moh */
-double mfact = 0.55;
-DEFGEOM(single,  0,  0, sw,  0, bh, sw, sh-bh, wx, wy, mfact*sw, wh, mx+mw, wy, ww-mw, wh,  wx, wy, ww, wh)
+#define MFACT                  0.55    /* master width factor [0.1 .. 0.9] */
+DEFGEOM(single,  0,  0, sw,  0, bh, sw, sh-bh, wx, wy, mfact*ww, wh, mx+mw, wy, ww-mw, wh,  wx, wy, ww, wh)
 DEFGEOM(dual,    0,  0,1280, 0, bh, ww, wh-bh, wx, wy, 1280,800-bh,  1280,  0, ww-mw, sh,  mx, my, mw, mh)
 
 Geom geoms[] = {
@@ -37,8 +37,11 @@ Geom geoms[] = {
 Layout layouts[] = {
        /* symbol               function        isfloating */
        { "[]=",                tilev,          False }, /* first entry is default */
+       { "<>=",                tilev,          True },
        { "[]|",                tileh,          False },
-       { "><>",                floating,       True },
+       { "<>|",                tileh,          True },
+       { "><>",                NULL,   True },
+       { "[m]",                monocle,        False },
        { "[M]",                monocle,        True },
 };
 
@@ -50,7 +53,9 @@ Key keys[] = {
                "exec dmenu_run -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" },
        { MODKEY|ShiftMask,             XK_Return,      spawn,          "exec uxterm" },
        { MODKEY,                       XK_j,           focusnext,      NULL },
+       { MODKEY|ShiftMask,             XK_j,           focusnext,      "exact" },
        { MODKEY,                       XK_k,           focusprev,      NULL },
+       { MODKEY|ShiftMask,             XK_k,           focusprev,      "exact" },
        { MODKEY,                       XK_r,           reapply,        NULL },
        { MODKEY,                       XK_h,           setmfact,       "-0.05" },
        { MODKEY,                       XK_l,           setmfact,       "+0.05" },