aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authornirav <nirav@airmail.cc>2020-06-14 17:02:58 +0000
committernirav <nirav@airmail.cc>2020-06-14 17:03:18 +0000
commitd4746a642e1c0103f85d7c17bee6de028ba1e4c5 (patch)
tree875dc9187b76cee43e7843ec54a5faf39f1df60f /config.h
parent1c6bcd35efcc3490e7a1fb9928572b7b401dbc2c (diff)
downloaddwm-d4746a642e1c0103f85d7c17bee6de028ba1e4c5.tar.gz
dwm-d4746a642e1c0103f85d7c17bee6de028ba1e4c5.zip
Add tab
Diffstat (limited to 'config.h')
-rw-r--r--config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.h b/config.h
index 1c41d87..305210a 100644
--- a/config.h
+++ b/config.h
@@ -18,6 +18,10 @@ static const char *colors[][3] = {
[SchemeStatus] = { col_gray3, col_gray1, col_gray4 },
};
+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 */
+
/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "0" };
@@ -65,6 +69,7 @@ static Key keys[] = {
{ MODKEY, XK_grave, spawn, {.v = dmenucmd } },
{ MODKEY, 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 } },
@@ -119,5 +124,8 @@ static Button buttons[] = {
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
{ ClkTagBar, 0, Button4, shiftview, {.i = -1} },
{ ClkTagBar, 0, Button5, shiftview, {.i = +1} },
+ { ClkTabBar, 0, Button1, focuswin, {0} },
+ { ClkTabBar, 0, Button4, focusstack, {.i = -1} },
+ { ClkTabBar, 0, Button5, focusstack, {.i = +1} },
};