summaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--config.def.h28
1 files changed, 13 insertions, 15 deletions
diff --git a/config.def.h b/config.def.h
index f6d90d8..8130909 100644
--- a/config.def.h
+++ b/config.def.h
@@ -9,19 +9,6 @@
9#define SELBORDERCOLOR "#0066ff" 9#define SELBORDERCOLOR "#0066ff"
10#define SELBGCOLOR "#0066ff" 10#define SELBGCOLOR "#0066ff"
11#define SELFGCOLOR "#ffffff" 11#define SELFGCOLOR "#ffffff"
12#define GEOMETRY "0 0 W B " \
13 "0 B W H-B " \
14 "0 B W*0.55 H-B " \
15 "W*0.55 B W*0.45 H-B " \
16 "0 B W H-B"
17
18/* Anselm's dual head geometry in the office */
19#define DUALGEOMETRY "0 0 1280 B " \
20 "0 B W H-B " \
21 "0 B 1280 800-B " \
22 "1280 0 W-1280 H " \
23 "0 B 1280 800-B"
24
25 12
26/* tagging */ 13/* tagging */
27const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; 14const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
@@ -34,6 +21,17 @@ Rule rules[] = {
34 { NULL, NULL, "Acroread", NULL, True }, 21 { NULL, NULL, "Acroread", NULL, True },
35}; 22};
36 23
24/* geometries, s{x,y,w,h} and bh are already initualized here */
25/* func name bx by bw wx wy ww wh mx my mw mh tx ty tw th mox moy mow moh */
26DEFGEOM(single, 0, 0, sw, 0, bh, sw, sh-bh, wx, wy, 0.55*sw, wh, mx+mw, wy, ww-mw, wh, wx, wy, ww, wh)
27DEFGEOM(dual, 0, 0,1280, 0, bh, ww, wh-bh, wx, wy, 1280,800-bh, 1280, 0, ww-mw, sh, mx, my, mw, mh)
28
29Geom geoms[] = {
30 /* symbol function */
31 { "[]", single }, /* first entry is default */
32 { "[][]", dual },
33};
34
37/* layout(s) */ 35/* layout(s) */
38#define RESIZEHINTS True /* False - respect size hints in tiled resizals */ 36#define RESIZEHINTS True /* False - respect size hints in tiled resizals */
39#define SNAP 32 /* snap pixel */ 37#define SNAP 32 /* snap pixel */
@@ -50,8 +48,8 @@ Layout layouts[] = {
50#define MODKEY Mod1Mask 48#define MODKEY Mod1Mask
51Key keys[] = { 49Key keys[] = {
52 /* modifier key function argument */ 50 /* modifier key function argument */
53 { MODKEY, XK_a, setgeom, DUALGEOMETRY }, 51 { MODKEY, XK_a, setgeom, "[][]" },
54 { MODKEY, XK_d, setgeom, GEOMETRY }, 52 { MODKEY, XK_d, setgeom, "[]" },
55 { MODKEY, XK_p, spawn, 53 { MODKEY, XK_p, spawn,
56 "exec dmenu_run -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" }, 54 "exec dmenu_run -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" },
57 { MODKEY|ShiftMask, XK_Return, spawn, "exec uxterm" }, 55 { MODKEY|ShiftMask, XK_Return, spawn, "exec uxterm" },