Commit

Add st patch file
Daniel Moch committed 4 years ago (Tree)

Diffstat

 x11/st/patches/patch-config_def_h | 82 +++++++++++++++++++++++++++++++++

x11/st/patches/patch-config_def_h (created)

1 +--- config.def.h Sat Feb 9 06:50:41 2019
2 ++++ /home/djmoch/src/dotcom-git/pkgbuild/st/config.h Mon Dec 30 19:50:45 2019
3 +@@ -5,7 +5,7 @@
4 + *
5 + * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
6 + */
7 +-static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true";
8 ++static char *font = "monospace:size=9:antialias=true:autohint=false,emoji:size=8:antialias=true:autohint=false";
9 + static int borderpx = 2;
10 +
11 + /*
12 +@@ -63,7 +63,7 @@
13 + static int bellvolume = 0;
14 +
15 + /* default TERM value */
16 +-char *termname = "st-256color";
17 ++char *termname = "st";
18 +
19 + /*
20 + * spaces per tab
21 +@@ -85,30 +85,26 @@
22 + /* Terminal colors (16 first used in escape sequence) */
23 + static const char *colorname[] = {
24 + /* 8 normal colors */
25 +- "black",
26 +- "red3",
27 +- "green3",
28 +- "yellow3",
29 +- "blue2",
30 +- "magenta3",
31 +- "cyan3",
32 +- "gray90",
33 ++ "#000000",
34 ++ "#870000",
35 ++ "#00875F",
36 ++ "#878700",
37 ++ "#005FAF",
38 ++ "#875FAF",
39 ++ "#008080",
40 ++ "#BCBCBC",
41 +
42 + /* 8 bright colors */
43 +- "gray50",
44 +- "red",
45 +- "green",
46 +- "yellow",
47 +- "#5c5cff",
48 +- "magenta",
49 +- "cyan",
50 +- "white",
51 ++ "#3A3A3A",
52 ++ "#D7005F",
53 ++ "#00D75F",
54 ++ "#D7D787",
55 ++ "#5FAFFF",
56 ++ "#D787FF",
57 ++ "#87FF87",
58 ++ "#FFFFEA",
59 +
60 + [255] = 0,
61 +-
62 +- /* more colors can be added after 255 to use with DefaultXX */
63 +- "#cccccc",
64 +- "#555555",
65 + };
66 +
67 +
68 +@@ -116,10 +112,10 @@
69 + * Default colors (colorname index)
70 + * foreground, background, cursor, reverse cursor
71 + */
72 +-unsigned int defaultfg = 7;
73 +-unsigned int defaultbg = 0;
74 +-static unsigned int defaultcs = 256;
75 +-static unsigned int defaultrcs = 257;
76 ++unsigned int defaultfg = 0;
77 ++unsigned int defaultbg = 15;
78 ++static unsigned int defaultcs = 0;
79 ++static unsigned int defaultrcs = 15;
80 +
81 + /*
82 + * Default shape of cursor