sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

dwm-bar_height-spacing-6.3.diff (1068B)


      1 diff --git a/config.def.h b/config.def.h
      2 index 1c0b587..9814500 100644
      3 --- a/config.def.h
      4 +++ b/config.def.h
      5 @@ -5,6 +5,7 @@ static const unsigned int borderpx  = 1;        /* border pixel of windows */
      6  static const unsigned int snap      = 32;       /* snap pixel */
      7  static const int showbar            = 1;        /* 0 means no bar */
      8  static const int topbar             = 1;        /* 0 means bottom bar */
      9 +static const int user_bh            = 2;        /* 2 is the default spacing around the bar's font */
     10  static const char *fonts[]          = { "monospace:size=10" };
     11  static const char dmenufont[]       = "monospace:size=10";
     12  static const char col_gray1[]       = "#222222";
     13 diff --git a/dwm.c b/dwm.c
     14 index 4465af1..2c27cb3 100644
     15 --- a/dwm.c
     16 +++ b/dwm.c
     17 @@ -1545,7 +1545,7 @@ setup(void)
     18  	if (!drw_fontset_create(drw, fonts, LENGTH(fonts)))
     19  		die("no fonts could be loaded.");
     20  	lrpad = drw->fonts->h;
     21 -	bh = drw->fonts->h + 2;
     22 +	bh = drw->fonts->h + user_bh;
     23  	updategeom();
     24  	/* init atoms */
     25  	utf8string = XInternAtom(dpy, "UTF8_STRING", False);