bar height config

testing
E. Almqvist 3 years ago
parent 616507aa15
commit ac704eaacf
  1. 1
      src/config.h
  2. 2
      src/dwm.c

@ -11,6 +11,7 @@ static const unsigned int gappx = 0;
static const unsigned int gapmodes[] = { 0, 64 }; static const unsigned int gapmodes[] = { 0, 64 };
static const int showbar = 1; /* 0 means no bar */ static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */ static const int topbar = 1; /* 0 means bottom bar */
static const int barverticalpadding = 6; /* Vertical bar padding */
static const int usealtbar = 0; /* 1 means use non-dwm status bar */ static const int usealtbar = 0; /* 1 means use non-dwm status bar */
static const char *altbarclass = "Polybar"; /* Alternate bar class name */ static const char *altbarclass = "Polybar"; /* Alternate bar class name */

@ -2072,7 +2072,7 @@ setup(void)
if (!drw_fontset_create(drw, fonts, LENGTH(fonts))) if (!drw_fontset_create(drw, fonts, LENGTH(fonts)))
die("no fonts could be loaded."); die("no fonts could be loaded.");
lrpad = drw->fonts->h; lrpad = drw->fonts->h;
bh = usealtbar ? 0 : drw->fonts->h + 5; bh = usealtbar ? 0 : drw->fonts->h + barverticalpadding;
updategeom(); updategeom();
/* init atoms */ /* init atoms */
utf8string = XInternAtom(dpy, "UTF8_STRING", False); utf8string = XInternAtom(dpy, "UTF8_STRING", False);

Loading…
Cancel
Save