bar height

This commit is contained in:
Debucquoy Anthony 2023-04-12 15:18:17 +02:00
parent 2b0fa8c0cf
commit 5c440dfd8c
Signed by: tonitch
GPG Key ID: A78D6421F083D42E
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,8 @@
static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
static const unsigned int alpha = 0xf0;
/* -fn option overrides fonts[0]; default X11 font or font set */
static const int user_bt = 0; /* add an defined amount of pixels to the bar height */
static const char *fonts[] = {
"monospace:size=10"
};

View File

@ -643,7 +643,8 @@ setup(void)
utf8 = XInternAtom(dpy, "UTF8_STRING", False);
/* calculate menu geometry */
bh = drw->fonts->h + 2;
bh = drw->fonts->h;
bh = user_bh ? bh + user_bh : bh + 2;
lines = MAX(lines, 0);
mh = (lines + 1) * bh;
#ifdef XINERAMA