Mercurial > hg > index.fcgi > dwm > dwm-3.6.1-12pba
view config.h @ 12:d65207f4021a
adjust inverse colors
author | paulo |
---|---|
date | Wed, 19 Sep 2012 00:10:25 -0700 |
parents | da0e0496f75b |
children | c65d4f8dc8fd |
line source
1 /* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
2 * See LICENSE file for license details.
3 */
5 /* appearance */
6 #define BORDERPX 1
7 #define FONT "6x9"
8 #define NORMBORDERCOLOR "#aaaaaa"
9 #define NORMBGCOLOR "#222222"
10 #define NORMFGCOLOR "#eeeeee"
11 #define SELBORDERCOLOR "#ff0000"
12 #define SELBGCOLOR "#222222"
13 #define SELFGCOLOR "#00ff00"
14 #define INVBORDERCOLOR "#aaaaaa"
15 #define INVBGCOLOR "#000099"
16 #define INVFGCOLOR "#eeee00"
17 #define TOPBAR True /* False */
18 #define TASKBAR True /* False */
19 #define CLICK_TO_FOCUS True /* False */
21 /* behavior */
22 #define SNAP 10 /* pixel */
23 #define TAGS \
24 const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", NULL };
25 /* Query class:instance:title for regex matching info with following command:
26 * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */
27 #define RULES \
28 static Rule rule[] = { \
29 /* class:instance:title regex tags regex isversatile */ \
30 { "Gimp", NULL, False }, \
31 { "MPlayer", NULL, False }, \
32 { "Acroread", NULL, False }, \
33 };
35 /* layout(s) */
36 #define LAYOUTS \
37 static Layout layout[] = { \
38 /* symbol function */ \
39 { " ", versatile }, \
40 { "@", spiral }, \
41 { "&", spiral_h }, \
42 { "X", monocle }, \
43 { "#", grid }, \
44 { "U", bstack }, \
45 { "!", tile }, \
46 /* first entry is default */ \
47 };
48 #define MASTER 650 /* per thousand */
49 #define NMASTER 1 /* clients in master area */
51 #define COMMANDMODE 1
52 #define INSERTMODE 2
54 /* key definitions */
55 #define MODKEY Mod4Mask
56 #define KEYS \
57 static Key key[] = { \
58 /* modifier key function argument */ \
59 { MODKEY, XK_Escape, setkeymode, { .i = COMMANDMODE } }, \
60 { MODKEY, XK_h, moveresize, "-25x 0y 0w 0h" }, \
61 { MODKEY, XK_l, moveresize, "25x 0y 0w 0h" }, \
62 { MODKEY, XK_j, moveresize, "0x 25y 0w 0h" }, \
63 { MODKEY, XK_k, moveresize, "0x -25y 0w 0h" }, \
64 { MODKEY|ControlMask, XK_h, moveresize, "0X 0y 0w 0h" }, \
65 { MODKEY|ControlMask, XK_l, moveresize, "9000X 0y 0w 0h" }, \
66 { MODKEY|ControlMask, XK_j, moveresize, "0x 9000Y 0w 0h" }, \
67 { MODKEY|ControlMask, XK_k, moveresize, "0x 0Y 0w 0h" }, \
68 { MODKEY|ShiftMask, XK_h, moveresize, "0x 0y -25w 0h" }, \
69 { MODKEY|ShiftMask, XK_l, moveresize, "0x 0y 25w 0h" }, \
70 { MODKEY|ShiftMask, XK_j, moveresize, "0x 0y 0w 25h" }, \
71 { MODKEY|ShiftMask, XK_k, moveresize, "0x 0y 0w -25h" }, \
72 };
74 #define MAX_TASKS 13 /* max number of apps in taskbar */
76 #define CMDKEYS \
77 static Key cmdkeys[] = { \
78 /* modifier keys function argument */ \
79 { 0, XK_Escape, clearcmd, { 0 } }, \
80 { ControlMask, XK_c, clearcmd, { 0 } }, \
81 { MODKEY|ShiftMask, XK_x, killclient, { 0 } }, \
82 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \
83 { 0, XK_i, setkeymode, { .i = INSERTMODE } }, \
84 { 0, XK_o, spawn, { .cmd = "/home/paulo/bin/myterm.sh" } }, \
85 { ShiftMask, XK_o, spawn_insert, { .cmd = "/home/paulo/bin/myterm.sh" } }, \
86 { 0, XK_backslash, spawn, { .cmd = "/home/paulo/bin/myterm.sh -e /home/paulo/bin/viclip.sh" } }, \
87 { ShiftMask, XK_backslash, spawn_insert, { .cmd = "/home/paulo/bin/myterm.sh -e /home/paulo/bin/viclip.sh" } }, \
88 { 0, XK_n, pushdown, { 0 } }, \
89 { ShiftMask, XK_n, pushup, { 0 } }, \
90 { 0, XK_j, focusnext, { 0 } }, \
91 { 0, XK_k, focusprev, { 0 } }, \
92 { 0, XK_Return, zoom, { 0 } }, \
93 { ShiftMask, XK_Return, zoom_insert, { 0 } }, \
94 { 0, XK_m, resizemaster, { .i = 15 } }, \
95 { ShiftMask, XK_m, resizemaster, { .i = -15 } }, \
96 { 0, XK_d, incnmaster, { .i = 1 } }, \
97 { ShiftMask, XK_d, incnmaster, { .i = -1 } }, \
98 { 0, XK_l, next_view, { .i = 1 } }, \
99 { 0, XK_h, next_view, { .i = -1 } }, \
100 { 0, XK_BackSpace, last_view, { 0 } }, \
101 { 0, XK_semicolon, setlayout, { .i = -1 } }, \
102 { ShiftMask, XK_semicolon, setlayout, { .i = -2 } }, \
103 };
105 #define COMMANDS \
106 static Command commands[] = { \
107 /* modifier (4 keys) keysyms (4 keys) function argument */ \
108 { {0, 0, 0, 0}, {XK_grave, XK_g, 0, 0}, view, { .i = -1 } }, \
109 { {0, 0, 0, 0}, {XK_1, XK_g, 0, 0}, view, { .i = 0 } }, \
110 { {0, 0, 0, 0}, {XK_2, XK_g, 0, 0}, view, { .i = 1 } }, \
111 { {0, 0, 0, 0}, {XK_3, XK_g, 0, 0}, view, { .i = 2 } }, \
112 { {0, 0, 0, 0}, {XK_4, XK_g, 0, 0}, view, { .i = 3 } }, \
113 { {0, 0, 0, 0}, {XK_5, XK_g, 0, 0}, view, { .i = 4 } }, \
114 { {0, 0, 0, 0}, {XK_6, XK_g, 0, 0}, view, { .i = 5 } }, \
115 { {0, 0, 0, 0}, {XK_7, XK_g, 0, 0}, view, { .i = 6 } }, \
116 { {0, 0, 0, 0}, {XK_8, XK_g, 0, 0}, view, { .i = 7 } }, \
117 { {0, 0, 0, 0}, {XK_9, XK_g, 0, 0}, view, { .i = 8 } }, \
118 { {0, 0, 0, 0}, {XK_0, XK_g, 0, 0}, view, { .i = 9 } }, \
119 { {0, ShiftMask, 0, 0}, {XK_grave, XK_g, 0, 0}, toggleversatile, { 0 } }, \
120 { {0, ShiftMask, 0, 0}, {XK_1, XK_g, 0, 0}, toggleview, { .i = 0 } }, \
121 { {0, ShiftMask, 0, 0}, {XK_2, XK_g, 0, 0}, toggleview, { .i = 1 } }, \
122 { {0, ShiftMask, 0, 0}, {XK_3, XK_g, 0, 0}, toggleview, { .i = 2 } }, \
123 { {0, ShiftMask, 0, 0}, {XK_4, XK_g, 0, 0}, toggleview, { .i = 3 } }, \
124 { {0, ShiftMask, 0, 0}, {XK_5, XK_g, 0, 0}, toggleview, { .i = 4 } }, \
125 { {0, ShiftMask, 0, 0}, {XK_6, XK_g, 0, 0}, toggleview, { .i = 5 } }, \
126 { {0, ShiftMask, 0, 0}, {XK_7, XK_g, 0, 0}, toggleview, { .i = 6 } }, \
127 { {0, ShiftMask, 0, 0}, {XK_8, XK_g, 0, 0}, toggleview, { .i = 7 } }, \
128 { {0, ShiftMask, 0, 0}, {XK_9, XK_g, 0, 0}, toggleview, { .i = 8 } }, \
129 { {0, ShiftMask, 0, 0}, {XK_0, XK_g, 0, 0}, toggleview, { .i = 9 } }, \
130 { {0, 0, 0, 0}, {XK_1, XK_semicolon, 0, 0}, setlayout, { .i = 0 } }, \
131 { {0, 0, 0, 0}, {XK_2, XK_semicolon, 0, 0}, setlayout, { .i = 1 } }, \
132 { {0, 0, 0, 0}, {XK_3, XK_semicolon, 0, 0}, setlayout, { .i = 2 } }, \
133 { {0, 0, 0, 0}, {XK_4, XK_semicolon, 0, 0}, setlayout, { .i = 3 } }, \
134 { {0, 0, 0, 0}, {XK_5, XK_semicolon, 0, 0}, setlayout, { .i = 4 } }, \
135 { {0, 0, 0, 0}, {XK_6, XK_semicolon, 0, 0}, setlayout, { .i = 5 } }, \
136 { {0, 0, 0, 0}, {XK_7, XK_semicolon, 0, 0}, setlayout, { .i = 6 } }, \
137 { {0, 0, 0, 0}, {XK_grave, XK_t, 0, 0}, tag, { .i = -1 } }, \
138 { {0, 0, 0, 0}, {XK_1, XK_t, 0, 0}, tag, { .i = 0 } }, \
139 { {0, 0, 0, 0}, {XK_2, XK_t, 0, 0}, tag, { .i = 1 } }, \
140 { {0, 0, 0, 0}, {XK_3, XK_t, 0, 0}, tag, { .i = 2 } }, \
141 { {0, 0, 0, 0}, {XK_4, XK_t, 0, 0}, tag, { .i = 3 } }, \
142 { {0, 0, 0, 0}, {XK_5, XK_t, 0, 0}, tag, { .i = 4 } }, \
143 { {0, 0, 0, 0}, {XK_6, XK_t, 0, 0}, tag, { .i = 5 } }, \
144 { {0, 0, 0, 0}, {XK_7, XK_t, 0, 0}, tag, { .i = 6 } }, \
145 { {0, 0, 0, 0}, {XK_8, XK_t, 0, 0}, tag, { .i = 7 } }, \
146 { {0, 0, 0, 0}, {XK_9, XK_t, 0, 0}, tag, { .i = 8 } }, \
147 { {0, 0, 0, 0}, {XK_0, XK_t, 0, 0}, tag, { .i = 9 } }, \
148 { {0, ShiftMask, 0, 0}, {XK_1, XK_t, 0, 0}, toggletag, { .i = 0 } }, \
149 { {0, ShiftMask, 0, 0}, {XK_2, XK_t, 0, 0}, toggletag, { .i = 1 } }, \
150 { {0, ShiftMask, 0, 0}, {XK_3, XK_t, 0, 0}, toggletag, { .i = 2 } }, \
151 { {0, ShiftMask, 0, 0}, {XK_4, XK_t, 0, 0}, toggletag, { .i = 3 } }, \
152 { {0, ShiftMask, 0, 0}, {XK_5, XK_t, 0, 0}, toggletag, { .i = 4 } }, \
153 { {0, ShiftMask, 0, 0}, {XK_6, XK_t, 0, 0}, toggletag, { .i = 5 } }, \
154 { {0, ShiftMask, 0, 0}, {XK_7, XK_t, 0, 0}, toggletag, { .i = 6 } }, \
155 { {0, ShiftMask, 0, 0}, {XK_8, XK_t, 0, 0}, toggletag, { .i = 7 } }, \
156 { {0, ShiftMask, 0, 0}, {XK_9, XK_t, 0, 0}, toggletag, { .i = 8 } }, \
157 { {0, ShiftMask, 0, 0}, {XK_0, XK_t, 0, 0}, toggletag, { .i = 9 } }, \
158 { {0, 0, 0, 0}, {XK_1, XK_s, 0, 0}, tag_n_view, { .i = 0 } }, \
159 { {0, 0, 0, 0}, {XK_2, XK_s, 0, 0}, tag_n_view, { .i = 1 } }, \
160 { {0, 0, 0, 0}, {XK_3, XK_s, 0, 0}, tag_n_view, { .i = 2 } }, \
161 { {0, 0, 0, 0}, {XK_4, XK_s, 0, 0}, tag_n_view, { .i = 3 } }, \
162 { {0, 0, 0, 0}, {XK_5, XK_s, 0, 0}, tag_n_view, { .i = 4 } }, \
163 { {0, 0, 0, 0}, {XK_6, XK_s, 0, 0}, tag_n_view, { .i = 5 } }, \
164 { {0, 0, 0, 0}, {XK_7, XK_s, 0, 0}, tag_n_view, { .i = 6 } }, \
165 { {0, 0, 0, 0}, {XK_8, XK_s, 0, 0}, tag_n_view, { .i = 7 } }, \
166 { {0, 0, 0, 0}, {XK_9, XK_s, 0, 0}, tag_n_view, { .i = 8 } }, \
167 { {0, 0, 0, 0}, {XK_0, XK_s, 0, 0}, tag_n_view, { .i = 9 } }, \
168 };