Mercurial > dwm-meillo
annotate config.arg.h @ 173:1db04019684e
changed Client->tags and Rule->tags to be Bool (I'll also try to remove the TLast enum)
author | arg@10ksloc.org |
---|---|
date | Thu, 03 Aug 2006 10:55:07 +0200 |
parents | dac0793bf3f7 |
children | e848966a1ac6 |
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 |
160 | 6 enum { Tfnord, Tdev, Tnet, Twork, Tmisc, TLast }; |
146
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
7 #define TAGS \ |
173
1db04019684e
changed Client->tags and Rule->tags to be Bool (I'll also try to remove the TLast enum)
arg@10ksloc.org
parents:
171
diff
changeset
|
8 const char *tags[TLast] = { \ |
146
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
9 [Tfnord] = "fnord", \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
10 [Tdev] = "dev", \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
11 [Tnet] = "net", \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
12 [Twork] = "work", \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
13 [Tmisc] = "misc", \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
14 }; |
164
21071ae1fe68
made fullscreen apps working fine in floating mode (there is no sane way to make them work in tiled mode, thus I switch to floating mode if I run such kind of app), also fixed the xterm issue reported by Sander
arg@10ksloc.org
parents:
160
diff
changeset
|
15 |
21071ae1fe68
made fullscreen apps working fine in floating mode (there is no sane way to make them work in tiled mode, thus I switch to floating mode if I run such kind of app), also fixed the xterm issue reported by Sander
arg@10ksloc.org
parents:
160
diff
changeset
|
16 #define DEFMODE dotile /* dofloat */ |
160 | 17 #define DEFTAG Tdev |
164
21071ae1fe68
made fullscreen apps working fine in floating mode (there is no sane way to make them work in tiled mode, thus I switch to floating mode if I run such kind of app), also fixed the xterm issue reported by Sander
arg@10ksloc.org
parents:
160
diff
changeset
|
18 #define FONT "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*" |
21071ae1fe68
made fullscreen apps working fine in floating mode (there is no sane way to make them work in tiled mode, thus I switch to floating mode if I run such kind of app), also fixed the xterm issue reported by Sander
arg@10ksloc.org
parents:
160
diff
changeset
|
19 #define BGCOLOR "#0a2c2d" |
21071ae1fe68
made fullscreen apps working fine in floating mode (there is no sane way to make them work in tiled mode, thus I switch to floating mode if I run such kind of app), also fixed the xterm issue reported by Sander
arg@10ksloc.org
parents:
160
diff
changeset
|
20 #define FGCOLOR "#ddeeee" |
21071ae1fe68
made fullscreen apps working fine in floating mode (there is no sane way to make them work in tiled mode, thus I switch to floating mode if I run such kind of app), also fixed the xterm issue reported by Sander
arg@10ksloc.org
parents:
160
diff
changeset
|
21 #define BORDERCOLOR "#176164" |
21071ae1fe68
made fullscreen apps working fine in floating mode (there is no sane way to make them work in tiled mode, thus I switch to floating mode if I run such kind of app), also fixed the xterm issue reported by Sander
arg@10ksloc.org
parents:
160
diff
changeset
|
22 #define MODKEY Mod1Mask |
21071ae1fe68
made fullscreen apps working fine in floating mode (there is no sane way to make them work in tiled mode, thus I switch to floating mode if I run such kind of app), also fixed the xterm issue reported by Sander
arg@10ksloc.org
parents:
160
diff
changeset
|
23 #define NUMLOCKMASK Mod2Mask |
171
dac0793bf3f7
changing MASTERW value from 52 to 60 (in both, default and arg), I feel this is better now
arg@10ksloc.org
parents:
165
diff
changeset
|
24 #define MASTERW 60 /* percent */ |
146
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
25 |
152 | 26 #define KEYS \ |
146
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
27 const char *browse[] = { "firefox", NULL }; \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
28 const char *gimp[] = { "gimp", NULL }; \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
29 const char *term[] = { \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
30 "urxvt", "-tr", "+sb", "-bg", "black", "-fg", "white", "-cr", "white", \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
31 "-fn", "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*", NULL \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
32 }; \ |
152 | 33 const char *xlock[] = { "xlock", NULL }; \ |
146
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
34 static Key key[] = { \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
35 /* modifier key function arguments */ \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
36 { MODKEY, XK_0, view, { .i = Tfnord } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
37 { MODKEY, XK_1, view, { .i = Tdev } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
38 { MODKEY, XK_2, view, { .i = Tnet } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
39 { MODKEY, XK_3, view, { .i = Twork } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
40 { MODKEY, XK_4, view, { .i = Tmisc} }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
41 { MODKEY, XK_h, viewprev, { 0 } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
42 { MODKEY, XK_j, focusnext, { 0 } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
43 { MODKEY, XK_k, focusprev, { 0 } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
44 { MODKEY, XK_l, viewnext, { 0 } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
45 { MODKEY, XK_m, togglemax, { 0 } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
46 { MODKEY, XK_space, togglemode, { 0 } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
47 { MODKEY, XK_Return, zoom, { 0 } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
48 { MODKEY|ControlMask, XK_0, appendtag, { .i = Tfnord } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
49 { MODKEY|ControlMask, XK_1, appendtag, { .i = Tdev } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
50 { MODKEY|ControlMask, XK_2, appendtag, { .i = Tnet } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
51 { MODKEY|ControlMask, XK_3, appendtag, { .i = Twork } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
52 { MODKEY|ControlMask, XK_4, appendtag, { .i = Tmisc } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
53 { MODKEY|ShiftMask, XK_0, replacetag, { .i = Tfnord } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
54 { MODKEY|ShiftMask, XK_1, replacetag, { .i = Tdev } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
55 { MODKEY|ShiftMask, XK_2, replacetag, { .i = Tnet } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
56 { MODKEY|ShiftMask, XK_3, replacetag, { .i = Twork } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
57 { MODKEY|ShiftMask, XK_4, replacetag, { .i = Tmisc } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
58 { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
59 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
60 { MODKEY|ShiftMask, XK_Return, spawn, { .argv = term } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
61 { MODKEY|ShiftMask, XK_g, spawn, { .argv = gimp } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
62 { MODKEY|ShiftMask, XK_l, spawn, { .argv = xlock } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
63 { MODKEY|ShiftMask, XK_w, spawn, { .argv = browse } }, \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
64 }; |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
65 |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
66 #define RULES \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
67 static Rule rule[] = { \ |
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
68 /* class:instance tags isfloat */ \ |
173
1db04019684e
changed Client->tags and Rule->tags to be Bool (I'll also try to remove the TLast enum)
arg@10ksloc.org
parents:
171
diff
changeset
|
69 { "Firefox.*", { [Tnet] = True }, False }, \ |
146
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
70 { "Gimp.*", { 0 }, True}, \ |
165
4d828b431b72
added Acroread.* and MPlayer.* to config.arg.h rules
arg@10ksloc.org
parents:
164
diff
changeset
|
71 { "MPlayer.*", { 0 }, True}, \ |
4d828b431b72
added Acroread.* and MPlayer.* to config.arg.h rules
arg@10ksloc.org
parents:
164
diff
changeset
|
72 { "Acroread.*", { 0 }, True}, \ |
146
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
73 }; |