commit 22c5db66660ea75607f635043af176bf0ccafea7
parent 2e6cddb03cba11f8d7af7662f3f16e1830bb7ad7
Author: hhvn <dev@hhvn.uk>
Date: Sun, 9 Jan 2022 19:39:33 +0000
config.h dwm.c: variable for seperator width
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/config.h b/config.h
@@ -3,6 +3,7 @@
/* appearance */
static const unsigned int borderpx = 2; /* border pixel of windows */
static const unsigned int gappx = 8;
+static const unsigned int seppx = 1;
static const unsigned int snap = 1; /* snap pixel */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
diff --git a/dwm.c b/dwm.c
@@ -870,12 +870,12 @@ drawbar(Monitor *m)
}
remainder--;
}
- drw_text(drw, x, 0, tabw - borderpx, bh, lrpad / 2, c->name, 0);
+ drw_text(drw, x, 0, tabw, bh, lrpad / 2, c->name, 0);
if (c->next) {
/* draw seperator */
drw_setscheme(drw, scheme[SchemeSel]);
- drw_rect(drw, x + tabw - borderpx, 0, borderpx, bh, 1, 1);
+ drw_rect(drw, x + tabw - seppx, 0, seppx, bh, 1, 1);
}
x += tabw;