2007-05-30 06:19:28 -04:00
|
|
|
/* See LICENSE file for copyright and license details. */
|
2006-08-02 10:46:59 -04:00
|
|
|
|
2021-11-15 16:27:09 -05:00
|
|
|
static const char wm_name[] = "PolytreeWM";
|
|
|
|
|
2007-02-21 05:30:52 -05:00
|
|
|
/* 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 */
|
2016-05-22 16:33:56 -04:00
|
|
|
static const char *fonts[] = { "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";
|
2016-12-05 04:01:33 -05:00
|
|
|
static const char *colors[][3] = {
|
2016-06-28 12:04:56 -04:00
|
|
|
/* fg bg border */
|
|
|
|
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
|
2021-11-12 18:15:35 -05:00
|
|
|
[SchemeSel] = { col_gray4, col_cyan, "#d9b01c" },
|
2016-05-22 16:33:56 -04:00
|
|
|
};
|
2009-06-20 10:10:04 -04:00
|
|
|
|
2021-11-12 03:49:08 -05:00
|
|
|
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 */
|
2021-11-12 03:49:08 -05:00
|
|
|
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 */
|
|
|
|
|
2009-07-08 13:59:20 -04:00
|
|
|
static const Rule rules[] = {
|
2012-01-22 14:23:49 -05:00
|
|
|
/* xprop(1):
|
|
|
|
* WM_CLASS(STRING) = instance, class
|
|
|
|
* WM_NAME(STRING) = title
|
|
|
|
*/
|
2021-11-15 18:28:25 -05:00
|
|
|
/* class, instance, title, tags mask, isfloating, isterminal, noswallow, monitor */
|
|
|
|
{ "ptterm", NULL, NULL, 0, 0, 1, 0, -1 },
|
|
|
|
{ NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, // xev
|
2007-02-21 05:30:52 -05:00
|
|
|
};
|
2007-02-19 12:19:43 -05:00
|
|
|
|
2007-02-21 05:30:52 -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] */
|
2008-05-19 07:34:54 -04:00
|
|
|
|
2009-07-08 13:59:20 -04:00
|
|
|
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 },
|
2021-11-15 22:08:39 -05:00
|
|
|
{ layouts_symbol_horizontile, horizontile },
|
2021-11-14 17:55:59 -05:00
|
|
|
{ layouts_symbol_centeredmaster, centeredmaster },
|
2007-02-19 12:19:43 -05:00
|
|
|
};
|
|
|
|
|
2007-02-21 05:30:52 -05:00
|
|
|
/* key definitions */
|
2021-11-12 07:20:28 -05:00
|
|
|
#define MODKEY Mod4Mask
|
2008-05-26 04:39:57 -04:00
|
|
|
#define TAGKEYS(KEY,TAG) \
|
2008-06-11 15:41:28 -04:00
|
|
|
{ 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-05-26 04:39:57 -04:00
|
|
|
|
2008-06-11 04:12:06 -04:00
|
|
|
static Key keys[] = {
|
2008-05-17 09:04:27 -04:00
|
|
|
/* modifier key function argument */
|
2021-11-13 18:20:46 -05:00
|
|
|
{ MODKEY, XK_n, nametag, {0} },
|
2021-11-14 15:12:55 -05:00
|
|
|
{ MODKEY, XK_slash, spawn, {.v = "menu" } },
|
2021-11-15 13:15:19 -05:00
|
|
|
{ MODKEY|ShiftMask, XK_slash, spawn, {.v = "term" } },
|
2021-11-14 15:12:55 -05:00
|
|
|
{ MODKEY|ShiftMask, XK_f, spawn, {.v = "firefox" } },
|
2008-06-11 15:41:28 -04:00
|
|
|
{ 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 } },
|
2021-11-13 16:36:36 -05:00
|
|
|
{ MODKEY|ShiftMask, XK_i, resetnmaster, {.i = 1 } },
|
2011-10-25 15:40:46 -04:00
|
|
|
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
|
2021-11-13 16:26:50 -05:00
|
|
|
{ MODKEY|ShiftMask, XK_d, resetnmaster, {.i = 0 } },
|
2008-06-11 15:41:28 -04:00
|
|
|
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
|
|
|
|
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
|
2021-11-12 04:29:24 -05:00
|
|
|
{ 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 } },
|
2008-06-11 15:41:28 -04:00
|
|
|
{ MODKEY, XK_Return, zoom, {0} },
|
|
|
|
{ MODKEY, XK_Tab, view, {0} },
|
2021-11-14 15:34:30 -05:00
|
|
|
{ MODKEY|ShiftMask, XK_x, killclient, {0} },
|
2021-11-15 22:08:39 -05:00
|
|
|
{ MODKEY, XK_m, setlayout, {.v = &layouts[0]} }, // Monocle
|
|
|
|
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, // Floating
|
|
|
|
{ MODKEY, XK_t, setlayout, {.v = &layouts[2]} }, // Tile
|
|
|
|
{ MODKEY|ShiftMask, XK_t, setlayout, {.v = &layouts[3]} }, // Horizontile
|
|
|
|
{ MODKEY, XK_u, setlayout, {.v = &layouts[4]} }, // Centeredmaster
|
2008-06-19 06:38:53 -04:00
|
|
|
{ MODKEY, XK_space, setlayout, {0} },
|
2008-06-11 15:41:28 -04:00
|
|
|
{ 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 } },
|
2009-07-02 15:37:26 -04:00
|
|
|
{ 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 } },
|
2021-11-15 23:19:29 -05:00
|
|
|
{ MODKEY|ControlMask|ShiftMask, XK_q, quit, {0} },
|
2008-06-11 15:41:28 -04:00
|
|
|
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)
|
2021-11-15 00:50:02 -05:00
|
|
|
{ MODKEY|Mod1Mask, XK_b, configborder, {.i = -1 } },
|
|
|
|
{ MODKEY|Mod1Mask|ShiftMask, XK_b, configborder, {.i = +1 } },
|
|
|
|
{ MODKEY|Mod1Mask, XK_g, configgap, {.i = -1 } },
|
|
|
|
{ MODKEY|Mod1Mask|ShiftMask, XK_g, configgap, {.i = +1 } },
|
2006-08-02 10:46:59 -04:00
|
|
|
};
|
2008-06-11 15:41:28 -04:00
|
|
|
|
|
|
|
/* button definitions */
|
2018-05-25 00:56:36 -04:00
|
|
|
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
|
2008-06-11 15:41:28 -04:00
|
|
|
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} },
|
2008-06-11 15:41:28 -04:00
|
|
|
};
|