dotfiles/_suckless/dwm
2022-06-12 12:00:57 +02:00
..
_patches Massive rearrangements in dwm. 2022-06-12 02:32:02 +02:00
config.def.h Massive rearrangements in dwm. 2022-06-12 02:32:02 +02:00
config.h Massive rearrangements in dwm. 2022-06-12 02:32:02 +02:00
config.mk Massive rearrangements in dwm. 2022-06-12 02:32:02 +02:00
drw.c Massive rearrangements in dwm. 2022-06-12 02:32:02 +02:00
drw.h Massive rearrangements in dwm. 2022-06-12 02:32:02 +02:00
dwm.1 Desktop section. 2021-06-19 15:05:17 +02:00
dwm.c Massive rearrangements in dwm. 2022-06-12 02:32:02 +02:00
LICENSE LICENSE files are back, it's a dick move to delete them. 2022-06-12 12:00:57 +02:00
Makefile Desktop section. 2021-06-19 15:05:17 +02:00
README.md Markdown formatting. 2022-06-12 02:42:08 +02:00
transient.c Massive rearrangements in dwm. 2022-06-12 02:32:02 +02:00
util.c Massive rearrangements in dwm. 2022-06-12 02:32:02 +02:00
util.h Desktop section. 2021-06-19 15:05:17 +02:00
vanitygaps.c Massive rearrangements in dwm. 2022-06-12 02:32:02 +02:00

ftpd's dwm build

Patches applied

These patches from suckless.org were applied from the newest versions, in order:

  1. dwm-status2d-systray-6.3.diff
  2. dwm-restartsig-20180523-6.2.diff
  3. dwm-preserveonrestart (local, see _patches/)
  4. dwm-notitle-6.2.diff
  5. dwm-hide_vacant_tags-6.3.diff
  6. dwm-attachbelow-6.2.diff
  7. dwm-vanitygaps-6.2.diff (version providing multiple new layouts)
  8. dwm-swallow-20201211-61bb8b2.diff
  9. dwm-scratchpads-20200414-728d397b.diff

note: lot of manual work was involved, these won't apply easily on top of the others.

Fix color emoji

Delete the following from drw.c:

/* Do not allow using color fonts. This is a workaround for a BadLength
 * error from Xft with color glyphs. Modelled on the Xterm workaround. See
 * https://bugzilla.redhat.com/show_bug.cgi?id=1498269
 * https://lists.suckless.org/dev/1701/30932.html
 * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916349
 * and lots more all over the internet.
 */
FcBool iscol;
if(FcPatternGetBool(xfont->pattern, FC_COLOR, 0, &iscol) == FcResultMatch && iscol) {
	XftFontClose(drw->dpy, xfont);
	return NULL;
}

Fix compile warnings

Delete the following from dwm.c:

int boxs = drw->fonts->h / 9;
int boxw = drw->fonts->h / 6 + 2;

Change in dwm.c:

fscanf(f, "%*u %*s %*c %u", &v);

to:

if (fscanf(f, "%*u %*s %*c %u", &v));

If dmenu will be configured separately, remove from dwm.c:

if (arg->v == dmenucmd)
  dmenumon[0] = '0' + selmon->num;

and from config.def.h/config.h:

static const char dmenufont[]       = "monospace:size=10";

/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
static const char *termcmd[]  = { "st", NULL };