From 7fa3c98f91c4eb44ac9bf79136d119eb64874be4 Mon Sep 17 00:00:00 2001 From: 0scar Date: Tue, 28 Feb 2023 14:56:08 +0100 Subject: Patch: gap --- config.def.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'config.def.h') 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), -- cgit v1.3