dwmpatches

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

dwm-coolgaps-1.0.diff (1611B)


      1 diff '--color=auto' -up ../dwm.bak/config.def.h ./config.def.h
      2 --- ../dwm.bak/config.def.h	2025-12-30 15:01:10.410388786 +0000
      3 +++ ./config.def.h	2025-12-30 14:51:10.326973050 +0000
      4 @@ -2,6 +2,7 @@
      5  
      6  /* appearance */
      7  static const unsigned int borderpx  = 1;        /* border pixel of windows */
      8 +static const unsigned int gappx	    = 5;        /* gap pixel of windows */
      9  static const unsigned int snap      = 32;       /* snap pixel */
     10  static const int showbar            = 1;        /* 0 means no bar */
     11  static const int topbar             = 1;        /* 0 means bottom bar */
     12 diff '--color=auto' -up ../dwm.bak/dwm.c ./dwm.c
     13 --- ../dwm.bak/dwm.c	2025-12-30 15:01:10.410388786 +0000
     14 +++ ./dwm.c	2025-12-30 14:52:42.199808665 +0000
     15 @@ -1700,14 +1700,14 @@ tile(Monitor *m)
     16  	for (i = my = ty = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++)
     17  		if (i < m->nmaster) {
     18  			h = (m->wh - my) / (MIN(n, m->nmaster) - i);
     19 -			resize(c, m->wx, m->wy + my, mw - (2*c->bw), h - (2*c->bw), 0);
     20 +			resize(c, m->wx + gappx, m->wy + my + gappx, mw - (2*c->bw + 2*gappx), h - (2*c->bw + 2*gappx), 0);
     21  			if (my + HEIGHT(c) < m->wh)
     22 -				my += HEIGHT(c);
     23 +				my += HEIGHT(c) + gappx;
     24  		} else {
     25  			h = (m->wh - ty) / (n - i);
     26 -			resize(c, m->wx + mw, m->wy + ty, m->ww - mw - (2*c->bw), h - (2*c->bw), 0);
     27 +			resize(c, m->wx + mw + gappx, m->wy + ty + gappx, m->ww - mw - (2*c->bw + 2*gappx), h - (2*c->bw + 2*gappx), 0);
     28  			if (ty + HEIGHT(c) < m->wh)
     29 -				ty += HEIGHT(c);
     30 +				ty += HEIGHT(c) + gappx;
     31  		}
     32  }
     33  
     34 Only in ./: dwm-coolgaps-1.0.diff
     35 Common subdirectories: ../dwm.bak/.git and ./.git