about summary refs log tree commit diff stats
path: root/config.def.h
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-06-19 11:38:53 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-06-19 11:38:53 +0100
commit12ea925076c4f1c013502651b0be90c05e0febac (patch)
tree520c17c2ee82e7f9025be27576c26ccdea428c94 /config.def.h
parent79ecbeca7e4ca6d614bf233e7bc95d273df6e3b4 (diff)
downloaddwm-12ea925076c4f1c013502651b0be90c05e0febac.tar.gz
untested monocle
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/config.def.h b/config.def.h
index d2c5318..6cf3989 100644
--- a/config.def.h
+++ b/config.def.h
@@ -32,8 +32,9 @@ static Bool resizehints = True; /* False means respect size hints in tiled resiz
 
 static Layout layouts[] = {
 	/* symbol     arrange function */
-	{ "[]=",      tile }, /* first entry is default */
-	{ "><>",      NULL }, /* no layout function means floating behavior */
+	{ "[]=",      tile },    /* first entry is default */
+	{ "><>",      NULL },    /* no layout function means floating behavior */
+	{ "[M]",      monocle }, /* first entry is default */
 };
 
 /* key definitions */
@@ -60,11 +61,13 @@ static Key keys[] = {
 	{ MODKEY,                       XK_k,      focusstack,     {.i = -1 } },
 	{ MODKEY,                       XK_h,      setmfact,       {.f = -0.05} },
 	{ MODKEY,                       XK_l,      setmfact,       {.f = +0.05} },
-	{ MODKEY,                       XK_m,      togglemax,      {0} },
 	{ MODKEY,                       XK_Return, zoom,           {0} },
 	{ MODKEY,                       XK_Tab,    view,           {0} },
 	{ MODKEY|ShiftMask,             XK_c,      killclient,     {0} },
-	{ MODKEY,                       XK_space,  togglelayout,   {0} },
+	{ MODKEY,                       XK_t,      setlayout,      {.v = &layouts[0]} },
+	{ MODKEY,                       XK_f,      setlayout,      {.v = &layouts[1]} },
+	{ MODKEY,                       XK_m,      setlayout,      {.v = &layouts[2]} },
+	{ MODKEY,                       XK_space,  setlayout,      {0} },
 	{ MODKEY|ShiftMask,             XK_space,  togglefloating, {0} },
 	{ MODKEY,                       XK_0,      view,           {.ui = ~0 } },
 	{ MODKEY|ShiftMask,             XK_0,      tag,            {.ui = ~0 } },
@@ -91,8 +94,8 @@ static Key keys[] = {
  * ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
 static Button buttons[] = {
 	/* click                event mask      button          function        argument */
-	{ ClkLtSymbol,          0,              Button1,        togglelayout,   {0} },
-	{ ClkLtSymbol,          0,              Button3,        togglemax,      {0} },
+	{ ClkLtSymbol,          0,              Button1,        setlayout,      {0} },
+	{ ClkLtSymbol,          0,              Button3,        setlayout,      {.v = &layouts[2]} },
 	{ ClkWinTitle,          0,              Button2,        zoom,           {0} },
 	{ ClkStatusText,        0,              Button2,        spawn,          {.v = termcmd } },
 	{ ClkClientWin,         MODKEY,         Button1,        movemouse,      {0} },