summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNPScript <nathan@reinerweb.ch>2022-05-01 16:25:57 +0200
committerNPScript <nathan@reinerweb.ch>2022-05-01 16:25:57 +0200
commiteb8e7e09c59d636908170d866bf5bd8418dedb48 (patch)
treebac376897b0f4fbd4c8676632b136eb3290e3a5c
parent3762ba5cb6db5184938d08dbf90e079916076f31 (diff)
add barpadding
-rw-r--r--config.h1
-rw-r--r--dwm.c2
2 files changed, 2 insertions, 1 deletions
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);