polachok /config.h

dwm's config file
/* (C)opyright MMVI Anselm R. Garbe 
 * See LICENSE file for license details.
 */

#include 

#define TAGS \
const char *tags[] = { "main", "web", "rss", "mail", "dev", "misc", "im", NULL };

#define SNAP 20 /* pixels */
#define DEFMODE			dotile		/* dotile or domax */
#define BORDERPX      1
#define BARPOS BarOff
#define STATUSPOS 1
#define HRATIO .64
#define VRATIO 1
#define LAYOUTS \
static Layout layout[] = { \
	/* symbol		function */ \
	{ "=",		monocle}, \
	{ "#",		tile }, /* first entry is default */ \
};
/*
#define NORMBGCOLOR         "#303030"
#define NORMFGCOLOR         "#dc7a00"

#define SELFGCOLOR          "#FFB800"
#define SELBGCOLOR          "#303030"

#define STATUSBGCOLOR           "#303030"
#define STATUSFGCOLOR           "#dc7a00"
#define NORMBGCOLOR         "#76848f"
#define NORMFGCOLOR         "#2b2d2b"

#define SELBGCOLOR          "#76848f"
#define SELFGCOLOR          "#eeeeee"

#define STATUSBGCOLOR           "#76848f"
#define STATUSFGCOLOR           "#eeeeee"
#define NORMBGCOLOR		"#333333"
#define NORMFGCOLOR		"#dddddd"
#define SELBGCOLOR		"#336699"
#define SELFGCOLOR		"#eeeeee"
#define STATUSBGCOLOR		"#222222"
#define STATUSFGCOLOR		"#99ccff"
#define NORMBGCOLOR		"#000000"
#define NORMFGCOLOR		"#00B000"
#define SELBGCOLOR		"#008000"
#define SELFGCOLOR		"#000000"
#define STATUSBGCOLOR		"#000000"
#define STATUSFGCOLOR		"#00B000"


#define NORMBGCOLOR		"#333333"
#define NORMFGCOLOR		"#dddddd"
#define SELBGCOLOR		"#111111"
#define SELFGCOLOR		"#eeeeee"
#define STATUSBGCOLOR		"#333333"
#define STATUSFGCOLOR		"#dddddd"
*/

/*
#define SELBGCOLOR      "#37717f"
#define SELFGCOLOR      "#23383c"
#define NORMBGCOLOR     "#23383c"
#define NORMFGCOLOR     "#54909f"
#define STATUSBGCOLOR       "#23383c"
#define STATUSFGCOLOR       "#54909f"
#define NORMBORDERCOLOR		SELBGCOLOR
#define SELBORDERCOLOR		SELBGCOLOR

*/
#define NORMBORDERCOLOR		"#555753"
#define NORMBGCOLOR		"#2e3436"
#define NORMFGCOLOR		"#d3d7cf"
//#define SELBORDERCOLOR		"#555753"
//#define SELBORDERCOLOR		"#000000"
#define SELBORDERCOLOR		"#676365"
#define SELBGCOLOR		"#3e4446"
#define SELFGCOLOR		"#d3d7cf"
/*
#define NORMBORDERCOLOR		"#c0d783"
#define NORMBGCOLOR		"#b6c77f"
#define NORMFGCOLOR		"#000"
#define SELBORDERCOLOR		"#c0d783"
#define SELBGCOLOR		"#c0d783"
#define SELFGCOLOR		"#000"
*/

#define FONT			"-artwiz-snap-*-*-*-*-10-*-*-*-*-*-koi8-r"

#define MASTERWIDTH			640 /* per thousand */
#define NMASTER			1 /* per thousand */
#define MODKEY			Mod1Mask

#define KEYS \
static Key key[] = { \
	/* modifier			key		function	arguments */ \
	/* { MODKEY,		    XK_t,	spawn,		            "osdexec aterm" }, \ */ \
	{ MODKEY,		    XK_t,	spawn,		            "osdexec aterm -e screen" }, \
	{ MODKEY,		    XK_n,	spawn,	                    "exec np" }, \
	{ MODKEY,		    XK_b,	togglebar,	            NULL }, \
	{ MODKEY,		    XK_h,	togglestatus,	            NULL }, \
	{ 0,                        XF86XK_AudioNext,          spawn,       "exec `player-control -f`" }, \
        { 0,                        XF86XK_AudioPrev,          spawn,       "exec `player-control -r`" }, \
        { 0,                        XF86XK_AudioPlay,          spawn,       "exec `player-control -t`" }, \
	{ MODKEY,		    XK_l,	spawn,		            "sleep 3 ; slock" }, \
	{ MODKEY,		    XK_u,	spawn,		            "killall unclutter||unclutter -idle 1" }, \
	{ MODKEY|ControlMask,	    XK_Delete,	spawn,		            "exec sudo /sbin/reboot" }, \
	{ MODKEY,		    XK_y,	spawn,		            "ymenu" }, \
        { MODKEY,                   XK_p,       spawn,                      "pmenu" }, \
        { MODKEY,                   XK_w,       spawn,                      "swarp 1280 900" }, \
        { MODKEY,                   XK_r,       spawn,                      "gajim-remote toggle_roster_appearance" }, \
	{ MODKEY,		    XK_m,	setlayout,	NULL }, \
        { MODKEY,		    XK_j,		focusclient,	    "1"   }, \
	{ MODKEY,		    XK_k,		focusclient,	    "-1" }, \
	{ MODKEY,		    XK_Return,   	zoom,		    NULL }, \
        { MODKEY,                   XK_minus,           inchratio,         ".2" },\
        { MODKEY,                   XK_equal,           inchratio,         "-.2" }, \
	{ MODKEY,		    XK_d,		incnmaster,	    "-1" }, \
	{ MODKEY,		    XK_i,		incnmaster,	    "1"  }, \
	{ MODKEY|ShiftMask,	    XK_1,		tag,		 "0" }, \
	{ MODKEY|ShiftMask,	    XK_2,		tag,		 "1" }, \
	{ MODKEY|ShiftMask,	    XK_3,		tag,		 "2" }, \
	{ MODKEY|ShiftMask,	    XK_4,		tag,		 "3" }, \
	{ MODKEY|ShiftMask,	    XK_5,		tag,		 "4" }, \
        { MODKEY|ControlMask,	    XK_1,		toggletag,	 "0" }, \
	{ MODKEY|ControlMask,	    XK_2,		toggletag,	 "1" }, \
	{ MODKEY|ControlMask,	    XK_3,		toggletag,	 "2" }, \
	{ MODKEY|ControlMask,	    XK_4,		toggletag,	 "3" }, \
	{ MODKEY|ControlMask,	    XK_5,		toggletag,	 "4" }, \
	{ MODKEY|ShiftMask,	    XK_c,		killclient,	 NULL  }, \
        { MODKEY,                   XK_space,           togglefloating,  NULL, }, \
	{ MODKEY,	    	    XK_F1,		view,		 "0" }, \
	{ MODKEY,   		    XK_F2,		view,		 "1" }, \
	{ MODKEY,		    XK_F3,		view,		 "2" }, \
	{ MODKEY,	    	    XK_F4,		view,		 "3" }, \
	{ MODKEY,	    	    XK_F5,		view,		 "4" }, \
	{ MODKEY|ShiftMask,	    XK_F1,		toggleview,	 "0" }, \
	{ MODKEY|ShiftMask,	    XK_F2,		toggleview,	 "1" }, \
	{ MODKEY|ShiftMask,	    XK_F3,		toggleview,	 "2" }, \
	{ MODKEY|ShiftMask,	    XK_F4,		toggleview,	 "3" }, \
	{ MODKEY|ShiftMask,	    XK_F5,		toggleview,	 "4" }, \
	{ MODKEY,       	    XK_s,		focusview,	 "5" }, \
	{ MODKEY,       	    XK_o,		focusview,	 "6" }, \
	{ MODKEY|ShiftMask,	    XK_q,		quit,		 NULL  }, \
};

//	{ MODKEY,		    XK_m,	        togglemode,	 NULL, } 
#define RULES \
static Rule rule[] = { \
	/* class:instance:title regex	tags regex	isfloat */ \
    { "Firefox.*",          "web",      False }, \
    { "Gajim*",            "im",       True }, \
    { "WeeChat.*",            "irc",       False }, \
    { "Firefox-bin.*",          "web",      False }, \
    { "Flock-bin.*",            "web",      False }, \
    { "MPlayer.*",          NULL,       True}, \
    { "gl2.*",          NULL,       True}, \
    { "Sylpheed.*",      "mail", False }, \
    { "mutt.*",      "mail", False }, \
    { ".*Liferea.*",      "rss", False }, \
    { "Gimp.*",         NULL,       True}, \
    { "feh.*",         NULL,       True}, \
    { "htop.*",     "misc",     True}, \
};