dwm-meillo

view config.h @ 746:a28456200108

added my config.h and removed config.arg.h config.default.h
author meillo@marmaro.de
date Sun, 11 Feb 2007 12:01:06 +0100
parents
children 61821891835c
line source
1 /* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
2 * See LICENSE file for license details.
3 */
5 #define TAGS \
6 const char *tags[] = { "Das Alles", "Das Nichts", NULL };
8 #define BORDERPX 1
9 #define DEFMODE dotile /* dofloat */
10 #define FLOATSYMBOL "F"
11 #define TILESYMBOL "T"
13 #define FONT "-*-terminus-medium-*-*-*-12-*-*-*-*-*-*-*"
14 #define NORMBGCOLOR "#333333"
15 #define NORMFGCOLOR "#bbbbbb"
16 #define SELBGCOLOR "#eec900"
17 #define SELFGCOLOR "#000000"
18 #define NORMBORDERCOLOR NORMBGCOLOR
19 #define SELBORDERCOLOR SELBGCOLOR
21 #define MASTER 500 /* per thousand */
22 #define MODKEY Mod1Mask
23 #define NMASTER 1 /* clients in master area */
24 #define SNAP 5 /* pixel */
25 #define TOPBAR True /* False */
27 #define KEYS \
28 static Key key[] = { \
29 /* modifier key function argument */ \
30 { MODKEY|ShiftMask, XK_Return, spawn, { .cmd = "exec urxvt" } }, \
31 { MODKEY, XK_F1, viewnext, { .i = 0 } }, \
32 { MODKEY, XK_Tab, focusnext, { 0 } }, \
33 { MODKEY, XK_asciicircum, spawn, \
34 { .cmd = "exe=\"$(lsx `echo $PATH | sed 's/:/ /g'` | sort -u " \
35 " | dmenu -font '"FONT"' -normbg '"NORMBGCOLOR"' -normfg '"NORMFGCOLOR"' " \
36 "-selbg '"SELBGCOLOR"' -selfg '"SELFGCOLOR"')\" && exec $exe" } }, \
37 { MODKEY, XK_1, zoom, { 0 } }, \
38 { MODKEY, XK_2, killclient, { 0 } }, \
39 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \
40 { MODKEY|ShiftMask, XK_F4, spawn, { .cmd = "exec sudo halt" } }, \
41 { MODKEY, XK_space, togglefloat, { 0 } }, \
42 { MODKEY|ShiftMask, XK_space, togglemode, { 0 } }, \
43 { MODKEY, XK_g, resizemaster, { .i = 15 } }, \
44 { MODKEY, XK_s, resizemaster, { .i = -15 } }, \
45 { MODKEY, XK_i, incnmaster, { .i = 1 } }, \
46 { MODKEY, XK_d, incnmaster, { .i = -1 } }, \
47 { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \
48 { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \
49 };
51 /* Query class:instance:title for regex matching info with following command:
52 * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */
53 #define RULES \
54 static Rule rule[] = { \
55 /* class:instance:title regex tags regex isfloat */ \
56 { "URxvt.*", "Das Nichts", False }, \
57 { "MPlayer.*", NULL, True }, \
58 { "Gimp.*", "Das Alles", True }, \
59 { ".*", "Das Alles", False }, \
60 };