annotate config.meillo.h @ 751:743061dbe7f2

made Mod-F4 (shutdown) work on notebook
author meillo@marmaro.de
date Sat, 16 Jun 2007 21:44:00 +0200
parents 6692d7e7e156
children e5bec43370b8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
749
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
1 /* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
2 * See LICENSE file for license details.
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
3 */
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
4
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
5 #define TAGS \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
6 const char *tags[] = { "Das Alles", "Das Nichts", NULL };
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
7
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
8 #define BORDERPX 1
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
9 #define DEFMODE domax /* dotile */
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
10 #define FLOATSYMBOL ""
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
11 #define TILESYMBOL ""
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
12
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
13 #define FONT "-*-terminus-medium-*-*-*-12-*-*-*-*-*-*-*"
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
14 #define NORMBGCOLOR "#333333"
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
15 #define NORMFGCOLOR "#bbbbbb"
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
16 #define SELBGCOLOR "#eec900"
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
17 #define SELFGCOLOR "#000000"
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
18 #define NORMBORDERCOLOR NORMBGCOLOR
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
19 #define SELBORDERCOLOR SELBGCOLOR
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
20
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
21 #define MASTER 500 /* per thousand */
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
22 #define MODKEY Mod1Mask
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
23 #define NMASTER 1 /* clients in master area */
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
24 #define SNAP 5 /* pixel */
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
25 #define TOPBAR True /* False */
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
26
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
27 #define KEYS \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
28 static Key key[] = { \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
29 /* modifier key function argument */ \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
30 { MODKEY|ShiftMask, XK_Return, spawn, { .cmd = "exec urxvt" } }, \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
31 { MODKEY, XK_F1, viewnext, { .i = 0 } }, \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
32 { MODKEY, XK_Tab, focusnext, { 0 } }, \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
33 { MODKEY, XK_asciicircum, spawn, \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
34 { .cmd = "exe=\"$(lsx `echo $PATH | sed 's/:/ /g'` | sort -u " \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
35 " | dmenu -font '"FONT"' -normbg '"NORMBGCOLOR"' -normfg '"NORMFGCOLOR"' " \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
36 "-selbg '"SELBGCOLOR"' -selfg '"SELFGCOLOR"')\" && exec $exe" } }, \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
37 { MODKEY, XK_1, zoom, { 0 } }, \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
38 { MODKEY, XK_2, killclient, { 0 } }, \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
39 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \
751
743061dbe7f2 made Mod-F4 (shutdown) work on notebook
meillo@marmaro.de
parents: 749
diff changeset
40 { MODKEY|ShiftMask, XK_F4, spawn, { .cmd = "sudo /sbin/shutdown -t 3 now" } }, \
749
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
41 { MODKEY, XK_space, togglemode, { 0 } }, \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
42 { MODKEY|ShiftMask, XK_space, togglefloat, { 0 } }, \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
43 { MODKEY, XK_g, resizemaster, { .i = 15 } }, \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
44 { MODKEY, XK_s, resizemaster, { .i = -15 } }, \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
45 { MODKEY, XK_i, incnmaster, { .i = 1 } }, \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
46 { MODKEY, XK_d, incnmaster, { .i = -1 } }, \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
47 { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
48 { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
49 };
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
50
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
51 /* Query class:instance:title for regex matching info with following command:
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
52 * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
53 #define RULES \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
54 static Rule rule[] = { \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
55 /* class:instance:title regex tags regex isfloat */ \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
56 { "URxvt.*", "Das Nichts", False }, \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
57 { "MPlayer.*", NULL, True }, \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
58 { "Gimp.*", "Das Alles", True }, \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
59 { ".*", "Das Alles", False }, \
6692d7e7e156 added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
meillo@marmaro.de
parents:
diff changeset
60 };