Alacritty configuration
Table of Contents
alacritty.toml
See all the syntax and available variables in their official site.
general
The general sections.
[general]
Include the theme files.
import = ["~/.config/alacritty/themes/nord.toml"]
This enables live configuration reloading
live_config_reload = true
window
[window]
dynamic padding
Spread additional padding evenly around the terminal content.
dynamic_padding = true
decoration
Window decorations.
- Full
- Borders and title bar.
- None
- Neither borders nor title bar.
- Transparent (macOS only)
- Title bar, transparent background and title bar buttons.
- Buttonless (macOS only)
- Title bar, transparent background and no title bar buttons.
decorations = "None"
padding
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.
Default: { x = 0, y = 0 }
padding = { x = 25, y = 25 }
blur
Request compositor to blur content behind transparent windows.
Default: false
blur = true
decorator theme variant
Override the variant of the System theme/GTK theme/Wayland client side decorations. Set this to "None" to use the system's default theme variant.
decorations_theme_variant = "Dark"
scrolling
[scrolling]
history
Maximum number of lines in the scrollback buffer. Specifying 0 will disable scrolling. Limited to 100000.
history = 100000
multiplier
Number of line scrolled for every input scroll increment.
multiplier = 2
Font
[font]
normal
normal = { family = "JetBrainsMonoNL Nerd Font Mono", style = "Regular" }
bold
bold = { family = "JetBrainsMonoNL Nerd Font Mono", style = "Bold" }
italic
italic = { family = "JetBrainsMonoNL Nerd Font Mono", style = "Italic" }
bold_italic
bold_italic = { family = "JetBrainsMonoNL Nerd Font Mono", style = "Semibold Italic" }
size
size = 8
bell
[bell]
animation
Visual bell animation effect for flashing the screen when the visual bell is rung.
animation = "EaseOutCirc"
duration
duration = 1
cursor
[cursor]
style
style = { shape = "Block", blinking = "Always" }
vi mode style
If the vi mode cursor style is "None" or not specified, it will fall back to the active value of the normal cursor.
vi_mode_style = { shape = "Block", blinking = "Off" }
mouse
[mouse]
hide when typing
hide_when_typing = true
selection
[selection]
save to clipboard
save_to_clipboard = true
env
[env]
term
TERM = "xterm-256color"
hints
enabled
[[hints.enabled]]
- command
command = "xdg-open"
- hyperlinks
hyperlinks = true
- post processing
post_processing = true
- persist
persist = false
- mouse
mouse.enabled = true
- binding
binding = { key = "U", mods = "Control|Shift" }
- regex
regex = "(ipfs:|ipns:|magnet:|mailto:|gemini://|gopher://|https://|http://|news:|file:|git://|ssh:|ftp://)[^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+"
Themes
nord
# -*- eval: (rainbow-mode 1) -*- # Colors (Nord) # Default colors [colors.primary] background = '#2E3440' foreground = '#D8DEE9' # Normal colors [colors.normal] black = '#3B4252' red = '#BF616A' green = '#A3BE8C' yellow = '#EBCB8B' blue = '#81A1C1' magenta = '#B48EAD' cyan = '#88C0D0' white = '#E5E9F0' # Bright colors [colors.bright] black = '#4C566A' red = '#BF616A' green = '#A3BE8C' yellow = '#EBCB8B' blue = '#81A1C1' magenta = '#B48EAD' cyan = '#8FBCBB' white = '#ECEFF4'