7 #define NORMBGCOLOR "#cccccc" |
7 #define NORMBGCOLOR "#cccccc" |
8 #define NORMFGCOLOR "#000000" |
8 #define NORMFGCOLOR "#000000" |
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 */ |
27 const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; |
14 const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; |
28 |
15 |
29 Rule rules[] = { |
16 Rule rules[] = { |
30 /* class instance title tags ref isfloating */ |
17 /* class instance title tags ref isfloating */ |
31 { NULL, NULL, "Firefox", tags[8], False }, |
18 { NULL, NULL, "Firefox", tags[8], False }, |
32 { NULL, NULL, "Gimp", NULL, True }, |
19 { NULL, NULL, "Gimp", NULL, True }, |
33 { NULL, NULL, "MPlayer", NULL, True }, |
20 { NULL, NULL, "MPlayer", NULL, True }, |
34 { NULL, NULL, "Acroread", NULL, True }, |
21 { NULL, NULL, "Acroread", NULL, True }, |
|
22 }; |
|
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 */ |
|
26 DEFGEOM(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) |
|
27 DEFGEOM(dual, 0, 0,1280, 0, bh, ww, wh-bh, wx, wy, 1280,800-bh, 1280, 0, ww-mw, sh, mx, my, mw, mh) |
|
28 |
|
29 Geom geoms[] = { |
|
30 /* symbol function */ |
|
31 { "[]", single }, /* first entry is default */ |
|
32 { "[][]", dual }, |
35 }; |
33 }; |
36 |
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 */ |
48 |
46 |
49 /* key definitions */ |
47 /* key definitions */ |
50 #define MODKEY Mod1Mask |
48 #define MODKEY Mod1Mask |
51 Key keys[] = { |
49 Key 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" }, |
58 { MODKEY, XK_j, focusnext, NULL }, |
56 { MODKEY, XK_j, focusnext, NULL }, |
59 { MODKEY, XK_k, focusprev, NULL }, |
57 { MODKEY, XK_k, focusprev, NULL }, |