summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorAleksa Vučković <aleksav013@gmail.com>2022-05-01 17:18:26 +0200
committerAleksa Vuckovic <aleksa@vuckovic.cc>2023-12-06 05:05:50 +0100
commit90f1a70e6eacc7a0bbf1510bb173e52caafe2f9a (patch)
tree469094c13318cb5de728031837d6463d33b83e83 /config.def.h
parenta496431497080487a9e9c5abfa6c3a9636e81aef (diff)
scratchpad patch
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 1381108..7f5274b 100644
--- a/config.def.h
+++ b/config.def.h
@@ -77,11 +77,14 @@ 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_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 } },