2wm

dual window manager prototype (minimalist dwm with no tags, just one view)
git clone git://git.suckless.org/2wm
Log | Files | Refs | README | LICENSE

config.default.h (1569B)


      1 /* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
      2  * See LICENSE file for license details.
      3  */
      4 
      5 #define BORDERPX		1
      6 #define NORMCOLOR		"#333"
      7 #define SELCOLOR		"#69c"
      8 
      9 #define SY			0
     10 #define SH			DisplayHeight(dpy, screen)
     11 #define MASTER			600				/* per thousand */
     12 #define MODKEY			Mod1Mask
     13 #define NMASTER			1				/* clients in master area */
     14 #define SNAP			40				/* pixel */
     15 
     16 #define KEYS \
     17 static Key key[] = { \
     18 	/* modifier			key		function	argument */ \
     19 	{ MODKEY|ShiftMask,		XK_Return,	spawn, \
     20 		{ .cmd = "exec uxterm -bg '#222' -fg '#eee' -cr '#eee' +sb -fn '-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*'" } }, \
     21 	{ MODKEY,			XK_p,		spawn, \
     22 		{ .cmd = "exe=\"$(lsx `echo $PATH | sed 's/:/ /g'` | sort -u " \
     23 			" | dmenu -fn '-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*' -nb '#222' -nf '#ccc' " \
     24 			"-sb '#555' -sf '#fff')\" && exec $exe" } }, \
     25 	{ MODKEY,			XK_a,		attach,		{ 0 } }, \
     26 	{ MODKEY,			XK_d,		detach,		{ 0 } }, \
     27 	{ MODKEY,			XK_j,		focusnext,	{ 0 } }, \
     28 	{ MODKEY,			XK_k,		focusprev,	{ 0 } }, \
     29 	{ MODKEY,			XK_Return,	zoom,		{ 0 } }, \
     30 	{ MODKEY,			XK_g,		resizemaster,	{ .i = 15 } }, \
     31 	{ MODKEY,			XK_s,		resizemaster,	{ .i = -15 } }, \
     32 	{ MODKEY,			XK_i,		incnmaster,	{ .i = 1 } }, \
     33 	{ MODKEY,			XK_r,		incnmaster,	{ .i = -1 } }, \
     34 	{ MODKEY|ShiftMask,		XK_c,		killclient,	{ 0 } }, \
     35 	{ MODKEY,			XK_space,	toggleview,	{ 0 } }, \
     36 	{ MODKEY|ShiftMask,		XK_space,	togglefloat,	{ 0 } }, \
     37 	{ MODKEY|ShiftMask,		XK_q,		quit,		{ 0 } }, \
     38 };
     39 
     40 #define FLOATS \
     41 static char *floats[] = { "Gimp.*", "MPlayer.*", "Acroread.*", NULL };