-
-
Notifications
You must be signed in to change notification settings - Fork 69
/
st.patch
100 lines (94 loc) · 2.35 KB
/
st.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# https://github.com/drduh/config/blob/master/st.patch
# Run 'make' before applying with 'patch < st.patch' then run 'make' again
--- a/config.h 2022-01-11 00:00:00
+++ b/config.h 2022-01-11 00:00:01
@@ -5,8 +5,8 @@
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
-static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true";
-static int borderpx = 2;
+static char *font = "Inconsolata:pixelsize=24:antialias=true:autohint=true";
+static int borderpx = 24;
/*
* What program is execed by st depends of these precedence rules:
@@ -95,44 +95,32 @@
/* 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",
- "gray90", /* default foreground colour */
- "black", /* default background colour */
+ "#073642",
+ "#dc322f",
+ "#859900",
+ "#b58900",
+ "#268bd2",
+ "#d33682",
+ "#2aa198",
+ "#eee8d5",
+ "#002b36",
+ "#cb4b16",
+ "#586e75",
+ "#657b83",
+ "#839496",
+ "#6c71c4",
+ "#93a1a1",
+ "#fdf6e3",
};
-
/*
* Default colors (colorname index)
* foreground, background, cursor, reverse cursor
*/
-unsigned int defaultfg = 258;
-unsigned int defaultbg = 259;
-unsigned int defaultcs = 256;
-static unsigned int defaultrcs = 257;
+unsigned int defaultfg = 12;
+unsigned int defaultbg = 8;
+unsigned int defaultcs = 14;
+static unsigned int defaultrcs = 15;
/*
* Default shape of cursor
--- a/config.mk 2022-01-11 00:00:00
+++ b/config.mk 2022-01-11 00:00:01
@@ -31,5 +31,15 @@
# `$(PKG_CONFIG) --libs fontconfig` \
# `$(PKG_CONFIG) --libs freetype2`
+CFLAGS = -std=c99 -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS} \
+ -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -O3 -pipe \
+ -Wpedantic -Wall -Wextra -Wconversion -Wsign-conversion \
+ -Wformat -Wformat-security -Werror=format-security \
+ -Wstack-protector -fstack-protector-all \
+ --param ssp-buffer-size=1 \
+ -fasynchronous-unwind-tables \
+ -fexceptions -fpie -fpic \
+ -ftrapv -flto -fvisibility=hidden
+
# compiler and linker
-# CC = c99
+CC = c99