clone
ssh://git@git.notashelf.dev:33/notashelf/beer.git| 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 | # [colors] |
| 43 | |
| 44 | *foreground* = _color_, *background* = _color_ |
| 45 | Default text and background colours. Default _#c5c8c6_ on _#181818_. |
| 46 | |
| 47 | *cursor* = _color_ |
| 48 | Cursor colour. Unset follows the cell under the cursor. |
| 49 | |
| 50 | *selection-foreground* = _color_, *selection-background* = _color_ |
| 51 | Selection colours. The background defaults to _#44475a_. |
| 52 | |
| 53 | *regular* = _[8 colors]_, *bright* = _[8 colors]_ |
| 54 | The eight regular (indices 0-7) and bright (8-15) palette entries. Unset |
| 55 | entries keep the xterm defaults. |
| 56 | |
| 57 | *match-background* = _color_, *match-current-background* = _color_ |
| 58 | Highlight colours for search matches and the focused match. |
| 59 | |
| 60 | *alpha* = _float_ |
| 61 | Background opacity, _0.0_ (transparent) to _1.0_ (opaque). Default _1.0_. |
| 62 | |
| 63 | *bold-as-bright* = _bool_ |
| 64 | Render bold text with the bright palette variant. Default _true_. |
| 65 | |
| 66 | # [cursor] |
| 67 | |
| 68 | *style* = _string_ |
| 69 | Default cursor shape: _block_, _beam_ (or _bar_), or _underline_. An |
| 70 | application may override this at runtime via DECSCUSR. Default _block_. |
| 71 | |
| 72 | *blink* = _bool_ |
| 73 | Whether the cursor blinks by default. Default _false_. |
| 74 | |
| 75 | # [scrollback] |
| 76 | |
| 77 | *lines* = _integer_ |
| 78 | Lines of history retained for the main screen. Default _10000_. |
| 79 | |
| 80 | # [bell] |
| 81 | |
| 82 | *visual* = _bool_ |
| 83 | Briefly flash the screen on the terminal bell. Default _false_. |
| 84 | |
| 85 | *command* = _[argv]_ |
| 86 | Command run on the bell, e.g. _["paplay", "/usr/share/sounds/bell.oga"]_. |
| 87 | Unset runs nothing. |
| 88 | |
| 89 | *urgent* = _bool_ |
| 90 | Request the compositor's attention (xdg-activation) when the bell rings |
| 91 | while the window is unfocused. Default _false_. |
| 92 | |
| 93 | # [mouse] |
| 94 | |
| 95 | *scroll-multiplier* = _float_ |
| 96 | Multiplier applied to the lines scrolled per wheel notch. Default _1.0_. |
| 97 | |
| 98 | *alternate-scroll* = _bool_ |
| 99 | On the alternate screen, translate the wheel into cursor-key presses so |
| 100 | full-screen programs that did not request mouse reporting (such as _less_ |
| 101 | and _man_) still scroll. Default _true_. |
| 102 | |
| 103 | # [key-bindings] |
| 104 | |
| 105 | A table of _chord_ = _action_ entries, merged over the built-in defaults. A |
| 106 | chord is modifiers and a key joined by _+_, e.g. _"Ctrl+Shift+C"_. An action of |
| 107 | _"none"_ unbinds the chord. |
| 108 | |
| 109 | Recognized actions: _copy_, _paste_, _paste-primary_, _scrollback-up_, |
| 110 | _scrollback-down_, _scrollback-top_, _scrollback-bottom_, _search_, |
| 111 | _font-increase_, _font-decrease_, _font-reset_, _fullscreen_, _new-window_, |
| 112 | _jump-prompt-up_, _jump-prompt-down_, _pipe-command-output_, _url-mode_, |
| 113 | _unicode-input_. |
| 114 | |
| 115 | ``` |
| 116 | [key-bindings] |
| 117 | "Ctrl+Shift+C" = "copy" |
| 118 | "Ctrl+`" = "none" |
| 119 | ``` |
| 120 | |
| 121 | # [shell-integration] |
| 122 | |
| 123 | Behaviour driven by *OSC 7* (cwd) and *OSC 133* (prompt) marks. |
| 124 | |
| 125 | *pipe-command* = _[argv]_ |
| 126 | Command the _pipe-command-output_ binding feeds the last command's output |
| 127 | to on stdin, e.g. _["less"]_. Empty (the default) disables the action. |
| 128 | |
| 129 | # [url] |
| 130 | |
| 131 | *launch* = _[argv]_ |
| 132 | Launcher the URL is appended to when an _OSC 8_ hyperlink is clicked or a |
| 133 | hint-mode label is chosen. Default _["xdg-open"]_. |
| 134 | |
| 135 | # [notify] |
| 136 | |
| 137 | *command* = _[argv]_ |
| 138 | Notifier for desktop notifications (_OSC 9_/_777_/_99_); the title and body |
| 139 | are appended as the final two arguments. Default _["notify-send"]_. |
| 140 | |
| 141 | # [text-bindings] |
| 142 | |
| 143 | A table of _chord_ = _text_ entries that send a literal string to the shell. |
| 144 | The text understands the escapes _\\e_, _\\n_, _\\r_, _\\t_, _\\\\_, and |
| 145 | _\\xNN_. |
| 146 | |
| 147 | ``` |
| 148 | [text-bindings] |
| 149 | "Ctrl+Shift+Return" = "\\x1b\\r" |
| 150 | ``` |
| 151 | |
| 152 | # SEE ALSO |
| 153 | |
| 154 | _beer_(1) |