brewery

beer

public

A terminal worth pouring time into

Star0tarball
clone
ssh://git@git.notashelf.dev:33/notashelf/beer.git
doc/beer.1.scd161 lines5.2 KB
1
beer(1)
2
3
# NAME
4
5
beer - a fast, software-rendered, Wayland-native terminal emulator
6
7
# SYNOPSIS
8
9
*beer* [_options_]
10
11
# DESCRIPTION
12
13
*beer* is a lightweight, CPU-rendered terminal emulator for Wayland. It spawns
14
the user's login shell in a pseudo-terminal and renders its output into a
15
server-decorated window, with truecolor, styled text, scrollback, incremental
16
search, mouse selection, and clipboard integration.
17
18
# OPTIONS
19
20
*--server*
21
	Run as a daemon: a single process that hosts many windows over a Unix
22
	socket (see *DAEMON MODE*).
23
24
*--no-daemon*
25
	Always open a private, standalone window; never connect to or start a
26
	server. Without this flag a plain *beer* prefers a running server.
27
28
*--config* _PATH_
29
	Load configuration from _PATH_ on top of the defaults. Repeatable; when
30
	given more than once, later files override keys from earlier ones and
31
	have higher priority than files listed in *BEER_CONFIG* (see
32
	*ENVIRONMENT*). Without any *--config* flags, the default location is
33
	used (see *FILES*).
34
35
*-h*, *--help*
36
	Print usage and exit.
37
38
*-V*, *--version*
39
	Print the version and exit.
40
41
# KEY BINDINGS
42
43
These are the built-in defaults; all are configurable in the *key-bindings*
44
table of _beer.toml_(5).
45
46
[[ *Binding*
47
:< *Action*
48
|  Ctrl+Shift+C
49
:  Copy the selection to the clipboard
50
|  Ctrl+Shift+V
51
:  Paste from the clipboard
52
|  Ctrl+Shift+F
53
:  Start incremental scrollback search
54
|  Shift+Page_Up / Shift+Page_Down
55
:  Scroll the viewport one page
56
|  Ctrl+Shift+Home / Ctrl+Shift+End
57
:  Scroll to the top / bottom of history
58
|  Ctrl+Plus / Ctrl+Equal / Ctrl+Minus
59
:  Increase / decrease the font size
60
|  Ctrl+0
61
:  Reset the font size
62
|  F11
63
:  Toggle fullscreen
64
|  Ctrl+Shift+N
65
:  Open a new window in the shell's current directory
66
|  Ctrl+Shift+Up / Ctrl+Shift+Down
67
:  Jump to the previous / next shell prompt (OSC 133)
68
|  Ctrl+Shift+O
69
:  Enter URL hint mode
70
|  Ctrl+Shift+U
71
:  Enter a Unicode codepoint by hex value
72
73
The *pipe-command-output* action (unbound by default) feeds the last command's
74
output to the configured command; see *shell-integration* in _beer.toml_(5).
75
76
In incremental search, type to refine the query, *Up*/*Return* jumps to the
77
previous match, *Down* to the next, and *Escape* exits.
78
79
In URL hint mode each visible URL is tagged with a label; type the label to open
80
the URL in the configured launcher, or press *Escape* to cancel.
81
82
In Unicode codepoint-input mode, type the hexadecimal value of a codepoint (e.g.
83
_2603_ for a snowman) and press *Return* or *Space* to insert it; *Escape*
84
cancels.
85
86
*beer* implements the kitty keyboard protocol (progressive enhancement via
87
*CSI u*), so applications that request it receive disambiguated keys, key
88
release and repeat events, alternate keys, and associated text.
89
90
# MOUSE
91
92
Left-click and drag selects text; double-click selects a word, triple-click a
93
line, and Ctrl+drag selects a rectangular block. The selection is copied to the
94
primary selection on release; middle-click pastes it. The wheel scrolls
95
history. Holding *Shift* forces local selection even while an application has
96
requested mouse reporting. Clicking an *OSC 8* hyperlink opens it; hovering one
97
underlines it.
98
99
# SHELL INTEGRATION
100
101
With a shell configured to emit them, *beer* tracks the working directory
102
(*OSC 7*, used by new windows) and prompt marks (*OSC 133*) for prompt jumping
103
and piping the last command's output. Applications may raise desktop
104
notifications via *OSC 9*, *OSC 777*, and *OSC 99*.
105
106
# DAEMON MODE
107
108
*beer --server* runs one process that hosts many windows, sharing a single
109
Wayland connection and glyph cache. It listens on a Unix socket at
110
_$XDG_RUNTIME_DIR/beer-$WAYLAND_DISPLAY.sock_.
111
112
A plain *beer* (without *--server* or *--no-daemon*) is the client: it forwards
113
its working directory and environment to a running server, which opens a window
114
there, and it mirrors that window's exit status. If no server is running it
115
falls back to a standalone window, so the same command works with or without a
116
daemon. *--no-daemon* forces the standalone path.
117
118
Whether the server keeps running after its last window closes is set by
119
*server-resident* in _beer.toml_(5); by default it stays resident.
120
121
# GRAPHICS AND TEXT SIZING
122
123
*beer* implements the kitty graphics protocol (inline raster images via the
124
*APC* _G_ transmission, placements, animation, and Unicode placeholders) and the
125
kitty text-sizing protocol (*OSC 66*), which scales a run of text across a block
126
of cells. It does not implement sixel.
127
128
# ENVIRONMENT
129
130
*SHELL*
131
	The shell to spawn; defaults to _/bin/sh_.
132
133
*TERM*
134
	Set to the configured terminal name (default _beer_) for the child.
135
136
*KITTY_WINDOW_ID*
137
	Set for the child process to the window's numeric id, so programs that key
138
	off it (kitty graphics placeholders) have a stable per-window handle.
139
140
*BEER_CONFIG*
141
	A colon-separated list of config file paths, like *PATH*. These are
142
	lower priority than paths given via *--config* so explicit flags always
143
	win. Empty elements are ignored.
144
145
*BEER_LOG*
146
	Log filter, in the _tracing_ env-filter syntax (e.g. _debug_).
147
148
# SIGNALS
149
150
*SIGUSR1*
151
	Reload the configuration file and re-apply it without restarting.
152
153
# FILES
154
155
_$XDG_CONFIG_HOME/beer/beer.toml_
156
	The configuration file (falls back to _~/.config/beer/beer.toml_). See
157
	_beer.toml_(5).
158
159
# SEE ALSO
160
161
_beer.toml_(5), _beer-themes_(7)