From ca040230fa6a449934e36ae2d39c0dab0bfd3029 Mon Sep 17 00:00:00 2001 From: nirav Date: Tue, 11 Feb 2020 15:52:49 +0000 Subject: Add scratchpad --- config.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.h') diff --git a/config.h b/config.h index 08d2112..923313f 100644 --- a/config.h +++ b/config.h @@ -57,6 +57,8 @@ 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_gray2, "-sf", col_gray3, NULL }; static const char *termcmd[] = { "urxvt", NULL }; +static const char scratchpadname[] = "scratchpad"; +static const char *scratchpadcmd[] = { "urxvt", "-title", scratchpadname, "-g", "127x43", NULL }; static Key keys[] = { /* modifier key function argument */ @@ -96,6 +98,7 @@ static Key keys[] = { { MODKEY, XK_q, killclient, {0} }, { MODKEY, XK_a, shiftview, {.i = -1} }, { MODKEY, XK_d, shiftview, {.i = +1} }, + { MODKEY, XK_minus, togglescratch, {.v = scratchpadcmd } }, }; /* button definitions */ -- cgit v1.2.3