myvxwm

[fork] my vxwm config (optimised for my T480)
git clone https://git.lukeonline.net/repos/myvxwm
Log | Files | Refs | README | LICENSE

commit 5eb297142aa4bcabd7f6094af66bcffc8cf2b0a9
parent a9525f516bc4c935ec75dd8c892ac71c5d5d5adf
Author: wh1tepearl <wh1tepearl@gmail.com>
Date:   Fri, 22 May 2026 13:14:44 +0100

coordinates style configuration

Diffstat:
Mconfig.def.h | 1+
Mvxwm.c | 6+++++-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h @@ -9,6 +9,7 @@ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ static const char *fonts[] = { "monospace:size=10" }; static const char dmenufont[] = "monospace:size=10"; +#define COORDINATES_STYLE "[x%d y%d]" /* The style of coordinates displayed in bar, do not remove %d. */ static MAYBE_CONST char normbgcolor[] = "#222222"; static MAYBE_CONST char normbordercolor[] = "#444444"; diff --git a/vxwm.c b/vxwm.c @@ -882,10 +882,14 @@ drawbar(Monitor *m) #define COORDINATES_DIVISOR 1 #endif + #ifndef COORDINATES_STYLE + #define COORDINATES_STYLE "[x%d y%d]" + #endif + if (selmon->lt[selmon->sellt]->arrange == NULL) { int tagidx = getcurrenttag(m); char coords[64]; - snprintf(coords, sizeof(coords), "x%d y%d", + snprintf(coords, sizeof(coords), COORDINATES_STYLE, m->canvas[tagidx].cx / COORDINATES_DIVISOR, m->canvas[tagidx].cy / COORDINATES_DIVISOR); w = TEXTW(coords);