summaryrefslogtreecommitdiffstats
path: root/config.default.h
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@gmail.com>2007-09-15 10:30:45 +0200
committerAnselm R. Garbe <garbeam@gmail.com>2007-09-15 10:30:45 +0200
commit73e2aba341624fbfb4791d464bf0d0a16c50578c (patch)
tree46f6c778c9cc677989e8f53464ecd6e6943cbb10 /config.default.h
parentsmall changes of the colors (diff)
downloaddwm-73e2aba341624fbfb4791d464bf0d0a16c50578c.tar.gz
dwm-73e2aba341624fbfb4791d464bf0d0a16c50578c.zip
removed config.arg.h, only 1 config.h necessary
Diffstat (limited to '')
-rw-r--r--config.default.h34
1 files changed, 22 insertions, 12 deletions
diff --git a/config.default.h b/config.default.h
index 96efa83..b016174 100644
--- a/config.default.h
+++ b/config.default.h
@@ -3,22 +3,29 @@
3/* appearance */ 3/* appearance */
4#define BARPOS BarTop /* BarBot, BarOff */ 4#define BARPOS BarTop /* BarBot, BarOff */
5#define BORDERPX 1 5#define BORDERPX 1
6#define FONT "-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*" 6#define FONT "-*-terminus-medium-r-*-*-12-*-*-*-*-*-iso10646-*"
7#define NORMBORDERCOLOR "#dddddd" 7#define DARK /* LIGHT */
8#define NORMBGCOLOR "#eeeeee" 8#ifdef DARK
9#define NORMFGCOLOR "#222222" 9#define NORMBORDERCOLOR "#222"
10#define SELBORDERCOLOR "#ff0000" 10#define NORMBGCOLOR "#000"
11#define SELBGCOLOR "#006699" 11#define NORMFGCOLOR "#eee"
12#define SELFGCOLOR "#ffffff" 12#define SELBORDERCOLOR "#09f"
13#else
14#define NORMBORDERCOLOR "#666"
15#define NORMBGCOLOR "#eee"
16#define NORMFGCOLOR "#222"
17#define SELBORDERCOLOR "#f00"
18#endif
19#define SELBGCOLOR "#369"
20#define SELFGCOLOR "#fff"
13 21
14/* tagging */ 22/* tagging */
15#define TAGS \ 23#define TAGS \
16const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL }; 24const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL };
17/* Query class:instance:title for regex matching info with following command:
18 * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */
19#define RULES \ 25#define RULES \
20static Rule rules[] = { \ 26static Rule rules[] = { \
21 /* class:instance:title regex tags regex isfloating */ \ 27 /* class:instance:title regex tags regex isfloating */ \
28 { "Firefox", "3", False }, \
22 { "Gimp", NULL, True }, \ 29 { "Gimp", NULL, True }, \
23 { "MPlayer", NULL, True }, \ 30 { "MPlayer", NULL, True }, \
24 { "Acroread", NULL, True }, \ 31 { "Acroread", NULL, True }, \
@@ -32,7 +39,7 @@ static Layout layouts[] = { \
32 { "[]=", tile }, /* first entry is default */ \ 39 { "[]=", tile }, /* first entry is default */ \
33 { "><>", floating }, \ 40 { "><>", floating }, \
34}; 41};
35#define RESIZEHINTS False /* True - respect size hints in tiled resizals */ 42#define RESIZEHINTS True /* False - respect size hints in tiled resizals */
36#define MWFACT 0.6 /* master width factor [0.1 .. 0.9] */ 43#define MWFACT 0.6 /* master width factor [0.1 .. 0.9] */
37#define SNAP 32 /* snap pixel */ 44#define SNAP 32 /* snap pixel */
38 45
@@ -41,8 +48,11 @@ static Layout layouts[] = { \
41#define KEYS \ 48#define KEYS \
42Key keys[] = { \ 49Key keys[] = { \
43 /* modifier key function argument */ \ 50 /* modifier key function argument */ \
44 { MODKEY|ShiftMask, XK_Return, spawn, "exec xterm" }, \ 51 { MODKEY, XK_p, spawn, \
45 { MODKEY, XK_p, spawn, "exe=`dmenu_path | dmenu` && exec $exe" }, \ 52 "exe=`dmenu_path | dmenu -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"'" \
53 " -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'` && exec $exe" }, \
54 { MODKEY|ShiftMask, XK_Return, spawn, \
55 "exec xterm -bg '"NORMBGCOLOR"' -fg '"NORMFGCOLOR"' -cr '"NORMFGCOLOR"' +sb -fn '"FONT"'" }, \
46 { MODKEY, XK_space, setlayout, NULL }, \ 56 { MODKEY, XK_space, setlayout, NULL }, \
47 { MODKEY, XK_b, togglebar, NULL }, \ 57 { MODKEY, XK_b, togglebar, NULL }, \
48 { MODKEY, XK_j, focusnext, NULL }, \ 58 { MODKEY, XK_j, focusnext, NULL }, \