From 4b35d988f7dd44c42e293181765459dc61ec1c72 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Mon, 6 Feb 2017 10:39:38 +0100 Subject: [PATCH] change st colors too --- xap/st/config.patch | 67 ++++++++++++++++++++++++++++++++++++++++++++ xap/st/st.SlackBuild | 3 +- 2 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 xap/st/config.patch diff --git a/xap/st/config.patch b/xap/st/config.patch new file mode 100644 index 00000000..b4c03833 --- /dev/null +++ b/xap/st/config.patch @@ -0,0 +1,67 @@ +diff -Nur st.orig/config.h st/config.h +--- st.orig/config.h 2017-02-06 10:31:26.888168676 +0100 ++++ st/config.h 2017-02-06 10:35:34.134143305 +0100 +@@ -5,7 +5,7 @@ + * + * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html + */ +-static char font[] = "Liberation Mono:pixelsize=12:antialias=true:autohint=true"; ++static char font[] = "Terminus:pixelsize=10:antialias=false:autohint=true"; + static int borderpx = 2; + + /* +@@ -84,29 +84,29 @@ + + /* Terminal colors (16 first used in escape sequence) */ + static const char *colorname[] = { +- /* 8 normal colors */ +- "black", +- "red3", +- "green3", +- "yellow3", +- "blue2", +- "magenta3", +- "cyan3", +- "gray90", +- +- /* 8 bright colors */ +- "gray50", +- "red", +- "green", +- "yellow", +- "#5c5cff", +- "magenta", +- "cyan", +- "white", +- +- [255] = 0, +- +- /* more colors can be added after 255 to use with DefaultXX */ +- "#cccccc", +- "#555555", ++ /* 8 normal colors */ ++ "#000000", ++ "#cc0000", ++ "#4e9a06", ++ "#c4a000", ++ "#3465a4", ++ "#75507b", ++ "#06989a", ++ "#d3d7cf", ++ ++ /* 8 bright colors */ ++ "#555753", ++ "#ef2929", ++ "#8ae234", ++ "#fce94f", ++ "#739fcf", ++ "#ad7fa8", ++ "#34e2e2", ++ "#eeeeec", ++ ++ [255] = 0, ++ ++ /* more colors can be added after 255 to use with DefaultXX */ ++ "#cccccc", ++ "#555555", + }; diff --git a/xap/st/st.SlackBuild b/xap/st/st.SlackBuild index 193adf3c..704102fc 100755 --- a/xap/st/st.SlackBuild +++ b/xap/st/st.SlackBuild @@ -42,7 +42,8 @@ find . \ # Building make config.h -sed -i 's|Liberation Mono:pixelsize=12:antialias=true|Terminus:pixelsize=10:antialias=false|' config.h +patch -p1 -i $CWD/config.patch + make # Installing