From eb8e7e09c59d636908170d866bf5bd8418dedb48 Mon Sep 17 00:00:00 2001 From: NPScript Date: Sun, 1 May 2022 16:25:57 +0200 Subject: add barpadding --- config.h | 1 + dwm.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.h b/config.h index db7ca5e..a0fa898 100644 --- a/config.h +++ b/config.h @@ -5,6 +5,7 @@ static const unsigned int borderpx = 2; /* border pixel of windows */ 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 */ +static const int barpadding = 5; static const char *fonts[] = { "SauceCodePro Nerd Font:size=10" }; static const char dmenufont[] = "SauceCodePro Nerd Font:size=10"; static const char col_gray1[] = "#222222"; diff --git a/dwm.c b/dwm.c index de24414..200e1f5 100644 --- a/dwm.c +++ b/dwm.c @@ -1553,7 +1553,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 = drw->fonts->h + 2 + barpadding; updategeom(); /* init atoms */ utf8string = XInternAtom(dpy, "UTF8_STRING", False); -- cgit v1.2.3-70-g09d2