Mercurial > dwm-meillo
diff config.meillo.h @ 749:6692d7e7e156
added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
author | meillo@marmaro.de |
---|---|
date | Sun, 11 Feb 2007 17:20:22 +0100 |
parents | |
children | 3d957a703ce2 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config.meillo.h Sun Feb 11 17:20:22 2007 +0100 @@ -0,0 +1,60 @@ +/* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com> + * See LICENSE file for license details. + */ + +#define TAGS \ +const char *tags[] = { "Das Alles", "Das Nichts", NULL }; + +#define BORDERPX 1 +#define DEFMODE domax /* dotile */ +#define FLOATSYMBOL "" +#define TILESYMBOL "" + +#define FONT "-*-terminus-medium-*-*-*-12-*-*-*-*-*-*-*" +#define NORMBGCOLOR "#333333" +#define NORMFGCOLOR "#bbbbbb" +#define SELBGCOLOR "#eec900" +#define SELFGCOLOR "#000000" +#define NORMBORDERCOLOR NORMBGCOLOR +#define SELBORDERCOLOR SELBGCOLOR + +#define MASTER 500 /* per thousand */ +#define MODKEY Mod1Mask +#define NMASTER 1 /* clients in master area */ +#define SNAP 5 /* pixel */ +#define TOPBAR True /* False */ + +#define KEYS \ +static Key key[] = { \ + /* modifier key function argument */ \ + { MODKEY|ShiftMask, XK_Return, spawn, { .cmd = "exec urxvt" } }, \ + { MODKEY, XK_F1, viewnext, { .i = 0 } }, \ + { MODKEY, XK_Tab, focusnext, { 0 } }, \ + { MODKEY, XK_asciicircum, spawn, \ + { .cmd = "exe=\"$(lsx `echo $PATH | sed 's/:/ /g'` | sort -u " \ + " | dmenu -font '"FONT"' -normbg '"NORMBGCOLOR"' -normfg '"NORMFGCOLOR"' " \ + "-selbg '"SELBGCOLOR"' -selfg '"SELFGCOLOR"')\" && exec $exe" } }, \ + { MODKEY, XK_1, zoom, { 0 } }, \ + { MODKEY, XK_2, killclient, { 0 } }, \ + { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \ + { MODKEY|ShiftMask, XK_F4, spawn, { .cmd = "exec sudo halt" } }, \ + { MODKEY, XK_space, togglemode, { 0 } }, \ + { MODKEY|ShiftMask, XK_space, togglefloat, { 0 } }, \ + { MODKEY, XK_g, resizemaster, { .i = 15 } }, \ + { MODKEY, XK_s, resizemaster, { .i = -15 } }, \ + { MODKEY, XK_i, incnmaster, { .i = 1 } }, \ + { MODKEY, XK_d, incnmaster, { .i = -1 } }, \ + { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \ + { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \ +}; + +/* Query class:instance:title for regex matching info with following command: + * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */ +#define RULES \ +static Rule rule[] = { \ + /* class:instance:title regex tags regex isfloat */ \ + { "URxvt.*", "Das Nichts", False }, \ + { "MPlayer.*", NULL, True }, \ + { "Gimp.*", "Das Alles", True }, \ + { ".*", "Das Alles", False }, \ +};