aboutsummaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
authorgonzo <gonzo@toniatuh.com>2023-05-17 20:28:10 +0200
committergonzo <gonzo@toniatuh.com>2023-05-17 20:28:10 +0200
commitb206a544652e7f1c06172b4c059c057cf946d9ef (patch)
tree5d7ff326fb9dd4eb156f555501da9b908e2928d9 /config.h
parentf385a8797302dfdfcd6a38649f09011b491783c5 (diff)
downloaddwm-b206a544652e7f1c06172b4c059c057cf946d9ef.tar.gz
added scratchpads for term and bc
Diffstat (limited to 'config.h')
-rw-r--r--config.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/config.h b/config.h
index fb1728d..bc1c11f 100644
--- a/config.h
+++ b/config.h
@@ -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 } },