Skip to content

Instantly share code, notes, and snippets.

View ahauser31's full-sized avatar

Andreas Hauser ahauser31

View GitHub Profile
@ahauser31
ahauser31 / dwm-xft_fix-6.2.diff
Created May 31, 2021 02:59
Patch that introduces a hack to solve nerdfont icon cutoff in dwm
diff --git a/config.mk b/config.mk
index 7084c33..1b29d76 100644
--- a/config.mk
+++ b/config.mk
@@ -15,7 +15,7 @@ XINERAMALIBS = -lXinerama
XINERAMAFLAGS = -DXINERAMA
# freetype
-FREETYPELIBS = -lfontconfig -lXft
+FREETYPELIBS = -lfontconfig -lXft `pkg-config --libs freetype2`
diff --git a/config.def.h b/config.def.h
index 1c0b587..12a99d7 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,8 +1,15 @@
/* See LICENSE file for copyright and license details. */
+#define FORCE_VSPLIT 1 /* nrowgrid layout: force two clients to always split vertically */
+
/* appearance */
diff --git a/config.def.h b/config.def.h
index 1c0b587..73da874 100644
--- a/config.def.h
+++ b/config.def.h
@@ -12,10 +12,12 @@ static const char col_gray2[] = "#444444";
static const char col_gray3[] = "#bbbbbb";
static const char col_gray4[] = "#eeeeee";
static const char col_cyan[] = "#005577";
+static const char col_red[] = "#ff0000";
static const char *colors[][3] = {
diff --git a/dwm.c b/dwm.c
index 664c527..7870df2 100644
--- a/dwm.c
+++ b/dwm.c
@@ -699,8 +699,9 @@ drawbar(Monitor *m)
int x, w, tw = 0;
int boxs = drw->fonts->h / 9;
int boxw = drw->fonts->h / 6 + 2;
- unsigned int i, occ = 0, urg = 0;
+ unsigned int i, occ = 0, urg = 0, n = 0;
@ahauser31
ahauser31 / dwm-nobar-nokeyboard-nomouse-6.2.diff
Last active April 20, 2021 05:35
Diff to strip out keyboard, mouse and bar from vanilla dwm
diff --git a/config.def.h b/config.def.h
index 1c0b587..0947189 100644
--- a/config.def.h
+++ b/config.def.h
@@ -3,10 +3,6 @@
/* appearance */
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
-static const int showbar = 1; /* 0 means no bar */
-static const int topbar = 1; /* 0 means bottom bar */