myvxwm

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

commit 72824b03c5b74b7982dd93453a79fe7c55203956
parent 7b2b29935ed6b1048d6d773c461d7cbed8f661ad
Author: wh1tepearl <wh1tepearl@gmail.com>
Date:   Thu, 29 Jan 2026 23:21:10 +0000

New floating layout behaviour, btw i have no electricity rn because of Depression Kristin and i don't know when i will have

Diffstat:
Mmodules.def.h | 4++--
Mvxwm.c | 5++++-
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/modules.def.h b/modules.def.h @@ -16,6 +16,6 @@ #define ALWAYS_CENTER_NEW_FLOATING_WINDOWS 0 //so, basically, it does what it says #define WARP_TO_CLIENT 0 //it warps cursor, where? idk, but use it trust me bro #define WARP_TO_CLIENT_AFFECTED_BY_INCNMASTER 0 -#define TAG_TO_TAG 1 //if you switch to tag where you already are, it'll switch to previous tag - +#define TAG_TO_TAG 0 //if you switch to tag where you already are, it'll switch to previous tag +#define FLOATING_LAYOUT_FLOATS_WINDOWS 1 //by default, in floating layout, windows appear to be floating, but, for dwm, they are not. Because of this, when switching to tiled layout after floating layout, windows will be tiled, enable this if you don't want that behaviour. #endif diff --git a/vxwm.c b/vxwm.c @@ -1126,7 +1126,10 @@ manage(Window w, XWindowAttributes *wa) c->mon = selmon; applyrules(c); } - +#if FLOATING_LAYOUT_FLOATS_WINDOWS + if (selmon->lt[selmon->sellt]->arrange == NULL) + c->isfloating = 1; +#endif if (c->x + WIDTH(c) > c->mon->wx + c->mon->ww) c->x = c->mon->wx + c->mon->ww - WIDTH(c); if (c->y + HEIGHT(c) > c->mon->wy + c->mon->wh)