summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorNaz <ndpm13@ch-naseem.com>2026-01-11 13:16:14 +0100
committerNaz <ndpm13@ch-naseem.com>2026-01-11 13:16:14 +0100
commitbb6d5e0b220dfcb8449bced1cfc0b56c36b192ff (patch)
tree49c70c075c6620185b26237adde09ef833998c87 /config.def.h
parent9af4c2957939aa4b7864a04115c10262f9762a7d (diff)
feat: apply dwm-tab-i3like-20211121-a786211 patch
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 27d966c..9fc3252 100644
--- a/config.def.h
+++ b/config.def.h
@@ -11,6 +11,12 @@ static const int smartgaps = 0; /* 1 means no outer gap when the
static const int swallowfloating = 0; /* 1 means swallow floating windows by default */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
+/* Display modes of the tab bar: never shown, always shown, shown only in */
+/* monocle mode in the presence of several windows. */
+/* Modes after showtab_nmodes are disabled. */
+enum showtab_modes { showtab_never, showtab_auto, showtab_nmodes, showtab_always};
+static const int showtab = showtab_auto; /* Default tab bar show mode */
+static const int toptab = False; /* False means bottom tab bar */
static const int splitstatus = 1; /* 1 for split status items */
static const char *splitdelim = ";"; /* Character used for separating status */
static const char *fonts[] = { "monospace:size=10" };
@@ -93,6 +99,7 @@ static const Key keys[] = {
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_b, togglebar, {0} },
+ { MODKEY, XK_w, tabmode, {-1} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
@@ -160,5 +167,6 @@ static const Button buttons[] = {
{ ClkTagBar, 0, Button3, toggleview, {0} },
{ ClkTagBar, MODKEY, Button1, tag, {0} },
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
+ { ClkTabBar, 0, Button1, focuswin, {0} },
};