diff options
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -21,6 +21,18 @@ static const char *colors[][3] = { [SchemeSel] = { col_gray4, col_cyan, col_cyan }, }; +typedef struct { + const char *name; + const void *cmd; +} Sp; +const char *spterm[] = {"st", "-n", "spterm", "-g", "50x20", NULL }; +const char *spcalc[] = {"st", "-n", "spcalc", "-g", "40x10", "-e", "bc", "-l", NULL }; +static Sp scratchpads[] = { + /* name cmd */ + {"spterm", spterm}, + {"spcalc", spcalc}, +}; + /* tagging */ static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; @@ -32,6 +44,8 @@ static const Rule rules[] = { /* class instance title tags mask isfloating monitor */ { "Gimp", NULL, NULL, 0, 1, -1 }, { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, + { NULL, "spterm", NULL, SPTAG(0), 1, -1 }, + { NULL, "spcalc", NULL, SPTAG(1), 1, -1 }, }; /* layout(s) */ @@ -66,8 +80,10 @@ static const Key keys[] = { /* modifier key function argument */ { MODKEY, XK_d, spawn, {.v = dmenucmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } }, + { MODKEY, XK_grave, togglescratch, {.ui = 0 } }, // spterm { MODKEY, XK_b, togglebar, {0} }, { MODKEY|ShiftMask, XK_b, toggleborder, {0} }, + { MODKEY, XK_c, togglescratch, {.ui = 1 } }, // spcalc { MODKEY, XK_s, togglesticky, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, |
