| dwm-leftstack-6.2.diff - sites - public wiki contents of suckless.org | |
| git clone git://git.suckless.org/sites | |
| Log | |
| Files | |
| Refs | |
| --- | |
| dwm-leftstack-6.2.diff (1507B) | |
| --- | |
| 1 From 4b24cf1c15e59d609f0f755d9808ba240ea9c0f2 Mon Sep 17 00:00:00 2001 | |
| 2 From: codesoap <[email protected]> | |
| 3 Date: Sat, 21 Nov 2020 19:01:31 +0100 | |
| 4 Subject: [PATCH] Move stacking area to the left for the tiled layout | |
| 5 | |
| 6 --- | |
| 7 config.def.h | 2 +- | |
| 8 dwm.c | 4 ++-- | |
| 9 2 files changed, 3 insertions(+), 3 deletions(-) | |
| 10 | |
| 11 diff --git a/config.def.h b/config.def.h | |
| 12 index 1c0b587..edb152d 100644 | |
| 13 --- a/config.def.h | |
| 14 +++ b/config.def.h | |
| 15 @@ -38,7 +38,7 @@ static const int resizehints = 1; /* 1 means respec… | |
| 16 | |
| 17 static const Layout layouts[] = { | |
| 18 /* symbol arrange function */ | |
| 19 - { "[]=", tile }, /* first entry is default */ | |
| 20 + { "=[]", tile }, /* first entry is default */ | |
| 21 { "><>", NULL }, /* no layout function means floating b… | |
| 22 { "[M]", monocle }, | |
| 23 }; | |
| 24 diff --git a/dwm.c b/dwm.c | |
| 25 index 4465af1..355e145 100644 | |
| 26 --- a/dwm.c | |
| 27 +++ b/dwm.c | |
| 28 @@ -1687,11 +1687,11 @@ tile(Monitor *m) | |
| 29 for (i = my = ty = 0, c = nexttiled(m->clients); c; c = nexttil… | |
| 30 if (i < m->nmaster) { | |
| 31 h = (m->wh - my) / (MIN(n, m->nmaster) - i); | |
| 32 - resize(c, m->wx, m->wy + my, mw - (2*c->bw), h … | |
| 33 + resize(c, m->wx + m->ww - mw, m->wy + my, mw - … | |
| 34 my += HEIGHT(c); | |
| 35 } else { | |
| 36 h = (m->wh - ty) / (n - i); | |
| 37 - resize(c, m->wx + mw, m->wy + ty, m->ww - mw - … | |
| 38 + resize(c, m->wx, m->wy + ty, m->ww - mw - (2*c-… | |
| 39 ty += HEIGHT(c); | |
| 40 } | |
| 41 } | |
| 42 -- | |
| 43 2.28.0 | |
| 44 |