t* dwm + patches URI git clone git://git.codevoid.de/dwm-sdk DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 999ba9e97da4543cad348c7479fc9505afba7fc8 DIR parent 2ebef165079aefb3db533dd9a6d1dfa32f6a1915 URI Author: Stefan Hagen <sh+git[at]codevoid[dot]de> Date: Wed, 8 May 2019 16:34:35 +0200 Rev. back to tiny mode Diffstat: M config.h | 8 +++++--- M dwm.c | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) --- DIR diff --git a/config.h b/config.h t@@ -1,7 +1,9 @@ /* See LICENSE file for copyright and license details. */ +#define FONT "Terminus-8" + /* appearance */ -static const char *fonts[] = { "LuxiMono-10" }; +static const char *fonts[] = { FONT }; static const char normbgcolor[] = "#181818"; // top bar bg static const char normfgcolor[] = "#999999"; // top bar fg static const char selbgcolor[] = "#181818"; // top bar selection bg t@@ -27,10 +29,10 @@ static const char *colors[][3] = { }; /* dmenu options */ -#define DMENUOPTS "-fn", "LuxiMono-10" , "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor +#define DMENUOPTS "-fn", FONT , "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor /* tagging */ -static const char *tags[] = { "[1]", "[2]", "[3]", "[4]", "[5]", "[6]", "[7]", "[8]", "[9]" }; +static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; static const Rule rules[] = { DIR diff --git a/dwm.c b/dwm.c t@@ -859,7 +859,7 @@ drawbar(Monitor *m) drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]); drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i); if (occ & 1 << i) - drw_rect(drw, x + boxw + 7, 0, (w - ( 2 * boxw)) - 14, boxw / 2, + drw_rect(drw, x + boxw - 2, 0, w - boxw, boxw / 2, m == selmon && selmon->sel && selmon->sel->tags & 1 << i, urg & 1 << i); x += w;