commit 87fe11cfcc4cc8d708e9266af4c370a6c05df37a
parent f34aef7e072de63fa99ec081dcda808e7184994d
Author: bakkeby <bakkeby@gmail.com>
Date: Sat, 9 May 2020 14:02:24 +0200
Library dependencies must be enabled / uncommented on a need basis (alpha patch and themed cursor patch), ref. #5
Diffstat:
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/config.mk b/config.mk
@@ -12,11 +12,17 @@ X11LIB = /usr/X11R6/lib
PKG_CONFIG = pkg-config
+# Uncomment this for the alpha patch / ALPHA_PATCH
+#XRENDER = -lXrender
+
+# Uncomment this for the themed cursor patch / THEMED_CURSOR_PATCH
+#XCURSOR = -lXcursor
+
# includes and libs
INCS = -I$(X11INC) \
`$(PKG_CONFIG) --cflags fontconfig` \
`$(PKG_CONFIG) --cflags freetype2`
-LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft -lXrender -lXcursor\
+LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft ${XRENDER} ${XCURSOR}\
`$(PKG_CONFIG) --libs fontconfig` \
`$(PKG_CONFIG) --libs freetype2`
diff --git a/patches.def.h b/patches.def.h
@@ -15,6 +15,8 @@
#define ALPHA_PATCH 0
/* This patch allows st to reize to any pixel size rather than snapping to character width/height.
+ * You need to uncomment the corresponding line in config.mk to use the -lXrender library
+ * when including this patch.
* https://st.suckless.org/patches/anysize/
*/
#define ANYSIZE_PATCH 0
@@ -189,6 +191,8 @@
#define SPOILER_PATCH 0
/* Instead of a default X cursor, use the xterm cursor from your cursor theme.
+ * You need to uncomment the corresponding line in config.mk to use the -lXcursor library
+ * when including this patch.
* https://st.suckless.org/patches/themed_cursor/
*/
#define THEMED_CURSOR_PATCH 0