diff options
author | Malfurious <m@lfurio.us> | 2020-06-22 00:49:08 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2023-06-03 22:17:38 -0400 |
commit | 693081eb1e028368cc32d3dd2d1f46af341f121e (patch) | |
tree | d752b07fbd9be5e8396ce4fb1001d92d7cd19fff /config.def.h | |
parent | 1a4d4b0f6cd663c3dee2b6167993cd709cfc91cc (diff) | |
download | dwm-693081eb1e028368cc32d3dd2d1f46af341f121e.tar.gz dwm-693081eb1e028368cc32d3dd2d1f46af341f121e.zip |
patch: scratchpad
The scratchpad patch allows you to spawn or restore a floating terminal
window. It is usually useful to have one to do some short typing.
A tool like detach (http://detach.sourceforge.net) turns it into a
launchpad for X applications.
By default your terminal (st) is used, and the default key binding is
MODKEY+XK_grave. A config.def.h change is included in the patch.
Diffstat (limited to '')
-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 bb67a43..1609683 100644 --- a/config.def.h +++ b/config.def.h @@ -72,6 +72,8 @@ static const char *slockcmd[] = { "slock", NULL }; static const char *slockucmd[] = { "slock", "-u", NULL }; static const char *browsercmd[] = { "qutebrowser", NULL }; static const char *browserpcmd[] = { "qutebrowser", "--target", "private-window", NULL }; +static const char scratchpadname[] = "scratchpad"; +static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-g", "120x34", NULL }; static const Key keys[] = { /* modifier key function argument */ @@ -81,6 +83,7 @@ static const Key keys[] = { { MODKEY|ShiftMask, XK_z, spawn, {.v = slockucmd } }, { MODKEY|ShiftMask, XK_backslash, spawn, {.v = browsercmd } }, { MODKEY|ControlMask|ShiftMask, XK_backslash, spawn, {.v = browserpcmd } }, + { MODKEY, XK_grave, togglescratch, {.v = scratchpadcmd } }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, { MODKEY, XK_i, incnmaster, {.i = +1 } }, |