sites

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

commit a366ebff76ea6a890a5915cee2389c4ebfa3f356
parent 6560e758809f4ba42a2dac35d7e74ed5ceea6cb5
Author: Steven Fuchs <stevencfuchs@icloud.com>
Date:   Sun, 25 May 2025 19:34:21 -0500

Add a new index with the explination of how this patch functions and also added the .diff file itself.

Diffstat:
Adwm.suckless.org/patches/bottomdockgap/dwm-bottomdockgap-6.4.diff | 27+++++++++++++++++++++++++++
Adwm.suckless.org/patches/bottomdockgap/index.md | 27+++++++++++++++++++++++++++
2 files changed, 54 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/bottomdockgap/dwm-bottomdockgap-6.4.diff b/dwm.suckless.org/patches/bottomdockgap/dwm-bottomdockgap-6.4.diff @@ -0,0 +1,27 @@ +--- dwm.c 2025-05-25 11:25:19.266101707 -0500 ++++ dwm.c 2025-05-25 11:51:23.620257329 -0500 +@@ -1699,12 +1699,12 @@ + mw = m->ww; + 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); ++ h = ((m->wh - bottom_gap) - my) / (MIN(n, m->nmaster) - i); + resize(c, m->wx, m->wy + my, mw - (2*c->bw), h - (2*c->bw), 0); + if (my + HEIGHT(c) < m->wh) + my += HEIGHT(c); + } else { +- h = (m->wh - ty) / (n - i); ++ h = ((m->wh - bottom_gap) - ty) / (n - i); + resize(c, m->wx + mw, m->wy + ty, m->ww - mw - (2*c->bw), h - (2*c->bw), 0); + if (ty + HEIGHT(c) < m->wh) + ty += HEIGHT(c); +--- config.def.h 2025-05-25 11:25:19.265101713 -0500 ++++ config.def.h 2025-05-25 19:03:46.788685329 -0500 +@@ -3,6 +3,7 @@ + /* appearance */ + static const unsigned int borderpx = 1; /* border pixel of windows */ + static const unsigned int snap = 32; /* snap pixel */ ++static const unsigned int bottom_gap = 45; // Adjust gap size here + static const int showbar = 1; /* 0 means no bar */ + static const int topbar = 1; /* 0 means bottom bar */ + static const char *fonts[] = { "monospace:size=10" }; diff --git a/dwm.suckless.org/patches/bottomdockgap/index.md b/dwm.suckless.org/patches/bottomdockgap/index.md @@ -0,0 +1,27 @@ +bottomdockgap +======= + +Description +----------- +This patch adds a dedicated, respected area below all tiled windows for a dock. +This has been tested with plank and using the plank setting application +to configure plank to be at the bottom. The height of the of the dedicated area +is configured by the static const unsigned int bottom_gap. You set this to the number +of pixels you want left at the bottom of the screen. + + static const unsigned int bottom_gap = 45; // Adjust gap size here + + +This change will still allow backgrounds to be set by feh. Plank will have to +be started in whatever way you chose to start other progams. + +If you use this with picom, setting the borderpx = 0 will remove line artifacts left by plank. + +Download +-------- +* [dwm-bottomdockgap-6.4.diff](dwm-bottomdockgap-6.4.diff) (1.3k) (2025-05-25) + + +Author +------ +* scf - <stevencfuchs@icloud.com>