dwm

my heavily-patched and customized dwm build
git clone git://git.kocotian.pl/dwm.git
Log | Files | Refs | README | LICENSE

commit bc43b15c03e62219410dc45f781e59c66f8761ff
parent baf13098c4b7b9694d762c77e06d66135acb653c
Author: kocotian <kocotian@kocotian.pl>
Date:   Mon,  4 Jan 2021 11:15:07 +0100

Mod+Ctrl+HJKL now floats selected window if not floatin

Diffstat:
Mconfig.def.h | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -291,17 +291,21 @@ static void modmove(const Arg *arg) if ((arg->i >> 1) & 1) { /* hl */ if ((arg->i >> 2) & 1) { /* l */ if (f) a.v = (arg->i & 1 ? "0x 0y 25w 0h" : "25x 0y 0w 0h"), moveresize(&a); + else if (arg->i & 1) togglefloating(0), modmove(arg); else a.f = +0.25, setcfact(&a); } else { /* h */ if (f) a.v = (arg->i & 1 ? "0x 0y -25w 0h" : "-25x 0y 0w 0h"), moveresize(&a); + else if (arg->i & 1) togglefloating(0), modmove(arg); else a.f = -0.25, setcfact(&a); } } else { /* jk */ if ((arg->i >> 2) & 1) { /* k */ if (f) a.v = (arg->i & 1 ? "0x 0y 0w -25h" : "0x -25y 0w 0h"), moveresize(&a); + else if (arg->i & 1) togglefloating(0), modmove(arg); else a.f = -1, movestack(&a); } else { /* j */ if (f) a.v = (arg->i & 1 ? "0x 0y 0w 25h" : "0x 25y 0w 0h"), moveresize(&a); + else if (arg->i & 1) togglefloating(0), modmove(arg); else a.f = +1, movestack(&a); } }