1 /* See LICENSE file for copyright and license details. */ |
1 /* See LICENSE file for copyright and license details. */ |
2 |
2 |
3 /* appearance */ |
3 /* appearance */ |
4 #define BARPOS BarTop /* BarBot, BarOff */ |
|
5 #define BORDERPX 1 |
4 #define BORDERPX 1 |
6 #define FONT "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*" |
5 #define FONT "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*" |
7 #define NORMBORDERCOLOR "#cccccc" |
6 #define NORMBORDERCOLOR "#cccccc" |
8 #define NORMBGCOLOR "#cccccc" |
7 #define NORMBGCOLOR "#cccccc" |
9 #define NORMFGCOLOR "#000000" |
8 #define NORMFGCOLOR "#000000" |
10 #define SELBORDERCOLOR "#0066ff" |
9 #define SELBORDERCOLOR "#0066ff" |
11 #define SELBGCOLOR "#0066ff" |
10 #define SELBGCOLOR "#0066ff" |
12 #define SELFGCOLOR "#ffffff" |
11 #define SELFGCOLOR "#ffffff" |
|
12 |
|
13 #if WORK |
|
14 |
|
15 /* bar position */ |
|
16 #define BX 0 |
|
17 #define BY 0 |
|
18 #define BW 1280 |
|
19 |
|
20 /* master area */ |
|
21 #define MX 0 |
|
22 #define MY bh |
|
23 #define MW 1280 |
|
24 #define MH 800 - bh |
|
25 |
|
26 /* tile area, might be on a different screen */ |
|
27 #define TX 1280 |
|
28 #define TY 0 |
|
29 #define TW 1680 |
|
30 #define TH 1050 |
|
31 |
|
32 /* monocle area, might be restricted to a specific screen */ |
|
33 #define MOX MX |
|
34 #define MOY MY |
|
35 #define MOW MW |
|
36 #define MOH MH |
|
37 |
|
38 #else |
|
39 |
|
40 /* bar position */ |
|
41 #define BX sx |
|
42 #define BY sy |
|
43 #define BW sw |
|
44 |
|
45 /* master area */ |
|
46 #define MX sx |
|
47 #define MY sy + bh |
|
48 #define MW ((int)(((float)sw) * 0.6)) |
|
49 #define MH sh - bh |
|
50 |
|
51 /* tile area, might be on a different screen */ |
|
52 #define TX sx + MW |
|
53 #define TY MY |
|
54 #define TW sw - MW |
|
55 #define TH MH |
|
56 |
|
57 /* monocle area, might be restricted to a specific screen */ |
|
58 #define MOX sx |
|
59 #define MOY MY |
|
60 #define MOW sw |
|
61 #define MOH MH |
|
62 |
|
63 #endif |
13 |
64 |
14 /* tagging */ |
65 /* tagging */ |
15 const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; |
66 const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; |
16 |
67 |
17 Rule rules[] = { |
68 Rule rules[] = { |
39 Key keys[] = { |
89 Key keys[] = { |
40 /* modifier key function argument */ |
90 /* modifier key function argument */ |
41 { MODKEY, XK_p, spawn, |
91 { MODKEY, XK_p, spawn, |
42 "exec dmenu_run -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" }, |
92 "exec dmenu_run -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" }, |
43 { MODKEY|ShiftMask, XK_Return, spawn, "exec uxterm" }, |
93 { MODKEY|ShiftMask, XK_Return, spawn, "exec uxterm" }, |
44 { MODKEY, XK_b, togglebar, NULL }, |
|
45 { MODKEY, XK_j, focusnext, NULL }, |
94 { MODKEY, XK_j, focusnext, NULL }, |
46 { MODKEY, XK_k, focusprev, NULL }, |
95 { MODKEY, XK_k, focusprev, NULL }, |
47 { MODKEY, XK_h, setmwfact, "-0.05" }, |
|
48 { MODKEY, XK_l, setmwfact, "+0.05" }, |
|
49 { MODKEY, XK_r, reapply, NULL }, |
96 { MODKEY, XK_r, reapply, NULL }, |
50 { MODKEY, XK_Return, zoom, NULL }, |
97 { MODKEY, XK_Return, zoom, NULL }, |
51 { MODKEY, XK_Tab, viewprevtag, NULL }, |
98 { MODKEY, XK_Tab, viewprevtag, NULL }, |
52 { MODKEY, XK_space, setlayout, NULL }, |
99 { MODKEY, XK_m, setlayout, "[M]" }, |
|
100 { MODKEY, XK_f, setlayout, "><>" }, |
|
101 { MODKEY, XK_t, setlayout, "[]=" }, |
53 { MODKEY|ShiftMask, XK_space, togglefloating, NULL }, |
102 { MODKEY|ShiftMask, XK_space, togglefloating, NULL }, |
54 { MODKEY|ShiftMask, XK_c, killclient, NULL }, |
103 { MODKEY|ShiftMask, XK_c, killclient, NULL }, |
55 { MODKEY, XK_0, view, NULL }, |
104 { MODKEY, XK_0, view, NULL }, |
56 { MODKEY, XK_1, view, tags[0] }, |
105 { MODKEY, XK_1, view, tags[0] }, |
57 { MODKEY, XK_2, view, tags[1] }, |
106 { MODKEY, XK_2, view, tags[1] }, |