summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2023-06-03 05:31:37 -0400
committerMalfurious <m@lfurio.us>2024-03-05 20:18:45 -0500
commit7eca502b6a5598a846903495cfa94c115644bcea (patch)
tree6bcfa73a078084e17461df584f8222e4a9ce9229
parent97425d82064056155c910fcb180f4acff3305f32 (diff)
downloaddwm-7eca502b6a5598a846903495cfa94c115644bcea.tar.gz
dwm-7eca502b6a5598a846903495cfa94c115644bcea.zip
config: Add browser keybinds
-rw-r--r--config.def.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index ef95a02..d73818d 100644
--- a/config.def.h
+++ b/config.def.h
@@ -60,6 +60,8 @@ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont,
static const char *termcmd[] = { "st", NULL };
static const char *slockcmd[] = { "slock", NULL };
static const char *slockucmd[] = { "slock", "-u", NULL };
+static const char *browsercmd[] = { "qutebrowser", NULL };
+static const char *browserpcmd[] = { "qutebrowser", "--target", "private-window", NULL };
static const Key keys[] = {
/* modifier key function argument */
@@ -67,6 +69,8 @@ static const Key keys[] = {
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_z, spawn, {.v = slockcmd } },
{ MODKEY|ShiftMask, XK_z, spawn, {.v = slockucmd } },
+ { MODKEY|ShiftMask, XK_backslash, spawn, {.v = browsercmd } },
+ { MODKEY|ControlMask|ShiftMask, XK_backslash, spawn, {.v = browserpcmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },