[wiki] [sites] [dwm][patch] ru_gaps single border instead of double border between clients || Aaron Duxler
commit b96972d2b93b7af64499a1790673d2b5ae4eac3c
Author: Aaron Duxler <aaron.duxler_AT_gmail.com>
Date: Tue May 28 21:27:49 2019 +0200
[dwm][patch] ru_gaps single border instead of double border between clients
diff --git a/dwm.suckless.org/patches/ru_gaps/dwm-ru_fibonacci-6.2.diff b/dwm.suckless.org/patches/ru_gaps/dwm-ru_fibonacci-6.2.diff
index c3796e85..19ac4681 100644
--- a/dwm.suckless.org/patches/ru_gaps/dwm-ru_fibonacci-6.2.diff
+++ b/dwm.suckless.org/patches/ru_gaps/dwm-ru_fibonacci-6.2.diff
_AT_@ -1,8 +1,11 @@
-diff -up a/config.def.h b/config.def.h
---- a/config.def.h 2019-05-12 17:29:44.703284415 +0200
-+++ b/config.def.h 2019-05-12 17:33:54.796612993 +0200
-_AT_@ -39,6 +39,8 @@ 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-28 21:17:55.213171996 +0200
+_AT_@ -36,8 +36,11 @@ 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 "fibonacci.c"
static const Layout layouts[] = {
/* symbol arrange function */
+ { "[_AT_]", spiral },
_AT_@ -12,10 +15,9 @@ diff -up a/config.def.h b/config.def.h
{ "[M]", monocle },
diff -upN a/fibonacci.c b/fibonacci.c
--- a/fibonacci.c 1970-01-01 01:00:00.000000000 +0100
-+++ b/fibonacci.c 2019-05-12 14:26:22.213180754 +0200
-_AT_@ -0,0 +1,71 @@
-+void
-+fibonacci(Monitor *mon, int s) {
++++ b/fibonacci.c 2019-05-28 21:07:51.119850125 +0200
+_AT_@ -0,0 +1,73 @@
++void fibonacci(Monitor *mon, int s) {
+ unsigned int i, n, nx, ny, nw, nh;
+ Client *c;
+
_AT_@ -29,7 +31,7 @@ diff -upN a/fibonacci.c b/fibonacci.c
+ }
+
+ nx = mon->wx;
-+ ny = 0;
++ ny = mon->gappx;
+ nw = mon->ww;
+ nh = mon->wh;
+
_AT_@ -66,13 +68,16 @@ diff -upN a/fibonacci.c b/fibonacci.c
+ {
+ if(n != 1)
+ nw = mon->ww * mon->mfact;
-+ ny = mon->wy;
++ ny = mon->wy + mon->gappx;
+ }
+ else if(i == 1)
-+ nw = mon->ww - nw;
++ nw = mon->ww - nw - mon->gappx;
+ i++;
+ }
-+ resize(c, nx + mon->gappx, ny + mon->gappx, nw - 2 * (c->bw + mon->gappx), nh - 2 * (c->bw + mon->gappx), False);
++ if(i <= 4 && (i!=2 || n==2))
++ resize(c, nx + mon->gappx, ny, nw - 2 * (c->bw) - mon->gappx, nh - 2 * (c->bw) - 2*mon->gappx, False);
++ else
++ resize(c, nx + mon->gappx, ny, nw - 2 * (c->bw) - mon->gappx, nh - 2 * (c->bw) - mon->gappx, False);
+ }
+}
+
Received on Tue May 28 2019 - 21:25:33 CEST
This archive was generated by hypermail 2.3.0
: Tue May 28 2019 - 21:36:27 CEST