sites

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

dwm-bottomdockgap-6.4.diff (1262B)


      1 --- dwm.c	2025-05-25 11:25:19.266101707 -0500
      2 +++ dwm.c	2025-05-25 11:51:23.620257329 -0500
      3 @@ -1699,12 +1699,12 @@
      4  		mw = m->ww;
      5  	for (i = my = ty = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++)
      6  		if (i < m->nmaster) {
      7 -			h = (m->wh - my) / (MIN(n, m->nmaster) - i);
      8 +			h = ((m->wh - bottom_gap) - my) / (MIN(n, m->nmaster) - i);
      9  			resize(c, m->wx, m->wy + my, mw - (2*c->bw), h - (2*c->bw), 0);
     10  			if (my + HEIGHT(c) < m->wh)
     11  				my += HEIGHT(c);
     12  		} else {
     13 -			h = (m->wh - ty) / (n - i);
     14 +			h = ((m->wh - bottom_gap) - ty) / (n - i);
     15  			resize(c, m->wx + mw, m->wy + ty, m->ww - mw - (2*c->bw), h - (2*c->bw), 0);
     16  			if (ty + HEIGHT(c) < m->wh)
     17  				ty += HEIGHT(c);
     18 --- config.def.h	2025-05-25 11:25:19.265101713 -0500
     19 +++ config.def.h	2025-05-25 19:03:46.788685329 -0500
     20 @@ -3,6 +3,7 @@
     21  /* appearance */
     22  static const unsigned int borderpx  = 1;        /* border pixel of windows */
     23  static const unsigned int snap      = 32;       /* snap pixel */
     24 +static const unsigned int bottom_gap = 45;  // Adjust gap size here
     25  static const int showbar            = 1;        /* 0 means no bar */
     26  static const int topbar             = 1;        /* 0 means bottom bar */
     27  static const char *fonts[]          = { "monospace:size=10" };