diff options
author | Jackson Taylor <jtaylormuffins@gmail.com> | 2020-07-07 23:13:35 +0000 |
---|---|---|
committer | Jackson Taylor <jtaylor@classicalconversations.com> | 2022-02-07 10:19:29 -0500 |
commit | 9e4cacd3fba81b2f816fb44f45b40646e8f59781 (patch) | |
tree | 163ee5ac0921b609674910061d5ac7fe3c756336 | |
parent | a5f1c694db28c9c8447f558e79a0de612eeae88a (diff) |
Add variables to config.h
I originally removed config.h all together but that was dumb
-rw-r--r-- | config.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -14,6 +14,7 @@ static char normfgcolor[] = "#bbbbbb"; static char selfgcolor[] = "#eeeeee"; static char selbordercolor[] = "#005577"; static char selbgcolor[] = "#005577"; +static char scratchpadname[] = "scratchpad"; static char *colors[][3] = { /* fg bg border */ [SchemeNorm] = { normfgcolor, normbgcolor, normbordercolor }, @@ -42,6 +43,8 @@ static const Layout layouts[] = { { "[]=", tile }, /* first entry is default */ { "><>", NULL }, /* no layout function means floating behavior */ { "[M]", monocle }, + { "|M|", centeredmaster }, + { ">M>", centeredfloatingmaster }, }; /* key definitions */ @@ -59,6 +62,7 @@ static const Layout layouts[] = { static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbordercolor, "-sf", selfgcolor, NULL }; static const char *termcmd[] = { "st", NULL }; +static const char *scratchpadcmd[] = {"st", "-t", scratchpadname, "-g", "120x34", NULL}; static Key keys[] = { /* modifier key function argument */ @@ -77,6 +81,9 @@ static Key keys[] = { { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, + { MODKEY, XK_c, setlayout, {.v = &layouts[3]} }, + { MODKEY|ShiftMask, XK_c, setlayout, {.v = &layouts[4]} }, + { MODKEY, XK_grave, togglescratch, {.v = scratchpadcmd } }, { MODKEY, XK_space, setlayout, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, { MODKEY, XK_0, view, {.ui = ~0 } }, |