bar height patch
This commit is contained in:
parent
a38e1a252f
commit
27ba2a6917
@ -7,6 +7,7 @@ static const int showbar = 1; /* 0 means no standard bar */
|
|||||||
static const int topbar = 1; /* 0 means standard bar at bottom */
|
static const int topbar = 1; /* 0 means standard bar at bottom */
|
||||||
static const int extrabar = 1; /* 0 means no extra bar */
|
static const int extrabar = 1; /* 0 means no extra bar */
|
||||||
static const char statussep = ';'; /* separator between statuses */
|
static const char statussep = ';'; /* separator between statuses */
|
||||||
|
static const int user_bh = 2; /* 2 is the default spacing around the bar's font */
|
||||||
static const char *fonts[] = { "monospace:size=10" };
|
static const char *fonts[] = { "monospace:size=10" };
|
||||||
static const char dmenufont[] = "monospace:size=10";
|
static const char dmenufont[] = "monospace:size=10";
|
||||||
static const char col_gray1[] = "#222222";
|
static const char col_gray1[] = "#222222";
|
||||||
|
2
dwm.c
2
dwm.c
@ -1693,7 +1693,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 = drw->fonts->h + 2;
|
bh = drw->fonts->h + user_bh;
|
||||||
updategeom();
|
updategeom();
|
||||||
/* init atoms */
|
/* init atoms */
|
||||||
utf8string = XInternAtom(dpy, "UTF8_STRING", False);
|
utf8string = XInternAtom(dpy, "UTF8_STRING", False);
|
||||||
|
25
patches/bar/appearance/dwm-bar-height-spacing-6.3.diff
Normal file
25
patches/bar/appearance/dwm-bar-height-spacing-6.3.diff
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
diff --git a/config.def.h b/config.def.h
|
||||||
|
index 1c0b587..9814500 100644
|
||||||
|
--- a/config.def.h
|
||||||
|
+++ b/config.def.h
|
||||||
|
@@ -5,6 +5,7 @@ static const unsigned int borderpx = 1; /* 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=10" };
|
||||||
|
static const char dmenufont[] = "monospace:size=10";
|
||||||
|
static const char col_gray1[] = "#222222";
|
||||||
|
diff --git a/dwm.c b/dwm.c
|
||||||
|
index 4465af1..2c27cb3 100644
|
||||||
|
--- a/dwm.c
|
||||||
|
+++ b/dwm.c
|
||||||
|
@@ -1545,7 +1545,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);
|
Loading…
Reference in New Issue
Block a user