implemented statuspadding patch to have some inner padding on the statusbar

master
_N0x 3 years ago
parent e429212501
commit 40485a8f99

@ -13,6 +13,8 @@ static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
static const int vertpad = 8; /* vertical padding of bar */
static const int sidepad = 8; /* horizontal padding of bar */
static const int horizpadbar = 2; /* horizontal padding for statusbar */
static const int vertpadbar = 6; /* vertical padding for statusbar */
static const char *fonts[] = { "MesloLGS NF:size=11" };
static const char dmenufont[] = "MesloLGS NF:size=11";
static const char dmenupromt[] = "Run:";

@ -1929,8 +1929,8 @@ setup(void)
drw = drw_create(dpy, screen, root, sw, sh);
if (!drw_fontset_create(drw, fonts, LENGTH(fonts)))
die("no fonts could be loaded.");
lrpad = drw->fonts->h;
bh = drw->fonts->h + 2;
lrpad = drw->fonts->h + horizpadbar;
bh = drw->fonts->h + vertpadbar;
updategeom();
sp = sidepad;
vp = (topbar == 1) ? vertpad : - vertpad;

Loading…
Cancel
Save