From 7b260620e770659dec436a90ba9101d37017dc32 Mon Sep 17 00:00:00 2001 From: Mouad Alami Date: Mon, 24 Apr 2023 23:23:46 +0100 Subject: bar height patch --- README | 2 +- config.h | 1 + dwm.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README b/README index 482193e..18628fd 100644 --- a/README +++ b/README @@ -49,4 +49,4 @@ and (re)compiling the source code. Patches applied --------------- -zoomswap - scratchpad - sticky - statuscmd - pertag - noborder - movestack - hide vacant tags - actualfullscreen +zoomswap - scratchpad - sticky - statuscmd - pertag - noborder - movestack - hide vacant tags - actualfullscreen - bar height diff --git a/config.h b/config.h index 7445d9b..74ee993 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 user_bh = 2; /* 2 is the default spacing around the bar's font */ static const char *fonts[] = { "monospace:size=11", "Noto Color Emoji:pixelsize=11:antialias=true:autohint=true"}; diff --git a/dwm.c b/dwm.c index 580d92d..545d3d9 100644 --- a/dwm.c +++ b/dwm.c @@ -1708,7 +1708,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 + user_bh; updategeom(); /* init atoms */ utf8string = XInternAtom(dpy, "UTF8_STRING", False); -- cgit v1.2.3