Xinqi Bao's Git

integrated the new -x -y -w toggles of dmenu into my setup
[dwm.git] / config.def.h
1 /* See LICENSE file for copyright and license details. */
2
3 /* appearance */
4 #define BORDERPX 1
5 #define FONT "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*"
6 #define NORMBORDERCOLOR "#cccccc"
7 #define NORMBGCOLOR "#cccccc"
8 #define NORMFGCOLOR "#000000"
9 #define SELBORDERCOLOR "#0066ff"
10 #define SELBGCOLOR "#0066ff"
11 #define SELFGCOLOR "#ffffff"
12
13 #if ANSELM_OFFICE
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
64
65 /* tagging */
66 const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
67
68 Rule rules[] = {
69 /* class:instance:title substr tags ref isfloating */
70 { "Firefox", tags[8], False },
71 { "Gimp", NULL, True },
72 { "MPlayer", NULL, True },
73 { "Acroread", NULL, True },
74 };
75
76 /* layout(s) */
77 #define RESIZEHINTS True /* False - respect size hints in tiled resizals */
78 #define SNAP 32 /* snap pixel */
79
80 Layout layouts[] = {
81 /* symbol function */
82 { "[]=", tile }, /* first entry is default */
83 { "><>", floating },
84 { "[M]", monocle },
85 };
86
87 /* key definitions */
88 #define MODKEY Mod1Mask
89 Key keys[] = {
90 /* modifier key function argument */
91 #if ANSELM_OFFICE
92 { MODKEY, XK_p, spawn,
93 "exec dmenu_run -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"' -x 0 -y 0 -w 1280" },
94 #else
95 { MODKEY, XK_p, spawn,
96 "exec dmenu_run -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" },
97 #endif
98 { MODKEY|ShiftMask, XK_Return, spawn, "exec uxterm" },
99 { MODKEY, XK_j, focusnext, NULL },
100 { MODKEY, XK_k, focusprev, NULL },
101 { MODKEY, XK_r, reapply, NULL },
102 { MODKEY, XK_Return, zoom, NULL },
103 { MODKEY, XK_Tab, viewprevtag, NULL },
104 { MODKEY, XK_m, setlayout, "[M]" },
105 { MODKEY, XK_f, setlayout, "><>" },
106 { MODKEY, XK_t, setlayout, "[]=" },
107 { MODKEY|ShiftMask, XK_space, togglefloating, NULL },
108 { MODKEY|ShiftMask, XK_c, killclient, NULL },
109 { MODKEY, XK_0, view, NULL },
110 { MODKEY, XK_1, view, tags[0] },
111 { MODKEY, XK_2, view, tags[1] },
112 { MODKEY, XK_3, view, tags[2] },
113 { MODKEY, XK_4, view, tags[3] },
114 { MODKEY, XK_5, view, tags[4] },
115 { MODKEY, XK_6, view, tags[5] },
116 { MODKEY, XK_7, view, tags[6] },
117 { MODKEY, XK_8, view, tags[7] },
118 { MODKEY, XK_9, view, tags[8] },
119 { MODKEY|ControlMask, XK_1, toggleview, tags[0] },
120 { MODKEY|ControlMask, XK_2, toggleview, tags[1] },
121 { MODKEY|ControlMask, XK_3, toggleview, tags[2] },
122 { MODKEY|ControlMask, XK_4, toggleview, tags[3] },
123 { MODKEY|ControlMask, XK_5, toggleview, tags[4] },
124 { MODKEY|ControlMask, XK_6, toggleview, tags[5] },
125 { MODKEY|ControlMask, XK_7, toggleview, tags[6] },
126 { MODKEY|ControlMask, XK_8, toggleview, tags[7] },
127 { MODKEY|ControlMask, XK_9, toggleview, tags[8] },
128 { MODKEY|ShiftMask, XK_0, tag, NULL },
129 { MODKEY|ShiftMask, XK_1, tag, tags[0] },
130 { MODKEY|ShiftMask, XK_2, tag, tags[1] },
131 { MODKEY|ShiftMask, XK_3, tag, tags[2] },
132 { MODKEY|ShiftMask, XK_4, tag, tags[3] },
133 { MODKEY|ShiftMask, XK_5, tag, tags[4] },
134 { MODKEY|ShiftMask, XK_6, tag, tags[5] },
135 { MODKEY|ShiftMask, XK_7, tag, tags[6] },
136 { MODKEY|ShiftMask, XK_8, tag, tags[7] },
137 { MODKEY|ShiftMask, XK_9, tag, tags[8] },
138 { MODKEY|ControlMask|ShiftMask, XK_1, toggletag, tags[0] },
139 { MODKEY|ControlMask|ShiftMask, XK_2, toggletag, tags[1] },
140 { MODKEY|ControlMask|ShiftMask, XK_3, toggletag, tags[2] },
141 { MODKEY|ControlMask|ShiftMask, XK_4, toggletag, tags[3] },
142 { MODKEY|ControlMask|ShiftMask, XK_5, toggletag, tags[4] },
143 { MODKEY|ControlMask|ShiftMask, XK_6, toggletag, tags[5] },
144 { MODKEY|ControlMask|ShiftMask, XK_7, toggletag, tags[6] },
145 { MODKEY|ControlMask|ShiftMask, XK_8, toggletag, tags[7] },
146 { MODKEY|ControlMask|ShiftMask, XK_9, toggletag, tags[8] },
147 { MODKEY|ShiftMask, XK_q, quit, NULL },
148 };