diff options
author | Jackson Taylor <jtaylor@classicalconversations.com> | 2023-06-14 17:40:43 -0400 |
---|---|---|
committer | Jackson Taylor <jtaylor@classicalconversations.com> | 2023-06-14 17:40:43 -0400 |
commit | 33682f44ee9e68d10d0ad9526e3e1fe5d6fe87d2 (patch) | |
tree | 3c00bb5cd7fe52bb61c1023f70720b497bf09fe2 /config.h | |
parent | 78028a01229a3b86626b6977f652de9cf3f71750 (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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 } }, |