mirror of
https://github.com/alrayyes/dwm
synced 2023-11-14 15:56:31 +00:00
37 lines
1.7 KiB
Diff
37 lines
1.7 KiB
Diff
diff -up -N a/config.def.h b/config.def.h
|
|
--- a/config.def.h 2020-12-01 11:12:09.214062117 +0100
|
|
+++ b/config.def.h 2020-12-01 11:15:20.540986211 +0100
|
|
@@ -9,6 +9,8 @@ static const int systraypinningfailfirst
|
|
static const int showsystray = 1; /* 0 means no systray */
|
|
static const int showbar = 1; /* 0 means no bar */
|
|
static const int topbar = 1; /* 0 means bottom bar */
|
|
+static const int horizpadbar = 2; /* horizontal padding for statusbar */
|
|
+static const int vertpadbar = 0; /* vertical padding for statusbar */
|
|
static const char *fonts[] = { "monospace:size=10" };
|
|
static const char dmenufont[] = "monospace:size=10";
|
|
static const char col_gray1[] = "#222222";
|
|
--- a/dwm.c 2020-12-01 11:12:09.214062117 +0100
|
|
+++ b/dwm.c 2020-12-01 11:13:44.657524937 +0100
|
|
@@ -844,8 +844,8 @@ drawbar(Monitor *m)
|
|
/* draw status first so it can be overdrawn by tags later */
|
|
if (m == selmon) { /* status is only drawn on selected monitor */
|
|
drw_setscheme(drw, scheme[SchemeNorm]);
|
|
- sw = TEXTW(stext) - lrpad / 2 + 2; /* 2px right padding */
|
|
- drw_text(drw, m->ww - sw - stw, 0, sw, bh, lrpad / 2 - 2, stext, 0);
|
|
+ sw = TEXTW(stext);
|
|
+ drw_text(drw, m->ww - sw, 0, sw, bh, lrpad / 2, stext, 0);
|
|
}
|
|
|
|
resizebarwin(m);
|
|
@@ -1913,8 +1913,8 @@ setup(void)
|
|
drw = drw_create(dpy, screen, root, sw, sh, visual, depth, cmap);
|
|
if (!drw_fontset_create(drw, fonts, LENGTH(fonts)))
|
|
die("no fonts could be loaded.");
|
|
- lrpad = drw->fonts->h;
|
|
- bh = drw->fonts->h + 2;
|
|
+ lrpad = drw->fonts->h + horizpadbar;
|
|
+ bh = drw->fonts->h + vertpadbar;
|
|
updategeom();
|
|
/* init atoms */
|
|
utf8string = XInternAtom(dpy, "UTF8_STRING", False);
|