diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2022-03-09 15:13:16 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2022-03-09 15:13:16 +0530 |
commit | 1fd97439fdba3b8f20b1b82a4ec680f416ab195b (patch) | |
tree | ab976ef3a7ecb62eb98f9c4a14b5cf400cbdf2e3 /config.h | |
parent | cab227f5b0e01acaed12d52f322c36560a402d43 (diff) |
Applied scratchpad patch
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -68,12 +68,15 @@ 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", normbgcolor, "-nf", normfgcolor, "-sb", selbordercolor, "-sf", selfgcolor, NULL }; static const char *termcmd[] = { "st", NULL }; +static const char scratchpadname[] = "scratchpad"; +static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-g", "120x34", NULL }; #include "movestack.c" static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, + { MODKEY, XK_grave, togglescratch, {.v = scratchpadcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, |