Alacritty Configuration
Alacritty configuration yaml file
| Type | object |
|---|---|
| File match |
.alacritty.yml
alacritty.yml
alacritty.toml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/alacritty-configuration/latest.json |
| Source | https://raw.githubusercontent.com/distinction-dev/alacritty-schema/main/alacritty/reference.json |
Validate with Lintel
npx @lintel/lintel check
Configuration schema for Alacritty, the GPU enhanced terminal emulator
Properties
Import additional configuration files. Imports are loaded in order, skipping all missing files, with the importing file being loaded last. If a field is already present in a previous import, it will be replaced.
You can set shell.program to the path of your favorite shell, e.g. /bin/zsh. Entries in shell.args are passed as arguments to the shell
Startup directory
Directory the shell is started in. If this is unset, or None, the working
directory of the parent process will be used.
Live config reload (changes require restart). Will make alacritty auto load new changes in the config file
Offer IPC using alacritty msg (unix only)
Any items in the env entry below will be added as environment variables. Some entries may override variables set by alacritty itself.
14 nested properties
Window dimensions (changes require restart).
Number of lines/columns (not pixels) in the terminal. Both lines and columns
must be non-zero for this to take effect. The number of columns must be at
least 2, while using a value of 0 for columns and lines will fall back
to the window manager's recommended size
2 nested properties
Window position (changes require restart) Specified in number of pixels. If the position is not set, the window manager will handle the placement.
2 nested properties
Window padding (changes require restart)
Blank space added around the window in pixels. This padding is scaled by DPI and the specified value is always added at both opposing sides.
2 nested properties
Spread additional padding evenly around the terminal content.
Values for decorations:
- full: Borders and title bar
- none: Neither borders nor title bar
Values for decorations (macOS only):
- transparent: Title bar, transparent background and title bar buttons
- buttonless: Title bar, transparent background and no title bar buttons
Background opacity
Window opacity as a floating point number from 0.0 to 1.0.
The value 0.0 is completely transparent and 1.0 is opaque.
Request compositor to blur content behind transparent windows
Startup Mode (changes require restart)
Values for startup_mode:
- Windowed
- Maximized
- Fullscreen
Values for startup_mode (macOS only):
- SimpleFullscreen
Window Title
Allow terminal applications to change Alacritty's window title.
Window class (Linux/BSD only):
2 nested properties
Decorations theme variant (Linux/BSD only)
Override the variant of the GTK theme/Wayland client side decorations.
Commonly supported values are dark and light. Set this to None to use
the default theme variant.
Prefer resizing window by discrete steps equal to cell dimensions
Make Option key behave as Alt (macos only)
2 nested properties
Maximum number of lines in the scrollback buffer. Specifying '0' will disable scrolling.
Scrolling distance multiplier.
8 nested properties
2 nested properties
Font family
Default:
- (macOS) Menlo
- (Linux/BSD) monospace
- (Windows) Consolas
The style can be specified to pick a specific face.
2 nested properties
If the bold family is not specified, it will fall back to the value specified for the normal font.
The style can be specified to pick a specific face.
2 nested properties
If the italic family is not specified, it will fall back to the value specified for the normal font.
The style can be specified to pick a specific face.
2 nested properties
If the bold_italic family is not specified, it will fall back to the value specified for the normal font.
The style can be specified to pick a specific face.
Point size
Offset is the extra space around each character. offset.y can be thought
of as modifying the line spacing, and offset.x as modifying the letter
spacing.
2 nested properties
Glyph offset determines the locations of the glyphs within their cells with
the default being at the bottom. Increasing x moves the glyph to the
right, increasing y moves the glyph upward.
2 nested properties
Use built-in font for box drawing characters.
If true, Alacritty will use a custom built-in font for box drawing
characters (Unicode points 2500 - 259f).
14 nested properties
4 nested properties
If this is not set, the color is automatically calculated based on the foreground color
This color is only used when draw_bold_text_with_bright_colors is true. If this is not set, the normal foreground will be used
Colors which should be used to draw the terminal cursor. Allowed values are hexadecimal colors like #ff00ff, or CellForeground/CellBackground, which references the affected cell
2 nested properties
Colors for the cursor when the vi mode is active. Allowed values are hexadecimal colors like #ff00ff, or CellForeground/CellBackground, which references the affected cell
2 nested properties
2 nested properties
2 nested properties
2 nested properties
2 nested properties
First character in the hint label. Allowed values are hexadecimal colors like #ff00ff, or CellForeground/CellBackground, which references the affected cell
2 nested properties
All characters after the first one in the hint label. Allowed values are hexadecimal colors like #ff00ff, or CellForeground/CellBackground, which references the affected cell
2 nested properties
Color used for the indicator displaying the position in history during search and vi mode
2 nested properties
Color used for the footer bar on the bottom, used by search regex input, hyperlink URI preview, etc
2 nested properties
Colors used for drawing selections. Allowed values are hexadecimal colors like #ff00ff, or CellForeground/CellBackground, which references the affected cell
2 nested properties
8 nested properties
8 nested properties
8 nested properties
The indexed colors include all colors from 16 to 256. When these are not set, they're filled with sensible defaults
Whether or not window.opacity applies to all cell backgrounds, or only to the default background. When set to true all cells will be transparent regardless of their background color
If true, bold text is drawn using the bright color variants.
The bell is rung every time the BEL control character is received.
4 nested properties
Animation effect for flashing the screen when the visual bell is rung.
Duration of the visual bell flash in milliseconds. A duration of 0 will
disable the visual bell animation.
Visual bell animation color.
2 nested properties
2 nested properties
This string contains all characters that are used as separators for "semantic words" in Alacritty.
When set to true, selected text will be copied to the primary clipboard.
6 nested properties
Cursor Style
2 nested properties
Cursor shape
Values for shape:
- ▇ Block
- _ Underline
- | Beam
Cursor blinking state
Values for blinking:
- Never: Prevent the cursor from ever blinking
- Off: Disable blinking by default
- On: Enable blinking by default
- Always: Force the cursor to always blink
Vi mode cursor style
If the vi mode cursor style is None or not specified, it will fall back to
the style of the active value of the normal cursor.
Cursor blinking interval in milliseconds.
Time after which cursor stops blinking in seconds.
Specifying '0' will disable timeout for blinking
If this is true, the cursor will be rendered as a hollow box when the window is not focused.
Thickness of the cursor relative to the cell width as floating point number from 0.0 to 1.0.
2 nested properties
When this is true, the cursor is temporarily hidden when typing.
Terminal hints can be used to find text or hyperlinks in the visible part of the terminal and pipe it to other applications
2 nested properties
Keys used for the hint labels
Array with all available hints. Each hint must have at least one of regex or hyperlinks and either an action or a command
1 nested properties
7 nested properties
Display the time it takes to redraw each frame.
Keep the log file after quitting Alacritty.
To add extra libraries to logging ALACRITTY_EXTRA_LOG_TARGETS variable can be used
Force use of a specific renderer, "None" will use the highest available one.
Log all received window events
Highlight window damage information.
Use EGL as display API if the current platform allows it. Note that transparency may not work with EGL on Linux/BSD
Definitions
Cursor Style
Cursor shape
Values for shape:
- ▇ Block
- _ Underline
- | Beam
Cursor blinking state
Values for blinking:
- Never: Prevent the cursor from ever blinking
- Off: Disable blinking by default
- On: Enable blinking by default
- Always: Force the cursor to always blink
Identifier of the key pressed.
- A-Z
- F1-F24
- Key0-Key9
A full list with available key codes can be found here: https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants
Instead of using the name of the keys, the key field also supports using the scancode of the desired key. Scancodes have to be specified as a decimal number. This command will allow you to display the hex scancodes for certain keys:
`showkey --scancodes`.
The chars field writes the specified string to the terminal. This makes
it possible to pass escape sequences. To find escape codes for bindings
like PageUp ("\x1b[5~"), you can run the command showkey -a outside
of tmux. Note that applications use terminfo to map escape sequences back
to keys. It is therefore required to update the terminfo when changing an
escape sequence.
Execute a predefined action
- ToggleViMode
- SearchForward Start searching toward the right of the search origin.
- SearchBackward Start searching toward the left of the search origin.
- Copy
- Paste
- IncreaseFontSize
- DecreaseFontSize
- ResetFontSize
- ScrollPageUp
- ScrollPageDown
- ScrollHalfPageUp
- ScrollHalfPageDown
- ScrollLineUp
- ScrollLineDown
- ScrollToTop
- ScrollToBottom
- ClearHistory Remove the terminal's scrollback history.
- Hide Hide the Alacritty window.
- Minimize Minimize the Alacritty window.
- Quit Quit Alacritty.
- ToggleFullscreen
- SpawnNewInstance Spawn a new instance of Alacritty.
- CreateNewWindow Create a new Alacritty window from the current process.
- ClearLogNotice Clear Alacritty's UI warning and error notice.
- ClearSelection Remove the active selection.
- ReceiveChar
- None
- Vi mode exclusive actions:
- Open
Perform the action of the first matching hint under the vi mode cursor
with
mouse.enabledset totrue. - ToggleNormalSelection
- ToggleLineSelection
- ToggleBlockSelection
- ToggleSemanticSelection
Toggle semantic selection based on
selection.semantic_escape_chars. - CenterAroundViCursor Center view around vi mode cursor
- Open
Perform the action of the first matching hint under the vi mode cursor
with
- Vi mode exclusive cursor motion actions:
- Up One line up.
- Down One line down.
- Left One character left.
- Right One character right.
- First First column, or beginning of the line when already at the first column.
- Last Last column, or beginning of the line when already at the last column.
- FirstOccupied First non-empty cell in this terminal row, or first non-empty cell of the line when already at the first cell of the row.
- High Top of the screen.
- Middle Center of the screen.
- Low Bottom of the screen.
- SemanticLeft Start of the previous semantically separated word.
- SemanticRight Start of the next semantically separated word.
- SemanticLeftEnd End of the previous semantically separated word.
- SemanticRightEnd End of the next semantically separated word.
- WordLeft Start of the previous whitespace separated word.
- WordRight Start of the next whitespace separated word.
- WordLeftEnd End of the previous whitespace separated word.
- WordRightEnd End of the next whitespace separated word.
- Bracket Character matching the bracket at the cursor's location.
- SearchNext Beginning of the next match.
- SearchPrevious Beginning of the previous match.
- SearchStart Start of the match to the left of the vi mode cursor.
- SearchEnd End of the match to the right of the vi mode cursor.
- Search mode exclusive actions:
- SearchFocusNext Move the focus to the next search match.
- SearchFocusPrevious Move the focus to the previous search match.
- SearchConfirm
- SearchCancel
- SearchClear Reset the search regex.
- SearchDeleteWord Delete the last word in the search regex.
- SearchHistoryPrevious Go to the previous regex in the search history.
- SearchHistoryNext Go to the next regex in the search history.
- macOS exclusive actions:
- ToggleSimpleFullscreen Enter fullscreen without occupying another space.
- Linux/BSD exclusive actions:
- CopySelection Copy from the selection buffer.
- PasteSelection Paste from the selection buffer.
Multiple modifiers can be combined using |, like this: "Control | Shift"