Mercurial > dwm-meillo
annotate config.h @ 153:02545d36e9d3
removed 1 missing LOC
author | arg@10ksloc.org |
---|---|
date | Tue, 01 Aug 2006 16:20:29 +0200 |
parents | 4a64fd270e47 |
children | 9bd8a1a50464 |
rev | line source |
---|---|
146
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
1 /* |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com> |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
3 * See LICENSE file for license details. |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
4 */ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
5 |
152 | 6 enum { Tfnord, Tdev, Tnet, Twork, Tmisc, TLast }; |
7 #define DEFTAG Tdev | |
8 #define ARRANGE dotile /* dofloat */ | |
146
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
9 #define FONT "fixed" |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
10 #define BGCOLOR "#666699" |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
11 #define FGCOLOR "#eeeeee" |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
12 #define BORDERCOLOR "#9999CC" |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
13 #define MODKEY Mod1Mask |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
14 #define NUMLOCKMASK Mod2Mask |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
15 #define MASTERW 52 /* percent */ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
16 |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
17 #define TAGS \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
18 char *tags[TLast] = { \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
19 [Tfnord] = "fnord", \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
20 [Tdev] = "dev", \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
21 [Tnet] = "net", \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
22 [Twork] = "work", \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
23 [Tmisc] = "misc", \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
24 }; |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
25 |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
26 #define KEYS \ |
152 | 27 const char *term[] = { "xterm", NULL }; \ |
146
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
28 static Key key[] = { \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
29 /* modifier key function arguments */ \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
30 { MODKEY, XK_0, view, { .i = Tfnord } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
31 { MODKEY, XK_1, view, { .i = Tdev } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
32 { MODKEY, XK_2, view, { .i = Tnet } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
33 { MODKEY, XK_3, view, { .i = Twork } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
34 { MODKEY, XK_4, view, { .i = Tmisc} }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
35 { MODKEY, XK_h, viewprev, { 0 } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
36 { MODKEY, XK_j, focusnext, { 0 } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
37 { MODKEY, XK_k, focusprev, { 0 } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
38 { MODKEY, XK_l, viewnext, { 0 } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
39 { MODKEY, XK_m, togglemax, { 0 } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
40 { MODKEY, XK_space, togglemode, { 0 } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
41 { MODKEY, XK_Return, zoom, { 0 } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
42 { MODKEY|ControlMask, XK_0, appendtag, { .i = Tfnord } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
43 { MODKEY|ControlMask, XK_1, appendtag, { .i = Tdev } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
44 { MODKEY|ControlMask, XK_2, appendtag, { .i = Tnet } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
45 { MODKEY|ControlMask, XK_3, appendtag, { .i = Twork } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
46 { MODKEY|ControlMask, XK_4, appendtag, { .i = Tmisc } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
47 { MODKEY|ShiftMask, XK_0, replacetag, { .i = Tfnord } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
48 { MODKEY|ShiftMask, XK_1, replacetag, { .i = Tdev } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
49 { MODKEY|ShiftMask, XK_2, replacetag, { .i = Tnet } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
50 { MODKEY|ShiftMask, XK_3, replacetag, { .i = Twork } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
51 { MODKEY|ShiftMask, XK_4, replacetag, { .i = Tmisc } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
52 { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
53 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
54 { MODKEY|ShiftMask, XK_Return, spawn, { .argv = term } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
55 }; |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
56 |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
57 #define RULES \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
58 static Rule rule[] = { \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
59 /* class:instance tags isfloat */ \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
60 { "Firefox.*", { [Tnet] = "net" }, False }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
61 { "Gimp.*", { 0 }, True}, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
62 }; |