The current code has a fixed margins of 2, add a compile time tunable to
edit it
---
 config.def.h | 1 +
 dwm.c        | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h
index a9ac303..3dbbfa5 100644
--- a/config.def.h
+++ b/config.def.h
@@ -2,6 +2,7 @@
 
 /* appearance */
 static const unsigned int borderpx  = 1;        /* border pixel of windows */
+static const unsigned int barmargin = 2;        /* top/botteom bar margins */
 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 */
diff --git a/dwm.c b/dwm.c
index ff893df..f49e30c 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1546,7 +1546,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 + barmargin;
        updategeom();
        /* init atoms */
        utf8string = XInternAtom(dpy, "UTF8_STRING", False);
-- 
2.13.6


Reply via email to