diff options
author | Jackson Taylor <jtaylormuffins@gmail.com> | 2020-07-05 03:21:51 +0000 |
---|---|---|
committer | Jackson Taylor <jtaylor@classicalconversations.com> | 2022-02-07 10:19:29 -0500 |
commit | e8a86b078783d854c8399d0730a5f838baa8cfd2 (patch) | |
tree | ac4051dc74e12c85bc9c5a73454a12b8dba5e066 /config.def.h | |
parent | 36aa2d70be3ac8a2b0add76c158be5452caa6aab (diff) |
Add scratchpad patch
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 157f23ec..2a6c108d 100644 --- a/config.def.h +++ b/config.def.h @@ -14,6 +14,7 @@ static char normfgcolor[] = "#bbbbbb"; static char selfgcolor[] = "#eeeeee"; static char selbordercolor[] = "#005577"; static char selbgcolor[] = "#005577"; +static char scratchpadname[] = "scratchpad"; static char *colors[][3] = { /* fg bg border */ [SchemeNorm] = { normfgcolor, normbgcolor, normbordercolor }, @@ -62,6 +63,7 @@ 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 *scratchpadcmd[] = {"st", "-t", scratchpadname, "-g", "120x34", NULL}; static Key keys[] = { /* modifier key function argument */ @@ -82,6 +84,7 @@ static Key keys[] = { { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, { MODKEY, XK_c, setlayout, {.v = &layouts[3]} }, { MODKEY|ShiftMask, XK_c, setlayout, {.v = &layouts[4]} }, + { MODKEY, XK_grave, togglescratch, {.v = scratchpadcmd } }, { MODKEY, XK_space, setlayout, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, { MODKEY, XK_0, view, {.ui = ~0 } }, |