summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-04-26 12:34:14 -0400
committerLuke Smith <luke@lukesmith.xyz>2020-04-26 12:34:14 -0400
commit806bb2a2bfde3d50d7405126729ed2a2544f11ca (patch)
tree7ace2f432a016b1027f0fea5eadbb06b17efee25 /config.h
parent206a4a38334566a59d7e7ca36f51196a3cdc9a71 (diff)
expandible scratchpad patch
super+shift+return for dropdown terminal super+' for dropdown calculator
Diffstat (limited to 'config.h')
-rw-r--r--config.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/config.h b/config.h
index 3a0c3bc..ed08b39 100644
--- a/config.h
+++ b/config.h
@@ -11,7 +11,7 @@ static const int smartgaps = 0; /* 1 means no outer gap when the
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
static const char *fonts[] = { "monospace:size=10", "JoyPixels:pixelsize=10:antialias=true:autohint=true" };
-static char dmenufont[] = "monospace:size=10";
+static char dmenufont[] = "monospace:size=10";
static char normbgcolor[] = "#222222";
static char normbordercolor[] = "#444444";
static char normfgcolor[] = "#bbbbbb";
@@ -24,6 +24,18 @@ static char *colors[][3] = {
[SchemeSel] = { selfgcolor, selbgcolor, selbordercolor },
};
+typedef struct {
+ const char *name;
+ const void *cmd;
+} Sp;
+const char *spcmd1[] = {"st", "-n", "spterm", "-g", "120x34", NULL };
+const char *spcmd2[] = {"st", "-n", "spcalc", "-f", "monospace:size=16", "-g", "50x20", "-e", "bc", "-lq", NULL };
+static Sp scratchpads[] = {
+ /* name cmd */
+ {"spterm", spcmd1},
+ {"spranger", spcmd2},
+};
+
/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
@@ -35,6 +47,8 @@ static const Rule rules[] = {
/* class instance title tags mask isfloating isterminal noswallow monitor */
{ "Gimp", NULL, NULL, 1 << 8, 0, 0, 0, -1 },
{ "St", NULL, NULL, 0, 0, 1, 0, -1 },
+ { NULL, "spterm", NULL, SPTAG(0), 1, 1, 0, -1 },
+ { NULL, "spcalc", NULL, SPTAG(1), 1, 1, 0, -1 },
};
/* layout(s) */
@@ -156,10 +170,10 @@ static Key keys[] = {
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY, XK_semicolon, shiftview, { .i = 1 } },
/* { MODKEY|ShiftMask, XK_semicolon, shiftview, SHCMD("") }, */
- /* { MODKEY, XK_apostrophe, spawn, SHCMD("") }, */
+ { MODKEY, XK_apostrophe, togglescratch, {.ui = 1} },
/* { MODKEY|ShiftMask, XK_apostrophe, spawn, SHCMD("") }, */
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
- /* { MODKEY|ShiftMask, XK_Return, togglescratch, {.v = scratchpadcmd } }, */
+ { MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0} },
{ MODKEY, XK_z, incrgaps, {.i = +1 } },
{ MODKEY|ShiftMask, XK_z, incrgaps, {.i = -1 } },
@@ -255,7 +269,6 @@ static Key keys[] = {
/* { MODKEY|ShiftMask, XK_y, incrovgaps, {.i = +1 } }, */
/* { MODKEY|ShiftMask, XK_o, incrovgaps, {.i = -1 } }, */
-
};
/* button definitions */