summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <craigmartinjennings@gmail.com>2022-07-16 14:04:08 -0500
committerCraig Jennings <craigmartinjennings@gmail.com>2022-07-16 14:04:08 -0500
commit9e004dcf35d648ff433e194a3a66c72f61e69692 (patch)
tree4b8b7778cea482982f0dfe01ee601862914c6589
parent7ddeee585ee4779ace288a1d15167df182d5567a (diff)
bc as scratchpad calc, enable bstackhoriz
-rw-r--r--config.def.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/config.def.h b/config.def.h
index 314fb96..902ba9f 100644
--- a/config.def.h
+++ b/config.def.h
@@ -46,6 +46,7 @@ const char *spcmd2[] = {"alacritty", "--class", "spnet", "-o", "window.dimensi
const char *spcmd3[] = {"alacritty", "--class", "spmp", "-o", "window.dimensions.columns=120", "-o", "window.dimensions.lines=35", "-e", "ncmpcpp", NULL };
const char *spcmd4[] = {"alacritty", "--class", "spbt", "-o", "window.dimensions.columns=120", "-o", "window.dimensions.lines=35", "-e", "tremc", NULL };
const char *spcmd5[] = {"alacritty", "--class", "spterm", "-o", "window.dimensions.columns=120", "-o", "window.dimensions.lines=35", "-e", "tmux", NULL };
+const char *spcmd6[] = {"alacritty", "--class", "spterm", "-o", "window.dimensions.columns=120", "-o", "window.dimensions.lines=35", "-e", "bc", NULL };
/*
St and other terminals which take a -g flag should take this format:
@@ -67,6 +68,7 @@ static Sp scratchpads[] = {
{"spmp", spcmd3},
{"spbt", spcmd4},
{"spterm", spcmd5},
+ {"spcalc", spcmd6},
/* {"keepassxc", spcmd3}, */
};
@@ -95,12 +97,12 @@ static const Rule rules[] = {
{ "Firefox", NULL, NULL, 0, 0, 0, -1, -1 },
{ "Alacritty", NULL, NULL, 0, 0, 1, 0, -1 },
{ "st", NULL, NULL, 0, 0, 1, 0, -1 },
- { "Gnome-calculator", NULL, "Calculator", 0, 1, 0, 0, -1 },
{ NULL, "spaudio", NULL, SPTAG(0), 1, 0, 0, -1 },
{ NULL, "spnet", NULL, SPTAG(1), 1, 0, 0, -1 },
{ NULL, "spmp", NULL, SPTAG(2), 1, 0, 0, -1 },
{ NULL, "spbt", NULL, SPTAG(3), 1, 0, 0, -1 },
{ NULL, "spterm", NULL, SPTAG(4), 1, 0, 0, -1 },
+ { NULL, "spcalc", NULL, SPTAG(5), 1, 0, 0, -1 },
{ NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, /* xev */
};
@@ -142,7 +144,6 @@ static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
/* { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, */
- { MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 4 } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
@@ -160,7 +161,7 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_f, setlayout, {.v = &layouts[1]} }, /* { "><>", NULL }, */
{ MODKEY|ShiftMask, XK_m, setlayout, {.v = &layouts[2]} }, /* { "[M]", monocle }, */
{ MODKEY|ShiftMask, XK_u, setlayout, {.v = &layouts[3]} }, /* { "TTT", bstack }, */
-/* { MODKEY, XK_u, setlayout, {.v = &layouts[4]} }, */ /* { "===", bstackhoriz }, */
+ { MODKEY, XK_u, setlayout, {.v = &layouts[4]} }, /* { "===", bstackhoriz }, */
{ MODKEY|ShiftMask, XK_d, setlayout, {.v = &layouts[5]} }, /* { "[D]", deck }, */
{ MODKEY|ShiftMask, XK_i, setlayout, {.v = &layouts[6]} }, /* { "|M|", centeredmaster }, */
{ MODKEY|ShiftMask, XK_o, setlayout, {.v = &layouts[7]} }, /* { ">M>", centeredfloatingmaster }, */
@@ -182,7 +183,8 @@ static Key keys[] = {
{ MODKEY, XK_n, togglescratch, {.ui = 1 } },
{ MODKEY, XK_slash, togglescratch, {.ui = 2 } },
{ MODKEY, XK_t, togglescratch, {.ui = 3 } },
-/*{ MODKEY, XK_b, togglescratch, {.ui = 4 } }, */
+ { MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 4 } },
+ { MODKEY, XK_x, togglescratch, {.ui = 5 } },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)