2019-09-04 22:16:39 +00:00
|
|
|
/* See LICENSE file for copyright and license details. */
|
|
|
|
|
|
|
|
/* appearance */
|
2019-09-15 22:32:28 +00:00
|
|
|
static const unsigned int borderpx = 1; /* border pixel of windows */
|
|
|
|
static const unsigned int snap = 32; /* snap pixel */
|
2019-09-08 22:18:47 +00:00
|
|
|
#if VANITYGAPS_PATCH
|
2019-09-15 22:32:28 +00:00
|
|
|
static const unsigned int gappih = 20; /* horiz inner gap between windows */
|
|
|
|
static const unsigned int gappiv = 10; /* vert inner gap between windows */
|
2019-10-06 22:46:23 +00:00
|
|
|
static const unsigned int gappoh = 10; /* horiz outer gap between windows and screen edge */
|
|
|
|
static const unsigned int gappov = 30; /* vert outer gap between windows and screen edge */
|
2019-09-15 22:32:28 +00:00
|
|
|
static const int smartgaps = 0; /* 1 means no outer gap when there is only one window */
|
2019-09-08 22:18:47 +00:00
|
|
|
#endif // VANITYGAPS_PATCH
|
2019-10-01 22:03:21 +00:00
|
|
|
#if HOLDBAR_PATCH
|
|
|
|
static const int showbar = 0; /* 0 means no bar */
|
|
|
|
#else
|
2019-09-15 22:32:28 +00:00
|
|
|
static const int showbar = 1; /* 0 means no bar */
|
2019-10-01 22:03:21 +00:00
|
|
|
#endif // HOLDBAR_PATCH
|
2019-09-15 22:32:28 +00:00
|
|
|
static const int topbar = 1; /* 0 means bottom bar */
|
2020-01-24 09:47:13 +00:00
|
|
|
#if BARPADDING_PATCH
|
|
|
|
static const int vertpad = 10; /* vertical padding of bar */
|
|
|
|
static const int sidepad = 10; /* horizontal padding of bar */
|
|
|
|
#endif // BARPADDING_PATCH
|
2019-09-15 22:32:28 +00:00
|
|
|
#if FOCUSONCLICK_PATCH
|
|
|
|
static const int focusonwheel = 0;
|
|
|
|
#endif // FOCUSONCLICK_PATCH
|
2019-09-07 21:29:37 +00:00
|
|
|
#if STATUSPADDING_PATCH
|
2019-09-15 22:32:28 +00:00
|
|
|
static const int horizpadbar = 2; /* horizontal padding for statusbar */
|
|
|
|
static const int vertpadbar = 0; /* vertical padding for statusbar */
|
2019-09-07 21:29:37 +00:00
|
|
|
#endif // STATUSPADDING_PATCH
|
2019-09-05 20:10:00 +00:00
|
|
|
#if SYSTRAY_PATCH
|
|
|
|
static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */
|
|
|
|
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 */
|
|
|
|
#endif // SYSTRAY_PATCH
|
2019-10-03 20:58:58 +00:00
|
|
|
#if ONLYQUITONEMPTY_PATCH
|
|
|
|
static const int quit_empty_window_count = 2; /* only allow dwm to quit if no windows are open, value here represents number of deamons */
|
|
|
|
#endif // ONLYQUITONEMPTY_PATCH
|
2019-10-24 05:35:00 +00:00
|
|
|
#if EXTRABAR_PATCH
|
|
|
|
static const char statussep = ';'; /* separator between status bars */
|
|
|
|
#endif // EXTRABAR_PATCH
|
2019-09-15 22:32:28 +00:00
|
|
|
static const char *fonts[] = { "monospace:size=10" };
|
|
|
|
static const char dmenufont[] = "monospace:size=10";
|
2019-09-15 20:45:22 +00:00
|
|
|
|
|
|
|
static char normfgcolor[] = "#bbbbbb";
|
|
|
|
static char normbgcolor[] = "#222222";
|
2020-02-11 17:31:11 +00:00
|
|
|
#if !VTCOLORS_PATCH
|
2019-09-15 20:45:22 +00:00
|
|
|
static char normbordercolor[] = "#444444";
|
|
|
|
#if FLOAT_BORDER_COLOR_PATCH
|
2019-09-15 21:33:43 +00:00
|
|
|
static char normfloatcolor[] = "#db8fd9";
|
2019-09-15 20:45:22 +00:00
|
|
|
#endif // FLOAT_BORDER_COLOR_PATCH
|
2020-02-11 17:31:11 +00:00
|
|
|
#endif // !VTCOLORS_PATCH
|
2019-09-15 20:45:22 +00:00
|
|
|
|
|
|
|
static char selfgcolor[] = "#eeeeee";
|
|
|
|
static char selbgcolor[] = "#005577";
|
2020-02-11 17:31:11 +00:00
|
|
|
#if !VTCOLORS_PATCH
|
2019-09-15 20:45:22 +00:00
|
|
|
static char selbordercolor[] = "#005577";
|
|
|
|
#if FLOAT_BORDER_COLOR_PATCH
|
2019-09-15 21:33:43 +00:00
|
|
|
static char selfloatcolor[] = "#005577";
|
2019-09-15 20:45:22 +00:00
|
|
|
#endif // FLOAT_BORDER_COLOR_PATCH
|
|
|
|
|
2019-10-06 22:46:23 +00:00
|
|
|
#if STATUSCOLORS_PATCH
|
|
|
|
static char warnfgcolor[] = "#000000";
|
|
|
|
static char warnbgcolor[] = "#ffff00";
|
|
|
|
static char warnbordercolor[] = "#ff0000";
|
|
|
|
#if FLOAT_BORDER_COLOR_PATCH
|
|
|
|
static char warnfloatcolor[] = "#ffffff";
|
|
|
|
#endif // FLOAT_BORDER_COLOR_PATCH
|
|
|
|
#endif // STATUSCOLORS_PATCH
|
|
|
|
|
|
|
|
#if URGENTBORDER_PATCH || STATUSCOLORS_PATCH
|
2019-09-15 22:13:03 +00:00
|
|
|
static char urgfgcolor[] = "#000000";
|
|
|
|
static char urgbgcolor[] = "#000000";
|
|
|
|
static char urgbordercolor[] = "#ff0000"; // NB: patch only works with border color for now
|
|
|
|
#if FLOAT_BORDER_COLOR_PATCH
|
|
|
|
static char urgfloatcolor[] = "#000000";
|
|
|
|
#endif // FLOAT_BORDER_COLOR_PATCH
|
2019-10-06 22:46:23 +00:00
|
|
|
#endif // URGENTBORDER_PATCH // STATUSCOLORS_PATCH
|
2019-09-15 22:13:03 +00:00
|
|
|
|
2019-09-15 20:45:22 +00:00
|
|
|
#if AWESOMEBAR_PATCH
|
|
|
|
static char hidfgcolor[] = "#005577";
|
|
|
|
static char hidbgcolor[] = "#222222";
|
|
|
|
static char hidbordercolor[] = "#005577";
|
|
|
|
#if FLOAT_BORDER_COLOR_PATCH
|
2019-09-15 21:33:43 +00:00
|
|
|
static char hidfloatcolor[] = "#f76e0c";
|
2019-09-15 20:45:22 +00:00
|
|
|
#endif // FLOAT_BORDER_COLOR_PATCH
|
|
|
|
#endif // AWESOMEBAR_PATCH
|
|
|
|
|
|
|
|
#if TITLECOLOR_PATCH
|
|
|
|
static char titlefgcolor[] = "#eeeeee";
|
|
|
|
static char titlebgcolor[] = "#005577";
|
|
|
|
static char titlebordercolor[] = "#005577";
|
|
|
|
#if FLOAT_BORDER_COLOR_PATCH
|
2019-09-15 21:33:43 +00:00
|
|
|
static char titlefloatcolor[] = "#005577";
|
2019-09-15 20:45:22 +00:00
|
|
|
#endif // FLOAT_BORDER_COLOR_PATCH
|
|
|
|
#endif // TITLECOLOR_PATCH
|
2020-02-11 17:31:11 +00:00
|
|
|
#endif // VTCOLORS_PATCH
|
2019-09-15 20:45:22 +00:00
|
|
|
|
2019-09-04 22:16:39 +00:00
|
|
|
#if ALPHA_PATCH
|
|
|
|
static const unsigned int baralpha = 0xd0;
|
|
|
|
static const unsigned int borderalpha = OPAQUE;
|
2019-09-10 22:51:37 +00:00
|
|
|
static const unsigned int alphas[][3] = {
|
2019-09-13 21:56:05 +00:00
|
|
|
/* fg bg border */
|
2020-02-11 17:31:11 +00:00
|
|
|
[SchemeNorm] = { OPAQUE, baralpha, borderalpha },
|
|
|
|
[SchemeSel] = { OPAQUE, baralpha, borderalpha },
|
2019-10-06 22:46:23 +00:00
|
|
|
#if STATUSCOLORS_PATCH
|
2020-02-11 17:31:11 +00:00
|
|
|
[SchemeWarn] = { OPAQUE, baralpha, borderalpha },
|
2019-10-06 22:46:23 +00:00
|
|
|
#endif // STATUSCOLORS_PATCH
|
|
|
|
#if URGENTBORDER_PATCH || STATUSCOLORS_PATCH
|
2020-02-11 17:31:11 +00:00
|
|
|
[SchemeUrg] = { OPAQUE, baralpha, borderalpha },
|
2019-10-06 22:46:23 +00:00
|
|
|
#endif // URGENTBORDER_PATCH / STATUSCOLORS_PATCH
|
2019-09-15 20:45:22 +00:00
|
|
|
#if AWESOMEBAR_PATCH
|
2020-02-11 17:31:11 +00:00
|
|
|
[SchemeHid] = { OPAQUE, baralpha, borderalpha },
|
2019-09-10 06:27:00 +00:00
|
|
|
#endif // AWESOMEBAR_PATCH
|
2020-02-11 17:31:11 +00:00
|
|
|
#if VTCOLORS_PATCH
|
|
|
|
[SchemeTagsNorm] = { OPAQUE, baralpha, borderalpha },
|
|
|
|
[SchemeTagsSel] = { OPAQUE, baralpha, borderalpha },
|
|
|
|
[SchemeTitleNorm] = { OPAQUE, baralpha, borderalpha },
|
|
|
|
[SchemeTitleSel] = { OPAQUE, baralpha, borderalpha },
|
|
|
|
[SchemeStatus] = { OPAQUE, baralpha, borderalpha },
|
|
|
|
#elif TITLECOLOR_PATCH
|
|
|
|
[SchemeTitle] = { OPAQUE, baralpha, borderalpha },
|
|
|
|
#endif // VTCOLORS_PATCH / TITLECOLOR_PATCH
|
2019-09-04 22:16:39 +00:00
|
|
|
};
|
|
|
|
#endif // ALPHA_PATCH
|
2020-02-11 17:31:11 +00:00
|
|
|
#if VTCOLORS_PATCH && FLOAT_BORDER_COLOR_PATCH
|
|
|
|
static const char title_bg_dark[] = "#303030";
|
|
|
|
static const char title_bg_light[] = "#fdfdfd";
|
|
|
|
static const int color_ptrs[][4] = {
|
|
|
|
/* fg bg border float */
|
|
|
|
[SchemeNorm] = { -1, -1, 5, 12 },
|
|
|
|
[SchemeSel] = { -1, -1, 11, 13 },
|
|
|
|
#if STATUSCOLORS_PATCH
|
|
|
|
[SchemeWarn] = { -1, 1, 1, 14 },
|
|
|
|
#endif // STATUSCOLORS_PATCH
|
|
|
|
#if URGENTBORDER_PATCH || STATUSCOLORS_PATCH
|
|
|
|
[SchemeUrg] = { 7, 9, 9, 15 },
|
|
|
|
#endif // URGENTBORDER_PATCH || STATUSCOLORS_PATCH
|
|
|
|
#if AWESOMEBAR_PATCH
|
|
|
|
[SchemeHid] = { 5, 0, 0, -1 },
|
|
|
|
#endif // AWESOMEBAR_PATCH
|
|
|
|
[SchemeTagsNorm] = { 2, 0, 0, -1 },
|
|
|
|
[SchemeTagsSel] = { 6, 5, 5, -1 },
|
|
|
|
[SchemeTitleNorm] = { 6, -1, -1, -1 },
|
|
|
|
[SchemeTitleSel] = { 6, -1, -1, -1 },
|
|
|
|
[SchemeStatus] = { 2, 0, 0, -1 },
|
|
|
|
};
|
|
|
|
static char colors[][4][8] = {
|
|
|
|
/* fg bg border float */
|
|
|
|
[SchemeNorm] = { "#000000", "#000000", "#000000", "#000000" },
|
|
|
|
[SchemeSel] = { "#000000", "#000000", "#000000", "#000000" },
|
|
|
|
#if STATUSCOLORS_PATCH
|
|
|
|
[SchemeWarn] = { "#000000", "#000000", "#000000", "#000000" },
|
|
|
|
#endif // STATUSCOLORS_PATCH
|
|
|
|
#if URGENTBORDER_PATCH || STATUSCOLORS_PATCH
|
|
|
|
[SchemeUrg] = { "#000000", "#000000", "#000000", "#000000" },
|
|
|
|
#endif // URGENTBORDER_PATCH || STATUSCOLORS_PATCH
|
|
|
|
#if AWESOMEBAR_PATCH
|
|
|
|
[SchemeHid] = { "#000000", "#000000", "#000000", "#000000" },
|
|
|
|
#endif // AWESOMEBAR_PATCH
|
|
|
|
[SchemeTagsNorm] = { "#000000", "#000000", "#000000", "#000000" },
|
|
|
|
[SchemeTagsSel] = { "#000000", "#000000", "#000000", "#000000" },
|
|
|
|
[SchemeTitleNorm] = { "#000000", "#000000", "#000000", "#000000" },
|
|
|
|
[SchemeTitleSel] = { "#000000", "#000000", "#000000", "#000000" },
|
|
|
|
[SchemeStatus] = { "#000000", "#000000", "#000000", "#000000" },
|
|
|
|
};
|
|
|
|
#elif VTCOLORS_PATCH
|
|
|
|
static const char title_bg_dark[] = "#303030";
|
|
|
|
static const char title_bg_light[] = "#fdfdfd";
|
|
|
|
static const int color_ptrs[][3] = {
|
|
|
|
/* fg bg border */
|
|
|
|
[SchemeNorm] = { -1, -1, 5 },
|
|
|
|
[SchemeSel] = { -1, -1, 11 },
|
|
|
|
#if STATUSCOLORS_PATCH
|
|
|
|
[SchemeWarn] = { -1, 1, 1 },
|
|
|
|
#endif // STATUSCOLORS_PATCH
|
|
|
|
#if URGENTBORDER_PATCH || STATUSCOLORS_PATCH
|
|
|
|
[SchemeUrg] = { 7, 9, 9 },
|
|
|
|
#endif // URGENTBORDER_PATCH || STATUSCOLORS_PATCH
|
|
|
|
#if AWESOMEBAR_PATCH
|
|
|
|
[SchemeHid] = { 5, 0, 0 },
|
|
|
|
#endif // AWESOMEBAR_PATCH
|
|
|
|
[SchemeTagsNorm] = { 2, 0, 0 },
|
|
|
|
[SchemeTagsSel] = { 6, 5, 5 },
|
|
|
|
[SchemeTitleNorm] = { 6, -1, -1 },
|
|
|
|
[SchemeTitleSel] = { 6, -1, -1 },
|
|
|
|
[SchemeStatus] = { 2, 0, 0 },
|
|
|
|
};
|
|
|
|
static char colors[][3][8] = {
|
|
|
|
/* fg bg border */
|
|
|
|
[SchemeNorm] = { "#000000", "#000000", "#000000" },
|
|
|
|
[SchemeSel] = { "#000000", "#000000", "#000000" },
|
|
|
|
#if STATUSCOLORS_PATCH
|
|
|
|
[SchemeWarn] = { "#000000", "#000000", "#000000" },
|
|
|
|
#endif // STATUSCOLORS_PATCH
|
|
|
|
#if URGENTBORDER_PATCH || STATUSCOLORS_PATCH
|
|
|
|
[SchemeUrg] = { "#000000", "#000000", "#000000" },
|
|
|
|
#endif // URGENTBORDER_PATCH || STATUSCOLORS_PATCH
|
|
|
|
#if AWESOMEBAR_PATCH
|
|
|
|
[SchemeHid] = { "#000000", "#000000", "#000000" },
|
|
|
|
#endif // AWESOMEBAR_PATCH
|
|
|
|
[SchemeTagsNorm] = { "#000000", "#000000", "#000000" },
|
|
|
|
[SchemeTagsSel] = { "#000000", "#000000", "#000000" },
|
|
|
|
[SchemeTitleNorm] = { "#000000", "#000000", "#000000" },
|
|
|
|
[SchemeTitleSel] = { "#000000", "#000000", "#000000" },
|
|
|
|
[SchemeStatus] = { "#000000", "#000000", "#000000" },
|
|
|
|
};
|
|
|
|
#elif FLOAT_BORDER_COLOR_PATCH
|
2019-09-15 21:33:43 +00:00
|
|
|
static
|
|
|
|
#if !XRDB_PATCH
|
|
|
|
const
|
|
|
|
#endif // XRDB_PATCH
|
|
|
|
char *colors[][4] = {
|
|
|
|
/* fg bg border float */
|
|
|
|
[SchemeNorm] = { normfgcolor, normbgcolor, normbordercolor, normfloatcolor },
|
|
|
|
[SchemeSel] = { selfgcolor, selbgcolor, selbordercolor, selfloatcolor },
|
2019-10-06 22:46:23 +00:00
|
|
|
#if STATUSCOLORS_PATCH
|
|
|
|
[SchemeWarn] = { warnfgcolor, warnbgcolor, warnbordercolor, warnfloatcolor },
|
|
|
|
#endif // STATUSCOLORS_PATCH
|
|
|
|
#if URGENTBORDER_PATCH || STATUSCOLORS_PATCH
|
2019-09-15 22:13:03 +00:00
|
|
|
[SchemeUrg] = { urgfgcolor, urgbgcolor, urgbordercolor, urgfloatcolor },
|
2019-10-06 22:46:23 +00:00
|
|
|
#endif // URGENTBORDER_PATCH / STATUSCOLORS_PATCH
|
2019-09-10 22:51:37 +00:00
|
|
|
#if AWESOMEBAR_PATCH
|
2019-09-15 21:33:43 +00:00
|
|
|
[SchemeHid] = { hidfgcolor, hidbgcolor, hidbordercolor, hidfloatcolor },
|
2019-09-10 22:51:37 +00:00
|
|
|
#endif // AWESOMEBAR_PATCH
|
2019-09-13 21:56:05 +00:00
|
|
|
#if TITLECOLOR_PATCH
|
2019-09-15 21:33:43 +00:00
|
|
|
[SchemeTitle] = { titlefgcolor, titlebgcolor, titlebordercolor, titlefloatcolor },
|
2019-09-13 21:56:05 +00:00
|
|
|
#endif // TITLECOLOR_PATCH
|
2019-09-10 22:51:37 +00:00
|
|
|
};
|
2020-02-11 17:31:11 +00:00
|
|
|
#else // !VTCOLORS_PATCH && !FLOAT_BORDER_COLOR_PATCH
|
2019-09-15 21:33:43 +00:00
|
|
|
static
|
|
|
|
#if !XRDB_PATCH
|
|
|
|
const
|
|
|
|
#endif // XRDB_PATCH
|
|
|
|
char *colors[][3] = {
|
2019-09-15 20:45:22 +00:00
|
|
|
/* fg bg border */
|
|
|
|
[SchemeNorm] = { normfgcolor, normbgcolor, normbordercolor },
|
|
|
|
[SchemeSel] = { selfgcolor, selbgcolor, selbordercolor },
|
2019-10-06 22:46:23 +00:00
|
|
|
#if STATUSCOLORS_PATCH
|
|
|
|
[SchemeWarn] = { warnfgcolor, warnbgcolor, warnbordercolor },
|
|
|
|
#endif // STATUSCOLORS_PATCH
|
|
|
|
#if URGENTBORDER_PATCH || STATUSCOLORS_PATCH
|
2019-09-15 22:13:03 +00:00
|
|
|
[SchemeUrg] = { urgfgcolor, urgbgcolor, urgbordercolor },
|
2019-10-06 22:46:23 +00:00
|
|
|
#endif // URGENTBORDER_PATCH / STATUSCOLORS_PATCH
|
2019-09-09 22:18:46 +00:00
|
|
|
#if AWESOMEBAR_PATCH
|
2019-09-15 20:45:22 +00:00
|
|
|
[SchemeHid] = { hidfgcolor, hidbgcolor, hidbordercolor },
|
2019-09-09 22:18:46 +00:00
|
|
|
#endif // AWESOMEBAR_PATCH
|
2019-09-13 21:56:05 +00:00
|
|
|
#if TITLECOLOR_PATCH
|
2019-09-15 20:45:22 +00:00
|
|
|
[SchemeTitle] = { titlefgcolor, titlebgcolor, titlebordercolor },
|
2019-09-13 21:56:05 +00:00
|
|
|
#endif // TITLECOLOR_PATCH
|
2019-09-04 22:16:39 +00:00
|
|
|
};
|
2020-02-11 17:31:11 +00:00
|
|
|
#endif // VTCOLORS_PATCH / FLOAT_BORDER_COLOR_PATCH
|
2019-09-04 22:16:39 +00:00
|
|
|
|
|
|
|
/* tagging */
|
2019-09-11 22:48:29 +00:00
|
|
|
#if EWMHTAGS_PATCH
|
|
|
|
static char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
|
|
|
#else
|
2019-09-04 22:16:39 +00:00
|
|
|
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
2019-09-11 22:48:29 +00:00
|
|
|
#endif // EWMHTAGS_PATCH
|
2019-09-09 21:27:10 +00:00
|
|
|
#if ALTERNATIVE_TAGS_PATCH
|
|
|
|
static const char *tagsalt[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
|
|
|
#endif // ALTERNATIVE_TAGS_PATCH
|
2019-09-04 22:16:39 +00:00
|
|
|
|
2019-10-05 21:28:50 +00:00
|
|
|
#if TAGGRID_PATCH
|
|
|
|
/* grid of tags */
|
|
|
|
#define DRAWCLASSICTAGS 1 << 0
|
|
|
|
#define DRAWTAGGRID 1 << 1
|
|
|
|
|
|
|
|
#define SWITCHTAG_UP 1 << 0
|
|
|
|
#define SWITCHTAG_DOWN 1 << 1
|
|
|
|
#define SWITCHTAG_LEFT 1 << 2
|
|
|
|
#define SWITCHTAG_RIGHT 1 << 3
|
|
|
|
#define SWITCHTAG_TOGGLETAG 1 << 4
|
|
|
|
#define SWITCHTAG_TAG 1 << 5
|
|
|
|
#define SWITCHTAG_VIEW 1 << 6
|
|
|
|
#define SWITCHTAG_TOGGLEVIEW 1 << 7
|
|
|
|
|
|
|
|
static const unsigned int drawtagmask = DRAWTAGGRID; /* | DRAWCLASSICTAGS to show classic row of tags */
|
|
|
|
static const int tagrows = 2;
|
|
|
|
#endif // TAGGRID_PATCH
|
|
|
|
|
2019-09-04 22:16:39 +00:00
|
|
|
static const Rule rules[] = {
|
|
|
|
/* xprop(1):
|
|
|
|
* WM_CLASS(STRING) = instance, class
|
|
|
|
* WM_NAME(STRING) = title
|
2019-09-07 21:46:08 +00:00
|
|
|
* WM_WINDOW_ROLE(STRING) = role
|
2019-09-04 22:16:39 +00:00
|
|
|
*/
|
2019-10-22 17:08:00 +00:00
|
|
|
#if WINDOWROLERULE_PATCH && SWITCHTAG_PATCH && CENTER_PATCH && ISPERMANENT_PATCH && SWALLOW_PATCH
|
|
|
|
/* class role instance title tags mask switchtag iscentered isfloating ispermanent isterminal noswallow monitor */
|
|
|
|
{ "Gimp", NULL, NULL, NULL, 0, 1, 0, 1, 0, 0, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, NULL, 1 << 8, 1, 0, 0, 0, 0, 0, -1 }
|
|
|
|
#elif WINDOWROLERULE_PATCH && SWITCHTAG_PATCH && CENTER_PATCH && ISPERMANENT_PATCH && !SWALLOW_PATCH
|
2019-10-22 16:30:00 +00:00
|
|
|
/* class role instance title tags mask switchtag iscentered isfloating ispermanent monitor */
|
|
|
|
{ "Gimp", NULL, NULL, NULL, 0, 1, 0, 1, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, NULL, 1 << 8, 1, 0, 0, 0, -1 },
|
2019-10-22 17:08:00 +00:00
|
|
|
#elif WINDOWROLERULE_PATCH && SWITCHTAG_PATCH && CENTER_PATCH && !ISPERMANENT_PATCH && SWALLOW_PATCH
|
|
|
|
/* class role instance title tags mask switchtag iscentered isfloating isterminal noswallow monitor */
|
|
|
|
{ "Gimp", NULL, NULL, NULL, 0, 1, 0, 1, 0, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, NULL, 1 << 8, 1, 0, 0, 0, 0, -1 },
|
|
|
|
#elif WINDOWROLERULE_PATCH && SWITCHTAG_PATCH && CENTER_PATCH && !ISPERMANENT_PATCH && !SWALLOW_PATCH
|
2019-09-07 22:23:30 +00:00
|
|
|
/* class role instance title tags mask switchtag iscentered isfloating monitor */
|
|
|
|
{ "Gimp", NULL, NULL, NULL, 0, 1, 0, 1, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, NULL, 1 << 8, 1, 0, 0, -1 },
|
2019-10-22 17:08:00 +00:00
|
|
|
#elif WINDOWROLERULE_PATCH && !SWITCHTAG_PATCH && CENTER_PATCH && ISPERMANENT_PATCH && SWALLOW_PATCH
|
|
|
|
/* class role instance title tags mask iscentered isfloating ispermanent isterminal noswallow monitor */
|
|
|
|
{ "Gimp", NULL, NULL, NULL, 0, 0, 1, 0, 0, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, NULL, 1 << 8, 0, 0, 0, 0, 0, -1 },
|
|
|
|
#elif WINDOWROLERULE_PATCH && !SWITCHTAG_PATCH && CENTER_PATCH && ISPERMANENT_PATCH && !SWALLOW_PATCH
|
2019-10-22 16:30:00 +00:00
|
|
|
/* class role instance title tags mask iscentered isfloating ispermanent monitor */
|
|
|
|
{ "Gimp", NULL, NULL, NULL, 0, 0, 1, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, NULL, 1 << 8, 0, 0, 0, -1 },
|
2019-10-22 17:08:00 +00:00
|
|
|
#elif WINDOWROLERULE_PATCH && !SWITCHTAG_PATCH && CENTER_PATCH && !ISPERMANENT_PATCH && SWALLOW_PATCH
|
|
|
|
/* class role instance title tags mask iscentered isfloating isterminal noswallow monitor */
|
|
|
|
{ "Gimp", NULL, NULL, NULL, 0, 0, 1, 0, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, NULL, 1 << 8, 0, 0, 0, 0, -1 },
|
|
|
|
#elif WINDOWROLERULE_PATCH && !SWITCHTAG_PATCH && CENTER_PATCH && !ISPERMANENT_PATCH && !SWALLOW_PATCH
|
2019-09-07 22:23:30 +00:00
|
|
|
/* class role instance title tags mask iscentered isfloating monitor */
|
|
|
|
{ "Gimp", NULL, NULL, NULL, 0, 0, 1, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, NULL, 1 << 8, 0, 0, -1 },
|
2019-10-22 17:08:00 +00:00
|
|
|
#elif WINDOWROLERULE_PATCH && SWITCHTAG_PATCH && !CENTER_PATCH && ISPERMANENT_PATCH && SWALLOW_PATCH
|
|
|
|
/* class role instance title tags mask switchtag isfloating ispermanent isterminal noswallow monitor */
|
|
|
|
{ "Gimp", NULL, NULL, NULL, 0, 1, 1, 0, 0, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, NULL, 1 << 8, 1, 0, 0, 0, 0, -1 },
|
|
|
|
#elif WINDOWROLERULE_PATCH && SWITCHTAG_PATCH && !CENTER_PATCH && ISPERMANENT_PATCH && !SWALLOW_PATCH
|
2019-10-22 16:30:00 +00:00
|
|
|
/* class role instance title tags mask switchtag isfloating ispermanent monitor */
|
|
|
|
{ "Gimp", NULL, NULL, NULL, 0, 1, 1, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, NULL, 1 << 8, 1, 0, 0, -1 },
|
2019-10-22 17:08:00 +00:00
|
|
|
#elif WINDOWROLERULE_PATCH && SWITCHTAG_PATCH && !CENTER_PATCH && !ISPERMANENT_PATCH && SWALLOW_PATCH
|
|
|
|
/* class role instance title tags mask switchtag isfloating isterminal noswallow monitor */
|
|
|
|
{ "Gimp", NULL, NULL, NULL, 0, 1, 1, 0, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, NULL, 1 << 8, 1, 0, 0, 0, -1 },
|
|
|
|
#elif WINDOWROLERULE_PATCH && SWITCHTAG_PATCH && !CENTER_PATCH && !ISPERMANENT_PATCH && !SWALLOW_PATCH
|
2019-09-07 22:23:30 +00:00
|
|
|
/* class role instance title tags mask switchtag isfloating monitor */
|
|
|
|
{ "Gimp", NULL, NULL, NULL, 0, 1, 1, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, NULL, 1 << 8, 1, 0, -1 },
|
2019-10-22 17:08:00 +00:00
|
|
|
#elif !WINDOWROLERULE_PATCH && SWITCHTAG_PATCH && CENTER_PATCH && ISPERMANENT_PATCH && SWALLOW_PATCH
|
|
|
|
/* class instance title tags mask switchtag iscentered isfloating ispermanent isterminal noswallow monitor */
|
|
|
|
{ "Gimp", NULL, NULL, 0, 1, 0, 1, 0, 0, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, 1 << 8, 1, 0, 0, 0, 0, 0, -1 },
|
|
|
|
#elif !WINDOWROLERULE_PATCH && SWITCHTAG_PATCH && CENTER_PATCH && ISPERMANENT_PATCH && !SWALLOW_PATCH
|
2019-10-22 16:30:00 +00:00
|
|
|
/* class instance title tags mask switchtag iscentered isfloating ispermanent monitor */
|
|
|
|
{ "Gimp", NULL, NULL, 0, 1, 0, 1, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, 1 << 8, 1, 0, 0, 0, -1 },
|
2019-10-22 17:08:00 +00:00
|
|
|
#elif !WINDOWROLERULE_PATCH && SWITCHTAG_PATCH && CENTER_PATCH && !ISPERMANENT_PATCH && SWALLOW_PATCH
|
|
|
|
/* class instance title tags mask switchtag iscentered isfloating isterminal noswallow monitor */
|
|
|
|
{ "Gimp", NULL, NULL, 0, 1, 0, 1, 0, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, 1 << 8, 1, 0, 0, 0, 0, -1 },
|
|
|
|
#elif !WINDOWROLERULE_PATCH && SWITCHTAG_PATCH && CENTER_PATCH && !ISPERMANENT_PATCH && !SWALLOW_PATCH
|
2019-09-07 22:23:30 +00:00
|
|
|
/* class instance title tags mask switchtag iscentered isfloating monitor */
|
|
|
|
{ "Gimp", NULL, NULL, 0, 1, 0, 1, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, 1 << 8, 1, 0, 0, -1 },
|
2019-10-22 17:08:00 +00:00
|
|
|
#elif WINDOWROLERULE_PATCH && !SWITCHTAG_PATCH && !CENTER_PATCH && ISPERMANENT_PATCH && SWALLOW_PATCH
|
|
|
|
/* class role instance title tags mask isfloating ispermanent isterminal noswallow monitor */
|
|
|
|
{ "Gimp", NULL, NULL, NULL, 0, 1, 0, 0, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, NULL, 1 << 8, 0, 0, 0, 0, -1 },
|
|
|
|
#elif WINDOWROLERULE_PATCH && !SWITCHTAG_PATCH && !CENTER_PATCH && ISPERMANENT_PATCH && !SWALLOW_PATCH
|
2019-10-22 16:30:00 +00:00
|
|
|
/* class role instance title tags mask isfloating ispermanent monitor */
|
|
|
|
{ "Gimp", NULL, NULL, NULL, 0, 1, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, NULL, 1 << 8, 0, 0, -1 },
|
2019-10-22 17:08:00 +00:00
|
|
|
#elif WINDOWROLERULE_PATCH && !SWITCHTAG_PATCH && !CENTER_PATCH && !ISPERMANENT_PATCH && SWALLOW_PATCH
|
|
|
|
/* class role instance title tags mask isfloating isterminal noswallow monitor */
|
|
|
|
{ "Gimp", NULL, NULL, NULL, 0, 1, 0, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, NULL, 1 << 8, 0, 0, 0, -1 },
|
|
|
|
#elif WINDOWROLERULE_PATCH && !SWITCHTAG_PATCH && !CENTER_PATCH && !ISPERMANENT_PATCH && !SWALLOW_PATCH
|
2019-09-07 22:23:30 +00:00
|
|
|
/* class role instance title tags mask isfloating monitor */
|
|
|
|
{ "Gimp", NULL, NULL, NULL, 0, 1, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, NULL, 1 << 8, 0, -1 },
|
2019-10-22 17:08:00 +00:00
|
|
|
#elif !WINDOWROLERULE_PATCH && SWITCHTAG_PATCH && !CENTER_PATCH && ISPERMANENT_PATCH && SWALLOW_PATCH
|
|
|
|
/* class instance title tags mask switchtag isfloating ispermanent isterminal noswallow monitor */
|
|
|
|
{ "Gimp", NULL, NULL, 0, 1, 1, 0, 0, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, 1 << 8, 1, 0, 0, 0, 0, -1 },
|
|
|
|
#elif !WINDOWROLERULE_PATCH && SWITCHTAG_PATCH && !CENTER_PATCH && ISPERMANENT_PATCH && !SWALLOW_PATCH
|
2019-10-22 16:30:00 +00:00
|
|
|
/* class instance title tags mask switchtag isfloating ispermanent monitor */
|
|
|
|
{ "Gimp", NULL, NULL, 0, 1, 1, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, 1 << 8, 1, 0, 0, -1 },
|
2019-10-22 17:08:00 +00:00
|
|
|
#elif !WINDOWROLERULE_PATCH && SWITCHTAG_PATCH && !CENTER_PATCH && !ISPERMANENT_PATCH && SWALLOW_PATCH
|
|
|
|
/* class instance title tags mask switchtag isfloating isterminal noswallow monitor */
|
|
|
|
{ "Gimp", NULL, NULL, 0, 1, 1, 0, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, 1 << 8, 1, 0, 0, 0, -1 },
|
|
|
|
#elif !WINDOWROLERULE_PATCH && SWITCHTAG_PATCH && !CENTER_PATCH && !ISPERMANENT_PATCH && !SWALLOW_PATCH
|
2019-09-07 22:23:30 +00:00
|
|
|
/* class instance title tags mask switchtag isfloating monitor */
|
|
|
|
{ "Gimp", NULL, NULL, 0, 1, 1, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, 1 << 8, 1, 0, -1 },
|
2019-10-22 17:08:00 +00:00
|
|
|
#elif !WINDOWROLERULE_PATCH && !SWITCHTAG_PATCH && CENTER_PATCH && ISPERMANENT_PATCH && SWALLOW_PATCH
|
|
|
|
/* class instance title tags mask iscentered isfloating ispermanent isterminal noswallow monitor */
|
|
|
|
{ "Gimp", NULL, NULL, 0, 0, 1, 0, 0, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, 1 << 8, 0, 0, 0, 0, 0, -1 },
|
|
|
|
#elif !WINDOWROLERULE_PATCH && !SWITCHTAG_PATCH && CENTER_PATCH && ISPERMANENT_PATCH && !SWALLOW_PATCH
|
2019-10-22 16:30:00 +00:00
|
|
|
/* class instance title tags mask iscentered isfloating ispermanent monitor */
|
|
|
|
{ "Gimp", NULL, NULL, 0, 0, 1, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, 1 << 8, 0, 0, 0, -1 },
|
2019-10-22 17:08:00 +00:00
|
|
|
#elif !WINDOWROLERULE_PATCH && !SWITCHTAG_PATCH && CENTER_PATCH && !ISPERMANENT_PATCH && SWALLOW_PATCH
|
|
|
|
/* class instance title tags mask iscentered isfloating isterminal noswallow monitor */
|
|
|
|
{ "Gimp", NULL, NULL, 0, 0, 1, 0, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, 1 << 8, 0, 0, 0, 0, -1 },
|
|
|
|
#elif !WINDOWROLERULE_PATCH && !SWITCHTAG_PATCH && CENTER_PATCH && !ISPERMANENT_PATCH && !SWALLOW_PATCH
|
2019-09-07 22:23:30 +00:00
|
|
|
/* class instance title tags mask iscentered isfloating monitor */
|
|
|
|
{ "Gimp", NULL, NULL, 0, 0, 1, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, 1 << 8, 0, 0, -1 },
|
2019-10-22 17:08:00 +00:00
|
|
|
#elif !WINDOWROLERULE_PATCH && !SWITCHTAG_PATCH && !CENTER_PATCH && ISPERMANENT_PATCH && SWALLOW_PATCH
|
|
|
|
/* class instance title tags mask isfloating ispermanent isterminal noswallow monitor */
|
|
|
|
{ "Gimp", NULL, NULL, 0, 1, 0, 0, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, 1 << 8, 0, 0, 0, 0, -1 },
|
|
|
|
#elif !WINDOWROLERULE_PATCH && !SWITCHTAG_PATCH && !CENTER_PATCH && ISPERMANENT_PATCH && !SWALLOW_PATCH
|
2019-10-22 16:30:00 +00:00
|
|
|
/* class instance title tags mask isfloating ispermanent monitor */
|
|
|
|
{ "Gimp", NULL, NULL, 0, 1, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, 1 << 8, 0, 0, -1 },
|
2019-10-22 17:08:00 +00:00
|
|
|
#elif !WINDOWROLERULE_PATCH && !SWITCHTAG_PATCH && !CENTER_PATCH && !ISPERMANENT_PATCH && SWALLOW_PATCH
|
|
|
|
/* class instance title tags mask isfloating isterminal noswallow monitor */
|
|
|
|
{ "Gimp", NULL, NULL, 0, 1, 0, 0, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, 1 << 8, 0, 0, 0, -1 },
|
2019-09-07 21:46:08 +00:00
|
|
|
#else
|
2019-09-04 22:16:39 +00:00
|
|
|
/* class instance title tags mask isfloating monitor */
|
|
|
|
{ "Gimp", NULL, NULL, 0, 1, -1 },
|
|
|
|
{ "Firefox", NULL, NULL, 1 << 8, 0, -1 },
|
2019-10-22 16:30:00 +00:00
|
|
|
#endif
|
2019-09-04 22:16:39 +00:00
|
|
|
};
|
|
|
|
|
2019-09-11 06:28:00 +00:00
|
|
|
#if MONITOR_RULES_PATCH
|
2019-09-30 21:52:51 +00:00
|
|
|
#if PERTAG_PATCH
|
2019-09-11 06:28:00 +00:00
|
|
|
static const MonitorRule monrules[] = {
|
2019-09-30 21:52:51 +00:00
|
|
|
/* monitor tag layout mfact */
|
|
|
|
{ 1, -1, 2, -1 }, // use a different layout for the second monitor
|
|
|
|
{ -1, -1, 0, -1 }, // default
|
2019-09-11 06:28:00 +00:00
|
|
|
};
|
2019-09-30 21:52:51 +00:00
|
|
|
#else
|
|
|
|
static const MonitorRule monrules[] = {
|
|
|
|
/* monitor layout mfact */
|
|
|
|
{ 1, 2, -1 }, // use a different layout for the second monitor
|
|
|
|
{ -1, 0, -1 }, // default
|
2019-09-09 20:25:19 +00:00
|
|
|
};
|
2019-09-30 21:52:51 +00:00
|
|
|
#endif // PERTAG_PATCH
|
2019-09-11 06:28:00 +00:00
|
|
|
#endif // MONITOR_RULES_PATCH
|
|
|
|
|
2020-02-02 10:40:24 +00:00
|
|
|
#if DWMC_PATCH
|
|
|
|
/* signal definitions */
|
|
|
|
/* signum must be greater than 0 */
|
|
|
|
/* trigger signals using `xsetroot -name "fsignal:<signame> [<type> <value>]"` */
|
|
|
|
static Signal signals[] = {
|
|
|
|
/* signum function */
|
|
|
|
{ "focusstack", focusstack },
|
|
|
|
{ "setmfact", setmfact },
|
|
|
|
{ "togglebar", togglebar },
|
|
|
|
{ "incnmaster", incnmaster },
|
|
|
|
{ "togglefloating", togglefloating },
|
|
|
|
{ "focusmon", focusmon },
|
|
|
|
{ "tagmon", tagmon },
|
|
|
|
{ "zoom", zoom },
|
|
|
|
{ "view", view },
|
|
|
|
{ "viewall", viewallex },
|
|
|
|
{ "viewex", viewex },
|
|
|
|
{ "toggleview", view },
|
|
|
|
{ "toggleviewex", toggleviewex },
|
|
|
|
{ "tag", tag },
|
|
|
|
{ "tagall", tagallex },
|
|
|
|
{ "tagex", tagex },
|
|
|
|
{ "toggletag", tag },
|
|
|
|
{ "toggletagex", toggletagex },
|
|
|
|
{ "killclient", killclient },
|
|
|
|
{ "quit", quit },
|
|
|
|
{ "setlayout", setlayout },
|
|
|
|
{ "setlayoutex", setlayoutex },
|
|
|
|
};
|
|
|
|
#elif FSIGNAL_PATCH
|
|
|
|
/* signal definitions */
|
|
|
|
/* signum must be greater than 0 */
|
|
|
|
/* trigger signals using `xsetroot -name "fsignal:<signum>"` */
|
|
|
|
static Signal signals[] = {
|
|
|
|
/* signum function argument */
|
|
|
|
{ 1, setlayout, {.v = 0} },
|
|
|
|
};
|
|
|
|
#endif // DWMC_PATCH
|
|
|
|
|
2019-09-11 06:28:00 +00:00
|
|
|
/* layout(s) */
|
|
|
|
static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
|
|
|
|
static const int nmaster = 1; /* number of clients in master area */
|
2019-09-30 21:52:51 +00:00
|
|
|
#if FLEXTILE_DELUXE_LAYOUT
|
|
|
|
static const int nstack = 0; /* number of clients in primary stack area */
|
|
|
|
#endif // FLEXTILE_DELUXE_LAYOUT
|
2019-09-11 06:28:00 +00:00
|
|
|
static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
|
2019-09-09 20:25:19 +00:00
|
|
|
|
2019-09-09 17:49:41 +00:00
|
|
|
#if NROWGRID_LAYOUT
|
|
|
|
#define FORCE_VSPLIT 1
|
|
|
|
#endif
|
|
|
|
|
2019-10-03 20:58:58 +00:00
|
|
|
/* Position of the monocle layout in the layouts variable, used by warp and fullscreen patches */
|
|
|
|
#define MONOCLE_LAYOUT_POS 2
|
|
|
|
|
2019-09-30 21:52:51 +00:00
|
|
|
#if FLEXTILE_DELUXE_LAYOUT
|
|
|
|
static const Layout layouts[] = {
|
|
|
|
/* symbol arrange function, { nmaster, nstack, layout, master axis, stack axis, secondary stack axis } */
|
|
|
|
{ "[]=", flextile, { -1, -1, SPLIT_VERTICAL, TOP_TO_BOTTOM, TOP_TO_BOTTOM, 0, NULL } }, // default tile layout
|
|
|
|
{ "><>", NULL, {0} }, /* no layout function means floating behavior */
|
|
|
|
{ "[M]", flextile, { -1, -1, NO_SPLIT, MONOCLE, 0, 0, NULL } }, // monocle
|
2019-10-08 20:57:21 +00:00
|
|
|
{ "|||", flextile, { -1, -1, SPLIT_VERTICAL, LEFT_TO_RIGHT, TOP_TO_BOTTOM, 0, NULL } }, // columns (col) layout
|
2019-09-30 21:52:51 +00:00
|
|
|
{ ">M>", flextile, { -1, -1, FLOATING_MASTER, LEFT_TO_RIGHT, LEFT_TO_RIGHT, 0, NULL } }, // floating master
|
|
|
|
{ "[D]", flextile, { -1, -1, SPLIT_VERTICAL, TOP_TO_BOTTOM, MONOCLE, 0, NULL } }, // deck
|
|
|
|
{ "TTT", flextile, { -1, -1, SPLIT_HORIZONTAL, LEFT_TO_RIGHT, LEFT_TO_RIGHT, 0, NULL } }, // bstack
|
|
|
|
{ "===", flextile, { -1, -1, SPLIT_HORIZONTAL, LEFT_TO_RIGHT, TOP_TO_BOTTOM, 0, NULL } }, // bstackhoriz
|
|
|
|
{ "|M|", flextile, { -1, -1, SPLIT_HORIZONTAL, LEFT_TO_RIGHT, TOP_TO_BOTTOM, 0, monoclesymbols } }, // centeredmaster
|
|
|
|
{ ":::", flextile, { -1, -1, NO_SPLIT, GAPPLESSGRID, 0, 0, NULL } }, // gappless grid
|
|
|
|
{ "[\\]", flextile, { -1, -1, NO_SPLIT, DWINDLE, 0, 0, NULL } }, // fibonacci dwindle
|
|
|
|
{ "(@)", flextile, { -1, -1, NO_SPLIT, SPIRAL, 0, 0, NULL } }, // fibonacci spiral
|
2019-10-07 22:54:06 +00:00
|
|
|
#if TILE_LAYOUT
|
|
|
|
{ "[]=", tile, {0} },
|
|
|
|
#endif
|
|
|
|
#if MONOCLE_LAYOUT
|
|
|
|
{ "[M]", monocle, {0} },
|
|
|
|
#endif
|
|
|
|
#if BSTACK_LAYOUT
|
|
|
|
{ "TTT", bstack, {0} },
|
|
|
|
#endif
|
|
|
|
#if BSTACKHORIZ_LAYOUT
|
|
|
|
{ "===", bstackhoriz, {0} },
|
|
|
|
#endif
|
|
|
|
#if CENTEREDMASTER_LAYOUT
|
|
|
|
{ "|M|", centeredmaster, {0} },
|
|
|
|
#endif
|
|
|
|
#if CENTEREDFLOATINGMASTER_LAYOUT
|
|
|
|
{ ">M>", centeredfloatingmaster, {0} },
|
|
|
|
#endif
|
2019-10-08 20:57:21 +00:00
|
|
|
#if COLUMNS_LAYOUT
|
|
|
|
{ "|||", col, {0} },
|
|
|
|
#endif
|
2019-10-07 22:54:06 +00:00
|
|
|
#if DECK_LAYOUT
|
|
|
|
{ "[D]", deck, {0} },
|
|
|
|
#endif
|
|
|
|
#if FIBONACCI_SPIRAL_LAYOUT
|
|
|
|
{ "(@)", spiral, {0} },
|
|
|
|
#endif
|
|
|
|
#if FIBONACCI_DWINDLE_LAYOUT
|
|
|
|
{ "[\\]", dwindle, {0} },
|
|
|
|
#endif
|
|
|
|
#if GRIDMODE_LAYOUT
|
|
|
|
{ "HHH", grid, {0} },
|
|
|
|
#endif
|
|
|
|
#if HORIZGRID_LAYOUT
|
|
|
|
{ "---", horizgrid, {0} },
|
|
|
|
#endif
|
|
|
|
#if GAPPLESSGRID_LAYOUT
|
|
|
|
{ ":::", gaplessgrid, {0} },
|
|
|
|
#endif
|
|
|
|
#if NROWGRID_LAYOUT
|
|
|
|
{ "###", nrowgrid, {0} },
|
|
|
|
#endif
|
2019-09-30 21:52:51 +00:00
|
|
|
#if CYCLELAYOUTS_PATCH
|
|
|
|
{ NULL, NULL, {0} },
|
|
|
|
#endif
|
|
|
|
};
|
|
|
|
#else
|
2019-09-04 22:16:39 +00:00
|
|
|
static const Layout layouts[] = {
|
|
|
|
/* symbol arrange function */
|
2019-09-08 22:18:47 +00:00
|
|
|
#if TILE_LAYOUT
|
2019-09-04 22:16:39 +00:00
|
|
|
{ "[]=", tile }, /* first entry is default */
|
2019-09-09 17:49:41 +00:00
|
|
|
#endif
|
2019-09-04 22:16:39 +00:00
|
|
|
{ "><>", NULL }, /* no layout function means floating behavior */
|
2019-09-08 22:18:47 +00:00
|
|
|
#if MONOCLE_LAYOUT
|
2019-09-04 22:16:39 +00:00
|
|
|
{ "[M]", monocle },
|
2019-09-09 17:49:41 +00:00
|
|
|
#endif
|
2019-09-08 22:18:47 +00:00
|
|
|
#if BSTACK_LAYOUT
|
|
|
|
{ "TTT", bstack },
|
2019-09-09 17:49:41 +00:00
|
|
|
#endif
|
2019-09-08 22:18:47 +00:00
|
|
|
#if BSTACKHORIZ_LAYOUT
|
|
|
|
{ "===", bstackhoriz },
|
2019-09-09 17:49:41 +00:00
|
|
|
#endif
|
2019-09-09 19:35:19 +00:00
|
|
|
#if CENTEREDMASTER_LAYOUT
|
|
|
|
{ "|M|", centeredmaster },
|
|
|
|
#endif
|
|
|
|
#if CENTEREDFLOATINGMASTER_LAYOUT
|
|
|
|
{ ">M>", centeredfloatingmaster },
|
|
|
|
#endif
|
2019-10-08 20:57:21 +00:00
|
|
|
#if COLUMNS_LAYOUT
|
|
|
|
{ "|||", col },
|
|
|
|
#endif
|
2019-09-09 16:00:02 +00:00
|
|
|
#if DECK_LAYOUT
|
|
|
|
{ "[D]", deck },
|
2019-09-09 17:49:41 +00:00
|
|
|
#endif
|
2019-09-09 16:50:05 +00:00
|
|
|
#if FIBONACCI_SPIRAL_LAYOUT
|
|
|
|
{ "(@)", spiral },
|
2019-09-09 17:49:41 +00:00
|
|
|
#endif
|
2019-09-09 16:50:05 +00:00
|
|
|
#if FIBONACCI_DWINDLE_LAYOUT
|
|
|
|
{ "[\\]", dwindle },
|
2019-09-09 17:49:41 +00:00
|
|
|
#endif
|
2019-09-09 17:31:16 +00:00
|
|
|
#if GRIDMODE_LAYOUT
|
|
|
|
{ "HHH", grid },
|
2019-09-09 17:49:41 +00:00
|
|
|
#endif
|
2019-09-09 17:31:16 +00:00
|
|
|
#if HORIZGRID_LAYOUT
|
2019-09-09 17:49:41 +00:00
|
|
|
{ "---", horizgrid },
|
|
|
|
#endif
|
|
|
|
#if GAPPLESSGRID_LAYOUT
|
|
|
|
{ ":::", gaplessgrid },
|
|
|
|
#endif
|
|
|
|
#if NROWGRID_LAYOUT
|
|
|
|
{ "###", nrowgrid },
|
2019-09-09 17:31:16 +00:00
|
|
|
#endif
|
2019-09-07 20:27:06 +00:00
|
|
|
#if CYCLELAYOUTS_PATCH
|
|
|
|
{ NULL, NULL },
|
2019-09-09 17:49:41 +00:00
|
|
|
#endif
|
2019-09-04 22:16:39 +00:00
|
|
|
};
|
2019-09-30 21:52:51 +00:00
|
|
|
#endif // FLEXTILE_DELUXE_LAYOUT
|
2019-09-04 22:16:39 +00:00
|
|
|
|
|
|
|
/* key definitions */
|
|
|
|
#define MODKEY Mod1Mask
|
2020-02-11 14:35:34 +00:00
|
|
|
#if COMBO_PATCH && SWAPTAGS_PATCH
|
2019-09-11 21:35:43 +00:00
|
|
|
#define TAGKEYS(KEY,TAG) \
|
|
|
|
{ MODKEY, KEY, comboview, {.ui = 1 << TAG} }, \
|
|
|
|
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
|
|
|
|
{ MODKEY|ShiftMask, KEY, combotag, {.ui = 1 << TAG} }, \
|
2020-02-11 07:27:00 +00:00
|
|
|
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, \
|
|
|
|
{ MODKEY|Mod4Mask|ShiftMask, KEY, swaptags, {.ui = 1 << TAG} },
|
2020-02-11 14:35:34 +00:00
|
|
|
#elif COMBO_PATCH
|
|
|
|
#define TAGKEYS(KEY,TAG) \
|
|
|
|
{ MODKEY, KEY, comboview, {.ui = 1 << TAG} }, \
|
|
|
|
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
|
|
|
|
{ MODKEY|ShiftMask, KEY, combotag, {.ui = 1 << TAG} }, \
|
|
|
|
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
|
|
|
|
#elif SWAPTAGS_PATCH
|
2019-09-04 22:16:39 +00:00
|
|
|
#define TAGKEYS(KEY,TAG) \
|
|
|
|
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
|
|
|
|
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
|
|
|
|
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
|
2020-02-11 07:27:00 +00:00
|
|
|
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, \
|
|
|
|
{ MODKEY|Mod4Mask|ShiftMask, KEY, swaptags, {.ui = 1 << TAG} },
|
2020-02-11 14:35:34 +00:00
|
|
|
#else
|
|
|
|
#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} },
|
|
|
|
#endif // COMBO_PATCH / SWAPTAGS_PATCH
|
2019-09-04 22:16:39 +00:00
|
|
|
|
2019-10-01 22:03:21 +00:00
|
|
|
#if HOLDBAR_PATCH
|
|
|
|
#define HOLDKEY 0 // replace 0 with the keysym to activate holdbar
|
|
|
|
#endif // HOLDBAR_PATCH
|
|
|
|
|
2019-09-04 22:16:39 +00:00
|
|
|
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
|
|
|
|
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
|
|
|
|
|
|
|
/* commands */
|
2019-11-26 18:54:00 +00:00
|
|
|
#if !NODMENU_PATCH
|
2019-09-04 22:16:39 +00:00
|
|
|
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
2019-11-26 18:54:00 +00:00
|
|
|
#endif // NODMENU_PATCH
|
|
|
|
static const char *dmenucmd[] = {
|
|
|
|
"dmenu_run",
|
|
|
|
#if !NODMENU_PATCH
|
|
|
|
"-m", dmenumon,
|
|
|
|
#endif // NODMENU_PATCH
|
|
|
|
"-fn", dmenufont,
|
|
|
|
"-nb", normbgcolor,
|
|
|
|
"-nf", normfgcolor,
|
|
|
|
"-sb", selbgcolor,
|
|
|
|
"-sf", selfgcolor,
|
|
|
|
#if DMENUMATCHTOP_PATCH
|
|
|
|
topbar ? NULL : "-b",
|
|
|
|
#endif // DMENUMATCHTOP_PATCH
|
|
|
|
NULL
|
|
|
|
};
|
2019-09-04 22:16:39 +00:00
|
|
|
static const char *termcmd[] = { "st", NULL };
|
|
|
|
|
2019-10-10 21:33:04 +00:00
|
|
|
#if SCRATCHPAD_PATCH
|
|
|
|
static const char scratchpadname[] = "scratchpad";
|
|
|
|
static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-g", "120x34", NULL };
|
|
|
|
#endif // SCRATCHPAD_PATCH
|
2020-02-09 13:55:40 +00:00
|
|
|
#if SCRATCHPAD_ALT_1_PATCH
|
|
|
|
static const unsigned scratchpad_mask = 1u << sizeof tags / sizeof * tags;
|
|
|
|
#endif // SCRATCHPAD_ALT_1_PATCH
|
2019-10-10 21:33:04 +00:00
|
|
|
|
2019-09-04 22:16:39 +00:00
|
|
|
static Key keys[] = {
|
2019-10-24 06:47:00 +00:00
|
|
|
/* modifier key function argument */
|
|
|
|
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
|
|
|
|
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
2019-10-10 21:33:04 +00:00
|
|
|
#if SCRATCHPAD_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY, XK_grave, togglescratch, {.v = scratchpadcmd } },
|
2019-10-10 21:33:04 +00:00
|
|
|
#endif // SCRATCHPAD_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY, XK_b, togglebar, {0} },
|
|
|
|
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
|
|
|
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
2020-01-29 07:31:00 +00:00
|
|
|
#if SWAPFOCUS_PATCH && PERTAG_PATCH
|
|
|
|
{ MODKEY, XK_s, swapfocus, {.i = -1 } },
|
|
|
|
#endif // SWAPFOCUS_PATCH
|
2019-10-07 22:54:06 +00:00
|
|
|
#if SWITCHCOL_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY, XK_v, switchcol, {0} },
|
2019-10-07 22:54:06 +00:00
|
|
|
#endif // SWITCHCOL_PATCH
|
2019-09-07 20:42:01 +00:00
|
|
|
#if ROTATESTACK_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|Mod4Mask, XK_j, rotatestack, {.i = +1 } },
|
|
|
|
{ MODKEY|Mod4Mask, XK_k, rotatestack, {.i = -1 } },
|
2019-09-07 20:42:01 +00:00
|
|
|
#endif // ROTATESTACK_PATCH
|
2020-01-17 08:54:23 +00:00
|
|
|
#if INPLACEROTATE_PATCH
|
|
|
|
{ MODKEY|Mod4Mask|ShiftMask, XK_j, inplacerotate, {.i = +1} },
|
|
|
|
{ MODKEY|Mod4Mask|ShiftMask, XK_k, inplacerotate, {.i = -1} },
|
|
|
|
#endif // INPLACEROTATE_PATCH
|
2019-09-14 22:22:24 +00:00
|
|
|
#if PUSH_PATCH || PUSH_NO_MASTER_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|ControlMask, XK_j, pushdown, {0} },
|
|
|
|
{ MODKEY|ControlMask, XK_k, pushup, {0} },
|
2019-09-14 22:22:24 +00:00
|
|
|
#endif // PUSH_PATCH / PUSH_NO_MASTER_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
|
|
|
|
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
|
2019-10-07 22:54:06 +00:00
|
|
|
#if FLEXTILE_DELUXE_LAYOUT
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|ControlMask, XK_i, incnstack, {.i = +1 } },
|
|
|
|
{ MODKEY|ControlMask, XK_u, incnstack, {.i = -1 } },
|
2019-10-07 22:54:06 +00:00
|
|
|
#endif // FLEXTILE_DELUXE_LAYOUT
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
|
|
|
|
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
|
2019-09-08 22:18:47 +00:00
|
|
|
#if CFACTS_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|ShiftMask, XK_h, setcfact, {.f = +0.25} },
|
|
|
|
{ MODKEY|ShiftMask, XK_l, setcfact, {.f = -0.25} },
|
|
|
|
{ MODKEY|ShiftMask, XK_o, setcfact, {.f = 0.00} },
|
2019-09-08 22:18:47 +00:00
|
|
|
#endif // CFACTS_PATCH
|
2019-10-04 21:13:55 +00:00
|
|
|
#if MOVESTACK_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } },
|
|
|
|
{ MODKEY|ShiftMask, XK_k, movestack, {.i = -1 } },
|
2019-10-04 21:13:55 +00:00
|
|
|
#endif // MOVESTACK_PATCH
|
2020-01-26 06:32:00 +00:00
|
|
|
#if TRANSFER_PATCH
|
|
|
|
{ MODKEY, XK_x, transfer, {0} },
|
|
|
|
#endif // TRANSFER_PATCH
|
2020-02-02 10:55:19 +00:00
|
|
|
#if TRANSFER_ALL_PATCH
|
|
|
|
{ MODKEY|ControlMask, XK_x, transferall, {0} },
|
|
|
|
#endif // TRANSFER_ALL_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY, XK_Return, zoom, {0} },
|
2019-09-08 22:18:47 +00:00
|
|
|
#if VANITYGAPS_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|Mod4Mask, XK_u, incrgaps, {.i = +1 } },
|
|
|
|
{ MODKEY|Mod4Mask|ShiftMask, XK_u, incrgaps, {.i = -1 } },
|
|
|
|
{ MODKEY|Mod4Mask, XK_i, incrigaps, {.i = +1 } },
|
|
|
|
{ MODKEY|Mod4Mask|ShiftMask, XK_i, incrigaps, {.i = -1 } },
|
|
|
|
{ MODKEY|Mod4Mask, XK_o, incrogaps, {.i = +1 } },
|
|
|
|
{ MODKEY|Mod4Mask|ShiftMask, XK_o, incrogaps, {.i = -1 } },
|
|
|
|
{ MODKEY|Mod4Mask, XK_6, incrihgaps, {.i = +1 } },
|
|
|
|
{ MODKEY|Mod4Mask|ShiftMask, XK_6, incrihgaps, {.i = -1 } },
|
|
|
|
{ MODKEY|Mod4Mask, XK_7, incrivgaps, {.i = +1 } },
|
|
|
|
{ MODKEY|Mod4Mask|ShiftMask, XK_7, incrivgaps, {.i = -1 } },
|
|
|
|
{ MODKEY|Mod4Mask, XK_8, incrohgaps, {.i = +1 } },
|
|
|
|
{ MODKEY|Mod4Mask|ShiftMask, XK_8, incrohgaps, {.i = -1 } },
|
|
|
|
{ MODKEY|Mod4Mask, XK_9, incrovgaps, {.i = +1 } },
|
|
|
|
{ MODKEY|Mod4Mask|ShiftMask, XK_9, incrovgaps, {.i = -1 } },
|
|
|
|
{ MODKEY|Mod4Mask, XK_0, togglegaps, {0} },
|
|
|
|
{ MODKEY|Mod4Mask|ShiftMask, XK_0, defaultgaps, {0} },
|
2019-09-08 22:18:47 +00:00
|
|
|
#endif // VANITYGAPS_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY, XK_Tab, view, {0} },
|
2020-01-29 13:22:24 +00:00
|
|
|
#if SHIFTVIEW_PATCH
|
|
|
|
{ MODKEY|ShiftMask, XK_Tab, shiftview, { .i = -1 } },
|
|
|
|
{ MODKEY|ShiftMask, XK_backslash, shiftview, { .i = +1 } },
|
|
|
|
#endif // SHIFTVIEW_PATCH
|
2019-09-10 06:27:00 +00:00
|
|
|
#if AWESOMEBAR_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY, XK_z, showhideclient, {0} },
|
2019-09-10 06:27:00 +00:00
|
|
|
#endif // AWESOMEBAR_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
|
2019-10-05 20:55:46 +00:00
|
|
|
#if KILLUNSEL_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|ShiftMask, XK_x, killunsel, {0} },
|
2019-10-05 20:55:46 +00:00
|
|
|
#endif // KILLUNSEL_PATCH
|
2019-09-14 21:58:04 +00:00
|
|
|
#if SELFRESTART_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|ShiftMask, XK_r, self_restart, {0} },
|
2019-09-14 21:58:04 +00:00
|
|
|
#endif // SELFRESTART_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|ShiftMask, XK_q, quit, {0} },
|
2019-10-02 21:22:04 +00:00
|
|
|
#if RESTARTSIG_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|ControlMask|ShiftMask, XK_q, quit, {1} },
|
2019-10-02 21:22:04 +00:00
|
|
|
#endif // RESTARTSIG_PATCH
|
2019-10-02 22:10:08 +00:00
|
|
|
#if FOCUSURGENT_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY, XK_u, focusurgent, {0} },
|
2019-10-02 22:10:08 +00:00
|
|
|
#endif // FOCUSURGENT_PATCH
|
2019-10-01 22:03:21 +00:00
|
|
|
#if HOLDBAR_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ 0, HOLDKEY, holdbar, {0} },
|
2019-10-01 22:03:21 +00:00
|
|
|
#endif // HOLDBAR_PATCH
|
2019-09-15 21:33:43 +00:00
|
|
|
#if WINVIEW_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY, XK_o, winview, {0} },
|
2019-09-15 21:33:43 +00:00
|
|
|
#endif // WINVIEW_PATCH
|
2020-02-11 17:31:11 +00:00
|
|
|
#if XRDB_PATCH && !VTCOLORS_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|ShiftMask, XK_F5, xrdb, {.v = NULL } },
|
2019-09-15 20:45:22 +00:00
|
|
|
#endif // XRDB_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
|
|
|
|
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
|
|
|
|
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
|
2019-10-08 20:57:21 +00:00
|
|
|
#if COLUMNS_LAYOUT
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY, XK_c, setlayout, {.v = &layouts[3]} },
|
2019-10-08 20:57:21 +00:00
|
|
|
#endif // COLUMNS_LAYOUT
|
2019-09-30 21:52:51 +00:00
|
|
|
#if FLEXTILE_DELUXE_LAYOUT
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|ControlMask, XK_t, rotatelayoutaxis, {.i = 0 } }, /* flextile, 0 = layout axis */
|
|
|
|
{ MODKEY|ControlMask, XK_Tab, rotatelayoutaxis, {.i = 1 } }, /* flextile, 1 = master axis */
|
|
|
|
{ MODKEY|ControlMask|ShiftMask, XK_Tab, rotatelayoutaxis, {.i = 2 } }, /* flextile, 2 = stack axis */
|
|
|
|
{ MODKEY|ControlMask|Mod1Mask, XK_Tab, rotatelayoutaxis, {.i = 3 } }, /* flextile, 3 = secondary stack axis */
|
|
|
|
{ MODKEY|ControlMask, XK_Return, mirrorlayout, {0} }, /* flextile, flip master and stack areas */
|
2019-09-30 21:52:51 +00:00
|
|
|
#endif // FLEXTILE_DELUXE_LAYOUT
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY, XK_space, setlayout, {0} },
|
|
|
|
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
|
2019-10-04 20:46:47 +00:00
|
|
|
#if MAXIMIZE_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|ControlMask|ShiftMask, XK_h, togglehorizontalmax, {0} },
|
|
|
|
{ MODKEY|ControlMask|ShiftMask, XK_l, togglehorizontalmax, {0} },
|
|
|
|
{ MODKEY|ControlMask|ShiftMask, XK_j, toggleverticalmax, {0} },
|
|
|
|
{ MODKEY|ControlMask|ShiftMask, XK_k, toggleverticalmax, {0} },
|
2019-11-04 07:17:00 +00:00
|
|
|
{ MODKEY|ControlMask, XK_m, togglemax, {0} },
|
2019-10-04 20:46:47 +00:00
|
|
|
#endif // MAXIMIZE_PATCH
|
2019-10-01 22:03:21 +00:00
|
|
|
#if UNFLOATVISIBLE_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|Mod4Mask, XK_space, unfloatvisible, {0} },
|
|
|
|
{ MODKEY|ShiftMask, XK_t, unfloatvisible, {.v = &layouts[0]} },
|
2019-10-01 22:03:21 +00:00
|
|
|
#endif // UNFLOATVISIBLE_PATCH
|
2019-09-05 21:27:33 +00:00
|
|
|
#if TOGGLEFULLSCREEN_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY, XK_y, togglefullscreen, {0} },
|
2019-09-05 21:27:33 +00:00
|
|
|
#endif // TOGGLEFULLSCREEN_PATCH
|
2019-11-21 11:15:16 +00:00
|
|
|
#if FAKEFULLSCREEN_CLIENT_PATCH
|
|
|
|
{ MODKEY|ShiftMask, XK_y, togglefakefullscreen, {0} },
|
|
|
|
#endif // FAKEFULLSCREEN_CLIENT_PATCH
|
2019-10-07 22:54:06 +00:00
|
|
|
#if FULLSCREEN_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|ShiftMask, XK_f, fullscreen, {0} },
|
2019-10-07 22:54:06 +00:00
|
|
|
#endif // FULLSCREEN_PATCH
|
2019-09-14 22:43:35 +00:00
|
|
|
#if STICKY_PATCH
|
2020-01-29 07:31:00 +00:00
|
|
|
{ MODKEY|ShiftMask, XK_s, togglesticky, {0} },
|
2019-09-14 22:43:35 +00:00
|
|
|
#endif // STICKY_PATCH
|
2020-02-09 13:55:40 +00:00
|
|
|
#if SCRATCHPAD_ALT_1_PATCH
|
|
|
|
{ MODKEY, XK_0, view, {.ui = ~scratchpad_mask } },
|
|
|
|
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~scratchpad_mask } },
|
|
|
|
{ MODKEY, XK_minus, scratchpad_show, {0} },
|
|
|
|
{ MODKEY|ShiftMask, XK_minus, scratchpad_hide, {0} },
|
|
|
|
{ MODKEY, XK_equal, scratchpad_remove, {0} },
|
|
|
|
#else
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY, XK_0, view, {.ui = ~0 } },
|
|
|
|
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
|
2020-02-09 13:55:40 +00:00
|
|
|
#endif // SCRATCHPAD_ALT_1_PATCH
|
2019-10-24 06:47:00 +00: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 } },
|
2019-10-02 21:57:25 +00:00
|
|
|
#if FOCUSADJACENTTAG_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY, XK_Left, viewtoleft, {0} },
|
|
|
|
{ MODKEY, XK_Right, viewtoright, {0} },
|
|
|
|
{ MODKEY|ShiftMask, XK_Left, tagtoleft, {0} },
|
|
|
|
{ MODKEY|ShiftMask, XK_Right, tagtoright, {0} },
|
|
|
|
{ MODKEY|ControlMask, XK_Left, tagandviewtoleft, {0} },
|
|
|
|
{ MODKEY|ControlMask, XK_Right, tagandviewtoright, {0} },
|
2019-10-02 21:57:25 +00:00
|
|
|
#endif // FOCUSADJACENTTAG_PATCH
|
2019-10-04 21:56:00 +00:00
|
|
|
#if TAGALL_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|ShiftMask, XK_F1, tagall, {.v = "F1"} },
|
|
|
|
{ MODKEY|ShiftMask, XK_F2, tagall, {.v = "F2"} },
|
|
|
|
{ MODKEY|ShiftMask, XK_F3, tagall, {.v = "F3"} },
|
|
|
|
{ MODKEY|ShiftMask, XK_F4, tagall, {.v = "F4"} },
|
|
|
|
{ MODKEY|ShiftMask, XK_F5, tagall, {.v = "F5"} },
|
|
|
|
{ MODKEY|ShiftMask, XK_F6, tagall, {.v = "F6"} },
|
|
|
|
{ MODKEY|ShiftMask, XK_F7, tagall, {.v = "F7"} },
|
|
|
|
{ MODKEY|ShiftMask, XK_F8, tagall, {.v = "F8"} },
|
|
|
|
{ MODKEY|ShiftMask, XK_F9, tagall, {.v = "F9"} },
|
|
|
|
{ MODKEY|ControlMask, XK_F1, tagall, {.v = "1"} },
|
|
|
|
{ MODKEY|ControlMask, XK_F2, tagall, {.v = "2"} },
|
|
|
|
{ MODKEY|ControlMask, XK_F3, tagall, {.v = "3"} },
|
|
|
|
{ MODKEY|ControlMask, XK_F4, tagall, {.v = "4"} },
|
|
|
|
{ MODKEY|ControlMask, XK_F5, tagall, {.v = "5"} },
|
|
|
|
{ MODKEY|ControlMask, XK_F6, tagall, {.v = "6"} },
|
|
|
|
{ MODKEY|ControlMask, XK_F7, tagall, {.v = "7"} },
|
|
|
|
{ MODKEY|ControlMask, XK_F8, tagall, {.v = "8"} },
|
|
|
|
{ MODKEY|ControlMask, XK_F9, tagall, {.v = "9"} },
|
2019-10-04 21:56:00 +00:00
|
|
|
#endif // TAGALL_PATCH
|
2019-09-05 21:59:13 +00:00
|
|
|
#if TAGALLMON_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|Mod4Mask|ShiftMask, XK_comma, tagallmon, {.i = +1 } },
|
|
|
|
{ MODKEY|Mod4Mask|ShiftMask, XK_period, tagallmon, {.i = -1 } },
|
2019-09-05 21:59:13 +00:00
|
|
|
#endif // TAGALLMON_PATCH
|
|
|
|
#if TAGSWAPMON_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|Mod4Mask|ControlMask, XK_comma, tagswapmon, {.i = +1 } },
|
|
|
|
{ MODKEY|Mod4Mask|ControlMask, XK_period, tagswapmon, {.i = -1 } },
|
2019-09-05 21:59:13 +00:00
|
|
|
#endif // TAGSWAPMON_PATCH
|
2019-09-09 21:27:10 +00:00
|
|
|
#if ALTERNATIVE_TAGS_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY, XK_n, togglealttag, {0} },
|
2019-09-09 21:27:10 +00:00
|
|
|
#endif // ALTERNATIVE_TAGS_PATCH
|
2019-10-05 21:28:50 +00:00
|
|
|
#if TAGGRID_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|ControlMask, XK_Up, switchtag, { .ui = SWITCHTAG_UP | SWITCHTAG_VIEW } },
|
|
|
|
{ MODKEY|ControlMask, XK_Down, switchtag, { .ui = SWITCHTAG_DOWN | SWITCHTAG_VIEW } },
|
|
|
|
{ MODKEY|ControlMask, XK_Right, switchtag, { .ui = SWITCHTAG_RIGHT | SWITCHTAG_VIEW } },
|
|
|
|
{ MODKEY|ControlMask, XK_Left, switchtag, { .ui = SWITCHTAG_LEFT | SWITCHTAG_VIEW } },
|
|
|
|
{ MODKEY|Mod4Mask, XK_Up, switchtag, { .ui = SWITCHTAG_UP | SWITCHTAG_TAG | SWITCHTAG_VIEW } },
|
|
|
|
{ MODKEY|Mod4Mask, XK_Down, switchtag, { .ui = SWITCHTAG_DOWN | SWITCHTAG_TAG | SWITCHTAG_VIEW } },
|
|
|
|
{ MODKEY|Mod4Mask, XK_Right, switchtag, { .ui = SWITCHTAG_RIGHT | SWITCHTAG_TAG | SWITCHTAG_VIEW } },
|
|
|
|
{ MODKEY|Mod4Mask, XK_Left, switchtag, { .ui = SWITCHTAG_LEFT | SWITCHTAG_TAG | SWITCHTAG_VIEW } },
|
2019-10-05 21:28:50 +00:00
|
|
|
#endif // TAGGRID_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
#if EXRESIZE_PATCH
|
|
|
|
{ MODKEY, XK_KP_7, explace, {.ui = EX_NW }},
|
|
|
|
{ MODKEY, XK_KP_8, explace, {.ui = EX_N }},
|
|
|
|
{ MODKEY, XK_KP_9, explace, {.ui = EX_NE }},
|
|
|
|
{ MODKEY, XK_KP_4, explace, {.ui = EX_W }},
|
|
|
|
{ MODKEY, XK_KP_5, explace, {.ui = EX_C }},
|
|
|
|
{ MODKEY, XK_KP_6, explace, {.ui = EX_E }},
|
|
|
|
{ MODKEY, XK_KP_1, explace, {.ui = EX_SW }},
|
|
|
|
{ MODKEY, XK_KP_2, explace, {.ui = EX_S }},
|
|
|
|
{ MODKEY, XK_KP_3, explace, {.ui = EX_SE }},
|
|
|
|
|
|
|
|
{ MODKEY|ShiftMask, XK_KP_8, exresize, {.v = (int []){ 0, 25 }}},
|
|
|
|
{ MODKEY|ShiftMask, XK_KP_2, exresize, {.v = (int []){ 0, -25 }}},
|
|
|
|
{ MODKEY|ShiftMask, XK_KP_6, exresize, {.v = (int []){ 25, 0 }}},
|
|
|
|
{ MODKEY|ShiftMask, XK_KP_4, exresize, {.v = (int []){ -25, 0 }}},
|
|
|
|
{ MODKEY|ShiftMask, XK_KP_5, exresize, {.v = (int []){ 25, 25 }}},
|
|
|
|
{ MODKEY|ShiftMask|ControlMask, XK_KP_5, exresize, {.v = (int []){ -25, -25 }}},
|
|
|
|
|
|
|
|
{ MODKEY|ControlMask, XK_KP_6, togglehorizontalexpand, {.i = +1} },
|
|
|
|
{ MODKEY|ControlMask, XK_KP_3, togglehorizontalexpand, {.i = 0} },
|
|
|
|
{ MODKEY|ControlMask, XK_KP_4, togglehorizontalexpand, {.i = -1} },
|
|
|
|
{ MODKEY|ControlMask, XK_KP_8, toggleverticalexpand, {.i = +1} },
|
|
|
|
{ MODKEY|ControlMask, XK_KP_1, toggleverticalexpand, {.i = 0} },
|
|
|
|
{ MODKEY|ControlMask, XK_KP_2, toggleverticalexpand, {.i = -1} },
|
|
|
|
{ MODKEY|ControlMask, XK_KP_9, togglemaximize, {.i = -1} },
|
|
|
|
{ MODKEY|ControlMask, XK_KP_7, togglemaximize, {.i = +1} },
|
|
|
|
{ MODKEY|ControlMask, XK_KP_5, togglemaximize, {.i = 0} },
|
|
|
|
#endif // EXRESIZE_PATCH
|
2019-09-14 21:28:04 +00:00
|
|
|
#if SETBORDERPX_PATCH
|
2020-02-09 13:55:40 +00:00
|
|
|
{ MODKEY|ControlMask, XK_minus, setborderpx, {.i = -1 } },
|
|
|
|
{ MODKEY|ControlMask, XK_plus, setborderpx, {.i = +1 } },
|
|
|
|
{ MODKEY|ControlMask, XK_numbersign, setborderpx, {.i = 0 } },
|
2019-09-14 21:28:04 +00:00
|
|
|
#endif // SETBORDERPX_PATCH
|
2019-09-07 20:27:06 +00:00
|
|
|
#if CYCLELAYOUTS_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY|ControlMask, XK_comma, cyclelayout, {.i = -1 } },
|
|
|
|
{ MODKEY|ControlMask, XK_period, cyclelayout, {.i = +1 } },
|
2019-09-07 20:27:06 +00:00
|
|
|
#endif // CYCLELAYOUTS_PATCH
|
2019-10-10 21:09:07 +00:00
|
|
|
#if MDPCONTROL_PATCH
|
2019-10-24 06:47:00 +00:00
|
|
|
{ MODKEY, XK_F1, mpdchange, {.i = -1} },
|
|
|
|
{ MODKEY, XK_F2, mpdchange, {.i = +1} },
|
|
|
|
{ MODKEY, XK_Escape, mpdcontrol, {0} },
|
2019-10-10 21:09:07 +00:00
|
|
|
#endif // MDPCONTROL_PATCH
|
2019-10-24 06:47:00 +00: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)
|
2019-09-04 22:16:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* button definitions */
|
|
|
|
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
|
|
|
|
static Button buttons[] = {
|
|
|
|
/* click event mask button function argument */
|
|
|
|
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
|
|
|
|
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
|
2019-09-09 22:18:46 +00:00
|
|
|
#if AWESOMEBAR_PATCH
|
|
|
|
{ ClkWinTitle, 0, Button1, togglewin, {0} },
|
2019-09-10 06:27:00 +00:00
|
|
|
{ ClkWinTitle, 0, Button3, showhideclient, {0} },
|
2019-09-09 22:18:46 +00:00
|
|
|
#endif // AWESOMEBAR_PATCH
|
2019-09-04 22:16:39 +00:00
|
|
|
{ ClkWinTitle, 0, Button2, zoom, {0} },
|
|
|
|
{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
|
|
|
|
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
|
|
|
|
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
|
|
|
|
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
|
|
|
|
{ ClkTagBar, 0, Button1, view, {0} },
|
|
|
|
{ ClkTagBar, 0, Button3, toggleview, {0} },
|
|
|
|
{ ClkTagBar, MODKEY, Button1, tag, {0} },
|
|
|
|
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
|
|
|
|
};
|