aboutsummaryrefslogtreecommitdiff
path: root/config.arg.h
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-02-19 16:40:36 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-02-19 16:40:36 +0100
commitcdbc84b9a87c427b3d0a202475b0f5aae315fb90 (patch)
treed0f12930c9aaafb84d359d263601e2136b61ac74 /config.arg.h
parentb2f895166af45b5d84abab90032bd3cc75391dc8 (diff)
downloaddwm-cdbc84b9a87c427b3d0a202475b0f5aae315fb90.tar.gz
dwm-cdbc84b9a87c427b3d0a202475b0f5aae315fb90.tar.bz2
dwm-cdbc84b9a87c427b3d0a202475b0f5aae315fb90.zip
introduced Layout struct
Diffstat (limited to 'config.arg.h')
-rw-r--r--config.arg.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/config.arg.h b/config.arg.h
index fae30d0..67069a6 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 } }, \