summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/config.def.h b/config.def.h
index 2190342..8c04523 100644
--- a/config.def.h
+++ b/config.def.h
@@ -31,12 +31,12 @@ static int log_level = WLR_ERROR;
/* NOTE: ALWAYS keep a rule declared even if you don't use rules (e.g leave at least one example) */
static const Rule rules[] = {
- /* app_id title tags mask isfloating isterm noswallow monitor */
+ /* app_id title tags mask isfloating isterm noswallow monitor scratchkey */
/* examples: */
- { "foot", NULL, 0, 0, 1, 1, -1 },
- { "Gimp_EXAMPLE", NULL, 0, 1, 0, 0, -1 }, /* Start on currently visible tags floating, not tiled */
- { "firefox_EXAMPLE", NULL, 1 << 8, 0, 0, 0, -1 }, /* Start on ONLY tag "9" */
- { "scratchpad", NULL, 0, 1, 1, 0, -1 },
+ { "foot", NULL, 0, 0, 1, 1, -1, 0 },
+ { "Gimp_EXAMPLE", NULL, 0, 1, 0, 0, -1, 0 }, /* Start on currently visible tags floating, not tiled */
+ { "firefox_EXAMPLE", NULL, 1 << 8, 0, 0, 0, -1, 0 }, /* Start on ONLY tag "9" */
+ { NULL, "scratchpad", 0, 1, 1, 0, -1, 's'},
};
/* layout(s) */
@@ -134,7 +134,7 @@ static const int cursor_timeout = 5;
/* commands */
static const char *termcmd[] = { "foot", NULL };
static const char *menucmd[] = { "bemenu-run", NULL };
-static const char *spcmd[] = { "foot", "--app-id", "scratchpad", "--window-size-chars=120x34", NULL };
+static const char *spcmd[] = { "s", "foot", "--app-id", "scratchpad", "--window-size-chars=120x34", NULL };
static const Key keys[] = {
/* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */
@@ -143,6 +143,7 @@ static const Key keys[] = {
/* modifier key function argument */
{ MODKEY, XKB_KEY_Return, spawn, {.v = termcmd} },
+ { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return, togglescratch, {.v = spcmd} },
{ MODKEY, XKB_KEY_a, spawn, {.v = menucmd} },
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_A, spawn, SHCMD(TERMINAL " -e abook -C ~/.config/abook/abookrc --datafile ~/.config/abook/addressbook") },
{ MODKEY, XKB_KEY_w, spawn, {.v = (const char*[]){ "firefox", NULL }} },