view config.h @ 787:eecb13b34511 default tip

Put floating windows on random starting positions
author markus schnalke <meillo@marmaro.de>
date Fri, 18 Oct 2024 23:42:20 +0200
parents 5fa2cf6026e8
children
line wrap: on
line source

/* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
 * (C)opyright MMVIII markus schnalke <meillo at marmaro dot de>
 * See LICENSE file for license details.
 */

#define NAMETAGGED "Das Alles"
#define NAMEUNTAGGED "Das Nichts"

#define BORDERPX	1
#define DEFMODE		domax	/* dotile */

#define FONT		"-*-terminus-medium-*-*-*-19-*-*-*-*-*-*-*"
/*#define FONT		"fixed"*/
#define NORMBGCOLOR	"#333333"
#define NORMFGCOLOR	"#bbbbbb"
#define SELBGCOLOR	"#eec900"
#define SELFGCOLOR	"#000000"

#define MODKEY		Mod1Mask
#define NMASTER		1	/* clients in master area */
#define SNAP		5	/* pixel */

#define KEYS \
static Key key[] = { \
	/* modifier		key		function	argument */ \
	{ MODKEY|ShiftMask,	XK_Return,	spawn,		"exec urxvt" }, \
	{ MODKEY,		XK_F1,		toggleview,	"" }, \
	{ MODKEY,		XK_F2,		toggleview,	"" }, \
	{ MODKEY,		XK_F3,		floattoggle,	"" }, \
	{ MODKEY|ShiftMask,	XK_F4,		spawn,		"sudo /sbin/shutdown -h now"  }, \
	{ MODKEY,		XK_Tab,		focusnext,	"" }, \
	{ MODKEY,		XK_asciicircum,		spawn, "dmenu_run -fn '"FONT"' "\
	         "-nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'"  }, \
	{ MODKEY,		XK_1, 		zoom,		"" }, \
	{ MODKEY, 		XK_2,		killclient,	"" }, \
	{ MODKEY,		XK_3,		toggletag,	"" }, \
	{ MODKEY|ShiftMask,	XK_q,		quit,		"" }, \
	{ MODKEY|ShiftMask,	XK_x,		spawn,		"exec slock" }, \
	{ MODKEY,		XK_space,	togglemode,	"" }, \
	{ MODKEY|ShiftMask,	XK_space,	togglefloat,	"" }, \
	{ MODKEY,		XK_plus,	incnmaster,	"" }, \
	{ MODKEY,		XK_minus,	decnmaster,	"" }, \
};

/* 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, tag (1=tag/0=untag/-1=curr), isfloat */ \
	{ "URxvt", NULL, NULL,     0, False }, \
	{ "MPlayer", NULL, NULL,  -1, True }, \
	{ "sxiv", NULL, NULL,     -1, False }, \
	{  NULL, NULL, "qiv",     -1, False }, \
	{ "Gimp", NULL, NULL,      1, True }, \
	{ "", "", "",              1, False }, \
};