diff options
author | Anselm R. Garbe <arg@suckless.org> | 2007-02-19 16:40:36 +0100 |
---|---|---|
committer | Anselm R. Garbe <arg@suckless.org> | 2007-02-19 16:40:36 +0100 |
commit | cdbc84b9a87c427b3d0a202475b0f5aae315fb90 (patch) | |
tree | d0f12930c9aaafb84d359d263601e2136b61ac74 /config.default.h | |
parent | b2f895166af45b5d84abab90032bd3cc75391dc8 (diff) | |
download | dwm-cdbc84b9a87c427b3d0a202475b0f5aae315fb90.tar dwm-cdbc84b9a87c427b3d0a202475b0f5aae315fb90.tar.gz dwm-cdbc84b9a87c427b3d0a202475b0f5aae315fb90.tar.bz2 |
introduced Layout struct
Diffstat (limited to 'config.default.h')
-rw-r--r-- | config.default.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/config.default.h b/config.default.h index c1274a1..c318973 100644 --- a/config.default.h +++ b/config.default.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 \ +Layout layout[] = { \ + /* symbol function */ \ + { "[]=", dotile }, /* first entry is default */ \ + { "><>", dofloat }, \ +}; #define BORDERPX 1 #define FONT "-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*" @@ -55,7 +58,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 } }, \ |