brewery
notashelf /
1f8350b26f0953db13368b80334e1cf44c1b0808

beer

public

A terminal worth pouring time into

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