[wiki] [sites] [dwm][patch] ru_gaps, double border fix for ru_gaplessgrid and link fixed in index.md || Aaron Duxler
commit 3d97aafb232de826999de822b70059e53d41f7fe
Author: Aaron Duxler <aaron.duxler_AT_gmail.com>
Date: Wed May 29 00:48:25 2019 +0200
[dwm][patch] ru_gaps, double border fix for ru_gaplessgrid and link fixed in index.md
diff --git a/dwm.suckless.org/patches/ru_gaps/dwm-ru_gapelessgrid-6.2.diff b/dwm.suckless.org/patches/ru_gaps/dwm-ru_gaplessgrid-6.2.diff
similarity index 55%
rename from dwm.suckless.org/patches/ru_gaps/dwm-ru_gapelessgrid-6.2.diff
rename to dwm.suckless.org/patches/ru_gaps/dwm-ru_gaplessgrid-6.2.diff
index 4090e9d4..2fe60ab2 100644
--- a/dwm.suckless.org/patches/ru_gaps/dwm-ru_gapelessgrid-6.2.diff
+++ b/dwm.suckless.org/patches/ru_gaps/dwm-ru_gaplessgrid-6.2.diff
_AT_@ -1,18 +1,21 @@
-diff -up a/config.def.h b/config.def.h
---- a/config.def.h 2019-05-12 17:49:58.316594678 +0200
-+++ b/config.def.h 2019-05-12 18:00:07.816583101 +0200
-_AT_@ -39,6 +39,7 @@ static const int resizehints = 1; /*
+diff -upN a/config.def.h b/config.def.h
+--- a/config.def.h 2019-05-28 13:43:00.326646120 +0200
++++ b/config.def.h 2019-05-29 00:33:28.536627035 +0200
+_AT_@ -36,8 +36,10 @@ static const float mfact = 0.55; /*
+ static const int nmaster = 1; /* number of clients in master area */
+ static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
++#include "gaplessgrid.c"
static const Layout layouts[] = {
/* symbol arrange function */
-+ { "###", gaplessgrid },
++ { "###", gaplessgrid },
{ "[]=", tile }, /* first entry is default */
{ "><>", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle },
diff -upN a/gaplessgrid.c b/gaplessgrid.c
--- a/gaplessgrid.c 1970-01-01 01:00:00.000000000 +0100
-+++ b/gaplessgrid.c 2019-05-12 13:16:17.589927256 +0200
-_AT_@ -0,0 +1,40 @@
++++ b/gaplessgrid.c 2019-05-29 00:26:33.779968246 +0200
+_AT_@ -0,0 +1,47 @@
+void
+gaplessgrid(Monitor *m) {
+ unsigned int n, cols, rows, cn, rn, i, cx, cy, cw, ch;
_AT_@ -45,7 +48,14 @@ diff -upN a/gaplessgrid.c b/gaplessgrid.c
+ ch = rows ? m->wh / rows : m->wh;
+ cx = m->wx + cn*cw;
+ cy = m->wy + rn*ch;
-+ resize(c, cx + m->gappx, cy + m->gappx, cw - 2 * (c->bw + m->gappx), ch - 2 * (c->bw + m->gappx), False);
++ if(cn+1 == cols && rn+1 == rows)
++ resize(c, cx + m->gappx, cy + m->gappx, cw - 2 * (c->bw + m->gappx), ch - 2 * (c->bw + m->gappx), False);
++ else if(cn+1 == cols)
++ resize(c, cx + m->gappx, cy + m->gappx, cw - 2 * (c->bw + m->gappx), ch - 2 * (c->bw) - m->gappx, False);
++ else if(rn+1 == rows)
++ resize(c, cx + m->gappx, cy + m->gappx, cw - 2 * (c->bw) - m->gappx, ch - 2 * (c->bw + m->gappx), False);
++ else
++ resize(c, cx + m->gappx, cy + m->gappx, cw - 2 * (c->bw) - m->gappx, ch - 2 * (c->bw) - m->gappx, False);
+ rn++;
+ if(rn >= rows) {
+ rn = 0;
diff --git a/dwm.suckless.org/patches/ru_gaps/index.md b/dwm.suckless.org/patches/ru_gaps/index.md
index 86d8d693..c47cc869 100644
--- a/dwm.suckless.org/patches/ru_gaps/index.md
+++ b/dwm.suckless.org/patches/ru_gaps/index.md
_AT_@ -27,7 +27,7 @@ A copy of the [fibonacci](../fibonacci/), but with resizeable gaps.
* [dwm-ru\_fibonacci-6.2.diff](dwm-ru_fibonacci-6.2.diff)
A copy of the [gaplessgrid](../gaplessgrid/), but with resizeable gaps.
-* [dwm-ru\_gaplessgrid-6.2.diff](dwm-ru_gaps-6.2.diff)
+* [dwm-ru\_gaplessgrid-6.2.diff](dwm-ru_gaplessgrid-6.2.diff)
A copy of the [bottomstack](../bottomstack/), but with resizeable gaps.
* [dwm-ru\_bottomstack-6.2.diff](dwm-ru_bottomstack-6.2.diff)
Received on Wed May 29 2019 - 00:46:08 CEST
This archive was generated by hypermail 2.3.0
: Wed May 29 2019 - 00:48:26 CEST