add window gaps

This commit is contained in:
2026-01-31 01:19:57 -08:00
parent e31d9b12cd
commit 245fba4425
2 changed files with 63 additions and 13 deletions

View File

@ -2,6 +2,8 @@
/* appearance */
static const unsigned int borderpx = 5; /* border pixel of windows */
// add gappx
static const unsigned int gappx = 8;
static const unsigned int snap = 32; /* snap pixel */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 0; /* 0 means bottom bar */
@ -47,7 +49,7 @@ static const Layout layouts[] = {
};
/* key definitions */
#define MODKEY Mod1Mask
#define MODKEY Mod4Mask
#define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
@ -117,6 +119,8 @@ static const Key keys[] = {
{ MODKEY|ControlMask, XK_b, spawn, {.v = bgselectcmd } },
{ MODKEY|ControlMask|ShiftMask, XK_a, spawn, {.v = audioswitchcmd } },
{ MODKEY|ControlMask|ShiftMask, XK_d, spawn, {.v = displayctlcmd } },
{ MODKEY|ShiftMask, XK_minus, setgaps, {.i = -1 } },
{ MODKEY|ShiftMask, XK_equal, setgaps, {.i = +1 } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY|ShiftMask, XK_f, togglefullscr, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },