commit f67511ff4bccaa3d22c0affa4fcffdac0947c0ff
parent 715ef421126d0d7a1394ce2545c13483a536df8a
Author: Alex Balgavy <alex@balgavy.eu>
Date: Wed, 15 Sep 2021 12:57:25 +0200
Keybindings and settings
Diffstat:
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/config.h b/config.h
@@ -36,15 +36,16 @@ static const Rule rules[] = {
* WM_CLASS(STRING) = instance, class
* WM_NAME(STRING) = title
*/
- /* class instance title tags mask isfloating isterminal noswallow monitor */
- { "Gimp", NULL, NULL, 1 << 8, 0, 0, 0, -1 },
- { TERMCLASS, NULL, NULL, 0, 0, 1, 0, -1 },
- { "Desktop-session-exit.py", NULL, NULL, 0, 1, 0, 0, -1 },
- { NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 },
+ /* class, instance, title, tags, isfloating, isterminal, noswallow, monitor */
+ { "Gimp", NULL, NULL, 1 << 8, 0, 0, 0, -1 },
+ { TERMCLASS, NULL, NULL, 0, 0, 1, 0, -1 },
+ { "Desktop-session-exit.py", NULL, NULL, 0, 1, 0, 0, -1 },
+ { NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 },
+ { "Brave-browser", "brave-browser", NULL, 9 << 8, 0, 0, 0, -1 },
};
/* layout(s) */
-static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
+static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */
static const int nmaster = 1; /* number of clients in master area */
static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */
@@ -128,8 +129,9 @@ static Key keys[] = {
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
- { MODKEY, XK_h, setmfact, {.f = -0.05} },
- { MODKEY, XK_l, setmfact, {.f = +0.05} },
+ { Mod1Mask|ShiftMask, XK_h, setmfact, {.f = -0.05} },
+ { Mod1Mask|ShiftMask, XK_l, setmfact, {.f = +0.05} },
+ { Mod1Mask|ShiftMask, XK_equal, setmfact, {.f = mfact+1} },
{ MODKEY|ShiftMask, XK_Return, zoom, {0} },
{ MODKEY|Mod1Mask, XK_u, incrgaps, {.i = +1 } },
{ MODKEY|Mod1Mask|ShiftMask, XK_u, incrgaps, {.i = -1 } },
@@ -148,7 +150,7 @@ static Key keys[] = {
{ MODKEY|Mod1Mask, XK_0, togglegaps, {0} },
{ MODKEY|Mod1Mask|ShiftMask, XK_0, defaultgaps, {0} },
{ MODKEY, XK_Tab, view, {0} },
- { MODKEY, XK_q, killclient, {0} },
+ { MODKEY|ShiftMask, XK_c, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, // tile
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, // monocle
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, // spiral
@@ -161,6 +163,7 @@ static Key keys[] = {
{ MODKEY, XK_period, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
+ { Mod1Mask|ShiftMask, XK_q, quit, {0} },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)