diff options
| author | Warrick Lo <warrick.s.z.lo@gmail.com> | 2021-11-23 00:29:38 -0800 |
|---|---|---|
| committer | Warrick Lo <warrick.s.z.lo@gmail.com> | 2021-11-23 00:29:38 -0800 |
| commit | 52e241cbef98aa3b6b3061f46ac5491f1e33816b (patch) | |
| tree | 7096e4b03cd6715524350f25780e7bae6d8d376d /config.def.h | |
| parent | Add pertag functionality (diff) | |
Add gaps between windows
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 6 |
1 files changed, 6 insertions, 0 deletions
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) |