expandible scratchpad patch
super+shift+return for dropdown terminal super+' for dropdown calculator
This commit is contained in:
21
config.h
21
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 */
|
||||
|
||||
Reference in New Issue
Block a user