diff options
author | Eduardo Pedroni <e.pedroni91@gmail.com> | 2019-03-17 14:49:14 +0100 |
---|---|---|
committer | Eduardo Pedroni <e.pedroni91@gmail.com> | 2019-03-17 14:49:14 +0100 |
commit | e2a460de4089603ca0694b57e95ba017f6d17239 (patch) | |
tree | 6ab7d8adde891ed0ac8c83fe517a4c552e9df86f | |
parent | c0f4867da07a17d6ccc172a26f9d67151ac070a4 (diff) |
Parameterised status bar padding
-rw-r--r-- | config-desktop.h | 1 | ||||
-rw-r--r-- | config-laptop.h | 1 | ||||
-rw-r--r-- | dwm.c | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/config-desktop.h b/config-desktop.h index 5401ef8..90159ee 100644 --- a/config-desktop.h +++ b/config-desktop.h @@ -22,6 +22,7 @@ static const char colors[NUMCOLORS][ColLast][8] = { }; static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int snap = 8; /* snap pixel */ +static const int statusbarpadding = 0; static const Bool showbar = True; /* False means no bar */ static const Bool topbar = False; /* False means bottom bar */ static const Bool showtitle = False; /* True means titles are shown on bar */ diff --git a/config-laptop.h b/config-laptop.h index bc9e02f..4d18558 100644 --- a/config-laptop.h +++ b/config-laptop.h @@ -28,6 +28,7 @@ static const char colors[NUMCOLORS][ColLast][8] = { }; static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int snap = 8; /* snap pixel */ +static const int statusbarpadding = 3; static const Bool showbar = True; /* False means no bar */ static const Bool topbar = False; /* False means bottom bar */ static const Bool showtitle = False; /* True means titles are shown on bar */ @@ -1292,7 +1292,7 @@ initfont(const char *fontstr) { && !(dc.font.xfont = XftFontOpenName(dpy, screen, "fixed"))) die("error, cannot load font: '%s'\n", fontstr); - dc.font.ascent = dc.font.xfont->ascent + 3; + dc.font.ascent = dc.font.xfont->ascent + statusbarpadding; dc.font.descent = dc.font.xfont->descent; dc.font.height = dc.font.ascent + dc.font.descent; } |