diff --git a/PATCHES b/PATCHES index 89fa35f..a380dfd 100644 --- a/PATCHES +++ b/PATCHES @@ -5,5 +5,6 @@ gaplessgrid status2d + extrabar barpadding + notitle resizecorners +statuspadding -fonts? +- fonts diff --git a/config.def.h b/config.def.h index e28ecff..6c90603 100644 --- a/config.def.h +++ b/config.def.h @@ -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"; diff --git a/config.h b/config.h index e28ecff..6c90603 100644 --- a/config.h +++ b/config.h @@ -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"; diff --git a/dwm b/dwm index aa42f49..6fee684 100755 Binary files a/dwm and b/dwm differ diff --git a/dwm.c b/dwm.c index 2e184d9..8b65d75 100644 --- a/dwm.c +++ b/dwm.c @@ -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); diff --git a/dwm.o b/dwm.o index 931c5f9..ba5a39d 100644 Binary files a/dwm.o and b/dwm.o differ