From 79ce419e601502724895293d8e6a5b73afe1f42f Mon Sep 17 00:00:00 2001 From: mhsn Date: Mon, 30 Jun 2025 14:41:41 +0100 Subject: add custom config patch for st --- x11-terms/st/files/9999_custom-config.diff | 30 ++++++++++++++++++++++++++++++ x11-terms/st/st-0.9.2.ebuild | 1 + 2 files changed, 31 insertions(+) create mode 100644 x11-terms/st/files/9999_custom-config.diff diff --git a/x11-terms/st/files/9999_custom-config.diff b/x11-terms/st/files/9999_custom-config.diff new file mode 100644 index 0000000..5699226 --- /dev/null +++ b/x11-terms/st/files/9999_custom-config.diff @@ -0,0 +1,30 @@ +diff --git i/config.def.h w/config.def.h +index b832a90..29075f5 100644 +--- i/config.def.h ++++ w/config.def.h +@@ -5,12 +5,12 @@ + * + * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html + */ +-static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true"; ++static char *font = "Cozette:size=20:antialias=false:autohint=false"; + + /* disable bold, italic and roman fonts globally */ +-int disablebold = 0; +-int disableitalic = 0; +-int disableroman = 0; ++int disablebold = 1; ++int disableitalic = 1; ++int disableroman = 1; + + static int borderpx = 2; + +@@ -153,7 +153,7 @@ static unsigned int cursorshape = 2; + * Whether to use pixel geometry or cell geometry + */ + +-static Geometry geometry = CellGeometry; ++static Geometry geometry = PixelGeometry; + + /* + * Default columns and rows numbers diff --git a/x11-terms/st/st-0.9.2.ebuild b/x11-terms/st/st-0.9.2.ebuild index f02ee87..0a0d16a 100644 --- a/x11-terms/st/st-0.9.2.ebuild +++ b/x11-terms/st/st-0.9.2.ebuild @@ -19,6 +19,7 @@ fi PATCHES=( "${FILESDIR}/01_disable-bold-italic-fonts-0.8.2.diff" "${FILESDIR}/02_any-geometry-0.8.1.diff" + "${FILESDIR}/9999_custom-config.diff" ) LICENSE="MIT" -- cgit v1.2.3