summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorJackson Taylor <jtaylor@classicalconversations.com>2023-06-14 17:40:43 -0400
committerJackson Taylor <jtaylor@classicalconversations.com>2023-06-14 17:40:43 -0400
commit33682f44ee9e68d10d0ad9526e3e1fe5d6fe87d2 (patch)
tree3c00bb5cd7fe52bb61c1023f70720b497bf09fe2 /config.h
parent78028a01229a3b86626b6977f652de9cf3f71750 (diff)
Add scratchpad patch
This allows you to create a terminal that's not really in the stack of clients. For quick things. I never use this, but it's nice to have.
Diffstat (limited to 'config.h')
-rw-r--r--config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.h b/config.h
index 662e3ca5..74c62140 100644
--- a/config.h
+++ b/config.h
@@ -63,10 +63,13 @@ static const Layout layouts[] = {
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
static const char *termcmd[] = { "st", NULL };
+static const char scratchpadname[] = "scratchpad";
+static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-g", "120x34", NULL };
static const Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_d, spawn, {.v = dmenucmd } },
+ { MODKEY, XK_grave, togglescratch, {.v = scratchpadcmd } },
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },