brewery
notashelf /
47757576d06ff80a1aca716003ec0f877d7b55b7

beer

public

A terminal worth pouring time into

Star0tarball
clone
ssh://git@git.notashelf.dev:33/notashelf/beer.git
doc/beer.toml.5.scd177 lines5.2 KB
1
beer.toml(5)
2
3
# NAME
4
5
beer.toml - configuration file for _beer_(1)
6
7
# DESCRIPTION
8
9
*beer* reads a TOML configuration file from
10
_$XDG_CONFIG_HOME/beer/beer.toml_, falling back to
11
_~/.config/beer/beer.toml_. The *--config* flag (repeatable, later files
12
override earlier ones) and the *BEER_CONFIG* environment variable (colon-
13
separated paths, lowest priority) can supply additional files. A missing
14
file uses the built-in defaults; a malformed file is reported and the defaults
15
are used. Unknown keys are ignored, so a file written for a newer *beer* still
16
loads.
17
18
Colours are X11 specs: either _#rrggbb_ or _rgb:rr/gg/bb_ (1-4 hex digits per
19
channel).
20
21
# [main]
22
23
*font* = _string_
24
	Primary font family, resolved via fontconfig. Default _monospace_.
25
26
*font-size* = _integer_
27
	Font size in pixels. Default _16_.
28
29
*term* = _string_
30
	The _TERM_ value exported to the child shell. Default _beer_.
31
32
*initial-cols* = _integer_, *initial-rows* = _integer_
33
	Initial window size in character cells. Default _80_ by _24_.
34
35
*pad-x* = _integer_, *pad-y* = _integer_
36
	Inner padding in pixels between the window edge and the cell grid.
37
	Default _2_ each.
38
39
*word-delimiters* = _string_
40
	Characters that break a word for double-click selection. Unset keeps the
41
	built-in set (whitespace and common punctuation, keeping _.-/:~\__ inside
42
	words).
43
44
*idle-inhibit* = _bool_
45
	While the window is focused, ask the compositor not to blank the screen or
46
	start the screensaver (idle-inhibit-v1). A backgrounded window stops
47
	inhibiting. Default _false_.
48
49
# [colors]
50
51
*foreground* = _color_, *background* = _color_
52
	Default text and background colours. Default _#c5c8c6_ on _#181818_.
53
54
*cursor* = _color_
55
	Cursor colour. Unset follows the cell under the cursor.
56
57
*selection-foreground* = _color_, *selection-background* = _color_
58
	Selection colours. The background defaults to _#44475a_.
59
60
*regular* = _[8 colors]_, *bright* = _[8 colors]_
61
	The eight regular (indices 0-7) and bright (8-15) palette entries. Unset
62
	entries keep the xterm defaults.
63
64
*match-background* = _color_, *match-current-background* = _color_
65
	Highlight colours for search matches and the focused match.
66
67
*alpha* = _float_
68
	Background opacity, _0.0_ (transparent) to _1.0_ (opaque). Default _1.0_.
69
70
*bold-as-bright* = _bool_
71
	Render bold text with the bright palette variant. Default _true_.
72
73
# [cursor]
74
75
*style* = _string_
76
	Default cursor shape: _block_, _beam_ (or _bar_), or _underline_. An
77
	application may override this at runtime via DECSCUSR. Default _block_.
78
79
*blink* = _bool_
80
	Whether the cursor blinks by default. Default _false_.
81
82
# [scrollback]
83
84
*lines* = _integer_
85
	Lines of history retained for the main screen. Default _10000_.
86
87
# [bell]
88
89
*visual* = _bool_
90
	Briefly flash the screen on the terminal bell. Default _false_.
91
92
*command* = _[argv]_
93
	Command run on the bell, e.g. _["paplay", "/usr/share/sounds/bell.oga"]_.
94
	Unset runs nothing.
95
96
*urgent* = _bool_
97
	Request the compositor's attention (xdg-activation) when the bell rings
98
	while the window is unfocused. Default _false_.
99
100
# [mouse]
101
102
*scroll-multiplier* = _float_
103
	Multiplier applied to the lines scrolled per wheel notch. Default _1.0_.
104
105
*alternate-scroll* = _bool_
106
	On the alternate screen, translate the wheel into cursor-key presses so
107
	full-screen programs that did not request mouse reporting (such as _less_
108
	and _man_) still scroll. Default _true_.
109
110
# [key-bindings]
111
112
A table of _chord_ = _action_ entries, merged over the built-in defaults. A
113
chord is modifiers and a key joined by _+_, e.g. _"Ctrl+Shift+C"_. An action of
114
_"none"_ unbinds the chord.
115
116
Recognized actions: _copy_, _paste_, _paste-primary_, _scrollback-up_,
117
_scrollback-down_, _scrollback-top_, _scrollback-bottom_, _search_,
118
_font-increase_, _font-decrease_, _font-reset_, _fullscreen_, _new-window_,
119
_jump-prompt-up_, _jump-prompt-down_, _pipe-command-output_, _url-mode_,
120
_unicode-input_.
121
122
```
123
[key-bindings]
124
"Ctrl+Shift+C" = "copy"
125
"Ctrl+`" = "none"
126
```
127
128
# [mouse-bindings]
129
130
A table of _button-chord_ = _action_ entries, merged over the built-in
131
defaults. A chord is optional modifiers and a button joined by _+_, e.g.
132
_"Shift+Middle"_. Buttons are _Left_, _Middle_, and _Right_. The actions are
133
the same set as *[key-bindings]*. An action of _"none"_ unbinds the chord. The
134
left button's select/drag is a built-in gesture and is not rebindable.
135
136
The only default is _"Middle" = "paste-primary"_.
137
138
```
139
[mouse-bindings]
140
"Right" = "paste"
141
"Middle" = "none"
142
```
143
144
# [shell-integration]
145
146
Behaviour driven by *OSC 7* (cwd) and *OSC 133* (prompt) marks.
147
148
*pipe-command* = _[argv]_
149
	Command the _pipe-command-output_ binding feeds the last command's output
150
	to on stdin, e.g. _["less"]_. Empty (the default) disables the action.
151
152
# [url]
153
154
*launch* = _[argv]_
155
	Launcher the URL is appended to when an _OSC 8_ hyperlink is clicked or a
156
	hint-mode label is chosen. Default _["xdg-open"]_.
157
158
# [notify]
159
160
*command* = _[argv]_
161
	Notifier for desktop notifications (_OSC 9_/_777_/_99_); the title and body
162
	are appended as the final two arguments. Default _["notify-send"]_.
163
164
# [text-bindings]
165
166
A table of _chord_ = _text_ entries that send a literal string to the shell.
167
The text understands the escapes _\\e_, _\\n_, _\\r_, _\\t_, _\\\\_, and
168
_\\xNN_.
169
170
```
171
[text-bindings]
172
"Ctrl+Shift+Return" = "\\x1b\\r"
173
```
174
175
# SEE ALSO
176
177
_beer_(1)