From cdbc84b9a87c427b3d0a202475b0f5aae315fb90 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Mon, 19 Feb 2007 16:40:36 +0100 Subject: introduced Layout struct --- config.arg.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'config.arg.h') diff --git a/config.arg.h b/config.arg.h index fae30d0a..67069a6c 100644 --- a/config.arg.h +++ b/config.arg.h @@ -5,9 +5,12 @@ #define TAGS \ const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL }; -#define DEFMODE dotile /* dofloat */ -#define FLOATSYMBOL "><>" -#define TILESYMBOL "[]=" +#define LAYOUTS \ +static Layout layout[] = { \ + /* symbol function */ \ + { "[]=", dotile }, /* first entry is default */ \ + { "><>", dofloat }, \ +}; #define BORDERPX 1 #define FONT "-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*" @@ -60,7 +63,7 @@ static Key key[] = { \ { MODKEY|ControlMask|ShiftMask, XK_8, toggletag, { .i = 7 } }, \ { MODKEY|ControlMask|ShiftMask, XK_9, toggletag, { .i = 8 } }, \ { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \ - { MODKEY, XK_space, togglemode, { 0 } }, \ + { MODKEY, XK_space, togglelayout, { 0 } }, \ { MODKEY|ShiftMask, XK_space, togglefloat, { 0 } }, \ { MODKEY, XK_0, view, { .i = -1 } }, \ { MODKEY, XK_1, view, { .i = 0 } }, \ -- cgit v1.2.3