sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit de8a25a1126b381870dcef51abf7ccc6990a07bd
parent 212d02fa3e506a8de9f18bdff3f638f3292d8f54
Author: codesoap <codesoap@mailbox.org>
Date:   Sat, 21 Nov 2020 19:36:26 +0100

[dwm][patch][leftfload] Add patch

Diffstat:
Adwm.suckless.org/patches/leftstack/dwm-leftstack-6.2.diff | 44++++++++++++++++++++++++++++++++++++++++++++
Adwm.suckless.org/patches/leftstack/index.md | 18++++++++++++++++++
2 files changed, 62 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/leftstack/dwm-leftstack-6.2.diff b/dwm.suckless.org/patches/leftstack/dwm-leftstack-6.2.diff @@ -0,0 +1,44 @@ +From 4b24cf1c15e59d609f0f755d9808ba240ea9c0f2 Mon Sep 17 00:00:00 2001 +From: codesoap <codesoap@mailbox.org> +Date: Sat, 21 Nov 2020 19:01:31 +0100 +Subject: [PATCH] Move stacking area to the left for the tiled layout + +--- + config.def.h | 2 +- + dwm.c | 4 ++-- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/config.def.h b/config.def.h +index 1c0b587..edb152d 100644 +--- a/config.def.h ++++ b/config.def.h +@@ -38,7 +38,7 @@ static const int resizehints = 1; /* 1 means respect size hints in tiled resi + + static const Layout layouts[] = { + /* symbol arrange function */ +- { "[]=", tile }, /* first entry is default */ ++ { "=[]", tile }, /* first entry is default */ + { "><>", NULL }, /* no layout function means floating behavior */ + { "[M]", monocle }, + }; +diff --git a/dwm.c b/dwm.c +index 4465af1..355e145 100644 +--- a/dwm.c ++++ b/dwm.c +@@ -1687,11 +1687,11 @@ tile(Monitor *m) + for (i = my = ty = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) + if (i < m->nmaster) { + h = (m->wh - my) / (MIN(n, m->nmaster) - i); +- resize(c, m->wx, m->wy + my, mw - (2*c->bw), h - (2*c->bw), 0); ++ resize(c, m->wx + m->ww - mw, m->wy + my, mw - (2*c->bw), h - (2*c->bw), 0); + my += HEIGHT(c); + } else { + h = (m->wh - ty) / (n - i); +- resize(c, m->wx + mw, m->wy + ty, m->ww - mw - (2*c->bw), h - (2*c->bw), 0); ++ resize(c, m->wx, m->wy + ty, m->ww - mw - (2*c->bw), h - (2*c->bw), 0); + ty += HEIGHT(c); + } + } +-- +2.28.0 + diff --git a/dwm.suckless.org/patches/leftstack/index.md b/dwm.suckless.org/patches/leftstack/index.md @@ -0,0 +1,18 @@ +leftstack +========= + +Description +----------- +Changes the tiled layout, so that the stacking area is displayed on the +left and the master area on the right. + +I didn't include this in the patch, but you might want to swap your key +bindings for growing and shrinking the master area. + +Download +-------- +* [dwm-leftstack-6.2.diff](dwm-leftstack-6.2.diff) + +Authors +------- +* Richard Ulmer - codesoap (at) mailbox (dot) org