Add statuspadding patch

This commit is contained in:
BitHeaven 2024-05-31 19:16:24 +05:00
parent 645882cc94
commit 5d304c99af
6 changed files with 8 additions and 3 deletions

View File

@ -5,5 +5,6 @@ gaplessgrid
status2d + extrabar
barpadding + notitle
resizecorners
statuspadding
fonts?
- fonts

View File

@ -9,6 +9,8 @@ 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 char statussep = ';';
static const int horizpadbar = 8; /* horizontal padding for statusbar */
static const int vertpadbar = 12; /* vertical padding for statusbar */
static const char *fonts[] = { "Ubuntu Mono:size=12" };
static const char dmenufont[] = "Ubuntu Mono:size=12";
static const char col_gray1[] = "#222222";

View File

@ -9,6 +9,8 @@ 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 char statussep = ';';
static const int horizpadbar = 8; /* horizontal padding for statusbar */
static const int vertpadbar = 12; /* vertical padding for statusbar */
static const char *fonts[] = { "Ubuntu Mono:size=12" };
static const char dmenufont[] = "Ubuntu Mono:size=12";
static const char col_gray1[] = "#222222";

BIN
dwm

Binary file not shown.

4
dwm.c
View File

@ -1704,8 +1704,8 @@ setup(void)
drw = drw_create(dpy, screen, root, sw, sh);
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);

BIN
dwm.o

Binary file not shown.