polytreewm/config.def.h

111 lines
6.2 KiB
C
Raw Normal View History

2007-05-30 06:19:28 -04:00
/* See LICENSE file for copyright and license details. */
/* appearance */
2015-11-08 16:48:43 -05:00
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
static const char *fonts[] = { "monospace:size=10" };
static const char dmenufont[] = "monospace:size=10";
static const char col_gray1[] = "#222222";
static const char col_gray2[] = "#444444";
static const char col_gray3[] = "#bbbbbb";
static const char col_gray4[] = "#eeeeee";
static const char col_cyan[] = "#005577";
static const char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
2021-11-12 18:15:35 -05:00
[SchemeSel] = { col_gray4, col_cyan, "#d9b01c" },
};
static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */
2021-11-12 04:00:35 -05:00
static const unsigned int systrayonleft = 1; /* 0: systray in the right corner, >0: systray on left of status text */
static const unsigned int systrayspacing = 2; /* systray spacing */
static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/
static const int showsystray = 1; /* 0 means no systray */
static const Rule rules[] = {
2012-01-22 14:23:49 -05:00
/* xprop(1):
* WM_CLASS(STRING) = instance, class
* WM_NAME(STRING) = title
*/
/* class instance title tags mask isfloating monitor */
2015-11-08 16:48:43 -05:00
{ "Gimp", NULL, NULL, 0, 1, -1 },
};
2007-02-19 12:19:43 -05:00
/* layout(s) */
2015-11-08 16:48:43 -05:00
static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
static const Layout layouts[] = {
2021-11-14 17:55:59 -05:00
/* symbol function, arrange function */
{ layouts_symbol_monocle, monocle }, /* first entry is default */
{ layouts_symbol_floating, NULL }, /* no layout function means floating behavior */
{ layouts_symbol_tile, tile },
{ layouts_symbol_centeredmaster, centeredmaster },
2007-02-19 12:19:43 -05:00
};
/* key definitions */
2021-11-12 07:20:28 -05:00
#define MODKEY Mod4Mask
#define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
2008-06-11 04:12:06 -04:00
static Key keys[] = {
2008-05-17 09:04:27 -04:00
/* modifier key function argument */
{ MODKEY, XK_n, nametag, {0} },
{ MODKEY, XK_slash, spawn, {.v = "menu" } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = "term" } },
{ MODKEY|ShiftMask, XK_f, spawn, {.v = "firefox" } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
2011-10-25 15:40:46 -04:00
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
{ MODKEY|ShiftMask, XK_i, resetnmaster, {.i = 1 } },
2011-10-25 15:40:46 -04:00
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
{ MODKEY|ShiftMask, XK_d, resetnmaster, {.i = 0 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } },
{ MODKEY|ShiftMask, XK_k, movestack, {.i = -1 } },
2021-11-13 20:27:03 -05:00
{ MODKEY|ShiftMask, XK_h, viewrel, {.i = -1 } },
{ MODKEY|ShiftMask, XK_l, viewrel, {.i = +1 } },
{ MODKEY, XK_Return, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_x, killclient, {0} },
2021-11-13 19:37:13 -05:00
{ MODKEY, XK_m, setlayout, {.v = &layouts[0]} },
2008-06-19 06:38:53 -04:00
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
2021-11-13 19:37:13 -05:00
{ MODKEY, XK_t, setlayout, {.v = &layouts[2]} },
{ MODKEY, XK_u, setlayout, {.v = &layouts[3]} },
2008-06-19 06:38:53 -04:00
{ MODKEY, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
2008-06-11 04:12:06 -04:00
{ MODKEY, XK_0, view, {.ui = ~0 } },
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
{ MODKEY, XK_period, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_q, quit, {0} },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)
TAGKEYS( XK_4, 3)
TAGKEYS( XK_5, 4)
TAGKEYS( XK_6, 5)
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
};
/* button definitions */
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static Button buttons[] = {
/* click event mask button function argument */
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
2008-06-24 07:40:48 -04:00
{ ClkTagBar, 0, Button1, view, {0} },
{ ClkTagBar, 0, Button3, toggleview, {0} },
{ ClkTagBar, MODKEY, Button1, tag, {0} },
2008-06-20 11:52:07 -04:00
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
};