myvxwm

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

commit cbe3343b2898f9e5b0c2308ed9f000d08f3350b5
parent 8887a879a62e9ee4e7e9f467d66ec6f7a3782501
Author: wh1tepearl <wh1tepearl@gmail.com>
Date:   Tue,  3 Mar 2026 18:03:21 +0000

make coordinates only be shown when layout is NULL

Diffstat:
Mvxwm.c | 23++++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/vxwm.c b/vxwm.c @@ -854,19 +854,24 @@ drawbar(Monitor *m) x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0); #if INFINITE_TAGS && IT_SHOW_COORDINATES_IN_BAR + #if COORDINATES_DIVISOR <= 0 #undef COORDINATES_DIVISOR #define COORDINATES_DIVISOR 1 #endif - int tagidx = getcurrenttag(m); - char coords[64]; - snprintf(coords, sizeof(coords), "[x%d y%d]", - m->canvas[tagidx].cx / COORDINATES_DIVISOR, - m->canvas[tagidx].cy / COORDINATES_DIVISOR); - w = TEXTW(coords); - drw_setscheme(drw, scheme[SchemeNorm]); - drw_text(drw, x, 0, w, bh, lrpad / 2, coords, 0); - x += w; + + if (selmon->lt[selmon->sellt]->arrange == NULL) { + int tagidx = getcurrenttag(m); + char coords[64]; + snprintf(coords, sizeof(coords), "[x%d y%d]", + m->canvas[tagidx].cx / COORDINATES_DIVISOR, + m->canvas[tagidx].cy / COORDINATES_DIVISOR); + w = TEXTW(coords); + drw_setscheme(drw, scheme[SchemeNorm]); + drw_text(drw, x, 0, w, bh, lrpad / 2, coords, 0); + x += w; + } + #endif if ((w = m->ww - tw - x) > bh) {