Skip to content

alacritty.toml

Configuration file for the Alacritty terminal emulator.

TOML120 linesconfigs/

Source

configs/alacritty.toml
## Configuration file for the Alacritty terminal emulator.

# Alacritty terminal configuration
# =====================================================================
# ALACRITTY - MATTE BLACK HARDWARE INTERFACE (FULL PRO CONFIGURATION)
# =====================================================================

# --- GENERAL SETTINGS ---
# Tells Alacritty to reload changes immediately when you save this file
[general]
live_config_reload = true

[env]
TERM = "xterm-256color"

# --- WINDOW CONFIGURATION ---
[window]
padding = { x = 12, y = 12 }
decorations = "Full"        # Enables Minimize, Maximize, and Close buttons
opacity = 1.0               # Matte black look (change to 0.9 if you want slight transparency)
blur = true                 # Enables background blur if your desktop compositor supports it
startup_mode = "Windowed"   # Can be "Windowed", "Maximized", or "Fullscreen"
dynamic_title = true        # Allows running apps (like bash/nvim) to update the window title

# --- FONT CONFIGURATION ---
[font]
size = 17.0

[font.normal]
family = "JetBrainsMono Nerd Font"
style = "Regular"

[font.bold]
family = "JetBrainsMono Nerd Font"
style = "Bold"

[font.italic]
family = "JetBrainsMono Nerd Font"
style = "Italic"

[font.bold_italic]
family = "JetBrainsMono Nerd Font"
style = "Bold Italic"

# --- SCROLLBACK BUFFER ---
[scrolling]
history = 10000             # Remember 10,000 lines of terminal text scrollback
multiplier = 3              # Number of lines scrolled per mouse wheel tick

# --- CURSOR ---
[cursor]
style = { shape = "Block", blinking = "On" }
blink_interval = 750        # Blink speed in milliseconds
unfocused_hollow = true     # Turns cursor into an empty box when the window loses focus

# --- SELECTION & CLIPBOARD ---
[selection]
save_to_clipboard = true    # Automatically copy highlighted text to your clipboard

# --- MATTE BLACK COLOR SCHEME ---
[colors.primary]
background = "#121212"
foreground = "#e0e0e0"

[colors.selection]
text = "CellForeground"
background = "#282828"

[colors.normal]
black   = "#161616"
red     = "#c30010"
green   = "#90a959"
yellow  = "#f4bf75"
blue    = "#6a9fb5"
magenta = "#aa759f"
cyan    = "#75b5aa"
white   = "#e0e0e0"

[colors.bright]
black   = "#404040"
red     = "#e55555"
green   = "#aac474"
yellow  = "#feca88"
blue    = "#82b8c8"
magenta = "#c28cb8"
cyan    = "#93d3c3"
white   = "#ffffff"

# --- KEYBOARD BINDINGS ---
# Handy layout mapping for basic quality of life terminal actions
[[keyboard.bindings]]
key = "V"
mods = "Control|Shift"
action = "Paste"

[[keyboard.bindings]]
key = "C"
mods = "Control|Shift"
action = "Copy"

[[keyboard.bindings]]
key = "0"
mods = "Control"
action = "ResetFontSize"

[[keyboard.bindings]]
key = "="
mods = "Control"
action = "IncreaseFontSize"

[[keyboard.bindings]]
key = "-"
mods = "Control"
action = "DecreaseFontSize"

[[keyboard.bindings]]
key = "Enter"
mods = "Control|Shift"
action = "SpawnNewInstance"  # Opens a fresh terminal window in your current path