add status bar height

This commit is contained in:
Ray Andrew 2024-10-07 21:50:01 -05:00
parent 94b8512d06
commit ccb34e97be
2 changed files with 3 additions and 2 deletions

View file

@ -18,7 +18,8 @@ static const unsigned int gappov = 5; /* vert outer gap between w
static int smartgaps = 0; /* 1 means no outer gap when there is only one window */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 0; /* 0 means bottom bar */
static const int vertpad = 0; /* vertical padding of bar */
static const int user_bh = 50; /* 0 means that dwm will calculate bar height, >= 1 means dwm will user_bh as bar height */
static const int vertpad = 8; /* vertical padding of bar */
static const int sidepad = 5; /* horizontal padding of bar */
static const char *fonts[] = {
"JetBrainsMonoNL Nerd Font:size=20",

2
dwm.c
View file

@ -2249,7 +2249,7 @@ setup(void)
if (!drw_fontset_create(drw, fonts, LENGTH(fonts)))
die("no fonts could be loaded.");
lrpad = drw->fonts->h;
bh = drw->fonts->h + 2;
bh = user_bh ? user_bh : drw->fonts->h + 2;
sp = sidepad;
vp = (topbar == 1) ? vertpad : - vertpad;
updategeom();