blob: 15a80a21d891bb12f4e823d4b2e3db3fa24342e5 (
plain)
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
|
.\" st-config.5 - configuration manual for st terminal
.TH ST\-CONFIG 5 "November 2024" "Version 1.0" "Morinaga OS Manual"
.SH NAME
st\-config \- configuration file for the simple terminal
.SH DESCRIPTION
The configuration for st is done by creating a custom
.B config.h
and (re)compiling the source code.
.SH CONFIGURATION VARIABLES
.TP
.B font
Default font specification in Fontconfig format. Default:
.br
"Perfect DOS VGA 437 Win:size=24:dpi=96:spacing=mono:antialias=false:autohint=false"
.TP
.B borderpx
Border pixel width. Default: 2
.TP
.B alpha
Background opacity (0.0 - 1.0). Default: 0.8
.TP
.B colors
Terminal colors array with 256 entries. Format:
.br
static const char *colorname[] = { "#000000", ... }
.TP
.B defaultfg
Default foreground color index. Default: 259
.TP
.B defaultbg
Default background color index. Default: 258
.TP
.B defaultcs
Default cursor color index. Default: 256
.TP
.B cursorthickness
Thickness of the cursor. Default: 2
.TP
.B bellvolume
Bell volume (-100 to 100). Default: 0
.TP
.B tabspaces
Number of spaces per tab. Default: 8
.SH KEYBOARD SHORTCUTS
.TP
.B Alt+c
Copy selection
.TP
.B Alt+v
Paste selection
.TP
.B Alt+k/j
Scroll up/down
.TP
.B Alt+u/d
Scroll page up/down
.SH EXAMPLE CONFIGURATION
.nf
.RS
static char *font = "Perfect DOS VGA 437 Win:size=24";
static unsigned int borderpx = 3;
static float alpha = 0.85;
/* Terminal colors */
static const char *colorname[] = {
"#282828", /* background */
"#cc241d", /* red */
"#98971a", /* green */
/* ... */
};
.RE
.fi
.SH FILES
.TP
.I config.h
Main configuration file
.SH SEE ALSO
.BR st (1),
.BR morinaga (1)
|