summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
author0scar <qgt268@alumni.ku.dk>2023-02-28 13:56:08 +0000
committer0scar <qgt268@alumni.ku.dk>2024-10-01 11:53:32 +0000
commit7fa3c98f91c4eb44ac9bf79136d119eb64874be4 (patch)
tree90b3a07c12723f4f470db6f83ee7636c85a53091 /config.def.h
parent40c2808d355606d7bff39daf23dbe23f2b73d585 (diff)
Patch: gap
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 82d9836..6489de3 100644
--- a/config.def.h
+++ b/config.def.h
@@ -16,6 +16,7 @@ static const float rootcolor[] = COLOR(0x222222ff);
static const float bordercolor[] = COLOR(0x444444ff);
static const float focuscolor[] = COLOR(0xae81ffff);
static const float urgentcolor[] = COLOR(0xff0000ff);
+static const unsigned int gappx = 5; /* default gap size */
/* This conforms to the xdg-protocol. Set the alpha to zero to restore the old behavior */
static const float fullscreen_bg[] = {0.1f, 0.1f, 0.1f, 1.0f}; /* You can also use glsl colors */
@@ -202,6 +203,12 @@ static const Key keys[] = {
{ WLR_MODIFIER_CTRL|WLR_MODIFIER_SHIFT, XKB_KEY_space, spawn, SHCMD("makoctl dismiss --all")},
{ WLR_MODIFIER_CTRL|MODKEY, XKB_KEY_space, spawn, SHCMD("makoctl restore")},
+ /* Adjust gaps */
+ { MODKEY, XKB_KEY_minus, setgaps, {.i = -1} },
+ { MODKEY, XKB_KEY_equal, setgaps, {.i = +1} },
+ { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_plus, setgaps, {.i = 0} },
+ { MODKEY, XKB_KEY_a, togglegaps, {0} },
+
TAGKEYS( XKB_KEY_1, XKB_KEY_exclam, 0),
TAGKEYS( XKB_KEY_2, XKB_KEY_at, 1),
TAGKEYS( XKB_KEY_3, XKB_KEY_numbersign, 2),