commit c45058558543f2792821d91d277455531f341d2c
parent 5ccce4f11ad1e6b99650bf268d45951ed05f87ee
Author: hhvn <dev@hhvn.uk>
Date: Sat, 23 Oct 2021 01:30:04 +0100
config.h: runtime toggling of focusnew (as opposed to config.h)
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/config.h b/config.h
@@ -14,7 +14,7 @@ static const char titletrim[] = "...";
static const int tabwidth = 200;
static const Bool foreground = True;
static Bool urgentswitch = False;
-static const Bool focusnew = False; /* focus on a newly embedded window */
+static Bool focusnew = False; /* focus on a newly embedded window */
/*
* Where to place a new tab when it is opened. When npisrelative is True,
@@ -63,6 +63,7 @@ static Key keys[] = {
{ MODKEY, XK_u, focusurgent, { 0 } },
{ MODKEY|ShiftMask, XK_u, toggle, { .v = (void*) &urgentswitch } },
+ { MODKEY|ShiftMask, XK_t, toggle, { .v = (void*) &focusnew } },
{ 0, XK_F11, fullscreen, { 0 } },
};