From 52e241cbef98aa3b6b3061f46ac5491f1e33816b Mon Sep 17 00:00:00 2001 From: Warrick Lo Date: Tue, 23 Nov 2021 00:29:38 -0800 Subject: Add gaps between windows --- config.def.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index a2ac963..2237251 100644 --- a/config.def.h +++ b/config.def.h @@ -2,6 +2,8 @@ /* appearance */ static const unsigned int borderpx = 1; /* border pixel of windows */ +static const int startwithgaps[] = { 1 }; /* 1 means gaps are used by default, this can be customized for each tag */ +static const unsigned int gappx[] = { 8 }; /* default gap between windows in pixels, this can be customized for each tag */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ @@ -85,6 +87,10 @@ static Key keys[] = { { MODKEY, XK_period, focusmon, {.i = +1 } }, { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, + { MODKEY, XK_minus, setgaps, {.i = -4 } }, + { MODKEY, XK_equal, setgaps, {.i = +4 } }, + { MODKEY|ShiftMask, XK_minus, setgaps, {.i = GAP_RESET } }, + { MODKEY|ShiftMask, XK_equal, setgaps, {.i = GAP_TOGGLE} }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) -- cgit v1.2.3