aewl
view config.h @ 786:e65be4ffdbdc
Add handling for popup windows
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Thu, 14 Jun 2012 00:00:00 +0200 |
parents | f1e806b34697 |
children |
line source
1 /* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
2 * (C)opyright MMVIII markus schnalke <meillo at marmaro dot de>
3 * See LICENSE file for license details.
4 */
6 #define NAMETAGGED "Das Alles"
7 #define NAMEUNTAGGED "Das Nichts"
9 #define BORDERPX 1
10 #define DEFMODE domax /* dotile */
12 #define FONT "-*-terminus-medium-*-*-*-19-*-*-*-*-*-*-*"
13 /*#define FONT "fixed"*/
14 #define NORMBGCOLOR "#333333"
15 #define NORMFGCOLOR "#bbbbbb"
16 #define SELBGCOLOR "#eec900"
17 #define SELFGCOLOR "#000000"
19 #define MODKEY Mod1Mask
20 #define NMASTER 1 /* clients in master area */
21 #define SNAP 5 /* pixel */
23 #define KEYS \
24 static Key key[] = { \
25 /* modifier key function argument */ \
26 { MODKEY|ShiftMask, XK_Return, spawn, "exec urxvt" }, \
27 { MODKEY, XK_F1, toggleview, "" }, \
28 { MODKEY, XK_F2, toggleview, "" }, \
29 { MODKEY, XK_F3, floattoggle, "" }, \
30 { MODKEY|ShiftMask, XK_F4, spawn, "sudo /sbin/shutdown -h now" }, \
31 { MODKEY, XK_Tab, focusnext, "" }, \
32 { MODKEY, XK_asciicircum, spawn, "dmenu_run -fn '"FONT"' "\
33 "-nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" }, \
34 { MODKEY, XK_1, zoom, "" }, \
35 { MODKEY, XK_2, killclient, "" }, \
36 { MODKEY, XK_3, toggletag, "" }, \
37 { MODKEY|ShiftMask, XK_q, quit, "" }, \
38 { MODKEY|ShiftMask, XK_x, spawn, "exec slock" }, \
39 { MODKEY, XK_space, togglemode, "" }, \
40 { MODKEY|ShiftMask, XK_space, togglefloat, "" }, \
41 { MODKEY, XK_plus, incnmaster, "" }, \
42 { MODKEY, XK_minus, decnmaster, "" }, \
43 };
45 /* Query class:instance:title for regex matching info with following command:
46 * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */
47 #define RULES \
48 static Rule rule[] = { \
49 /* class, instance, title, tag (1=tag/0=untag/-1=curr), isfloat */ \
50 { "URxvt", NULL, NULL, 0, False }, \
51 { "MPlayer", NULL, NULL, -1, True }, \
52 { "sxiv", NULL, NULL, -1, False }, \
53 { NULL, NULL, "qiv", -1, False }, \
54 { "Gimp", NULL, NULL, 1, True }, \
55 { "", "", "", 1, False }, \
56 };