Skip to content

Instantly share code, notes, and snippets.

@nsakki55
Last active February 3, 2024 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nsakki55/31550242085f9233088be8a49241a7ed to your computer and use it in GitHub Desktop.
Save nsakki55/31550242085f9233088be8a49241a7ed to your computer and use it in GitHub Desktop.
# ====================== GENERAL ======================
# Import additional configuration files
# import = []
# The path of your favorite shell
[shell]
# Example
program = "/bin/zsh"
args = ["-l"]
# Working directory
working_directory = "None" # Default: "None"
# Live config reload (changes require restart)
live_config_reload = true # Default: true
# Offer IPC using alacritty msg (unix only)
ipc_socket = true # Default: true
# ====================== ENV ======================
[env]
# Example
WINIT_X11_SCALE_FACTOR = "1.0"
# ====================== WINDOW ======================
[window]
# Window dimensions
dimensions = { columns = 0, lines = 0 } # Default: columns = 0, lines = 0
# Window startup position
position = "None" # Default: "None"
# Blank space added around the window in pixels
padding = { x = 0, y = 0 } # Default: x = 0, y = 0
# Spread additional padding evenly around the terminal content
dynamic_padding = false # Default: false
# Window decorations
decorations = "Full" # Default: "Full"
# Opacity
opacity = 1.0 # Default: 1.0
# Request compositor to blur content behind transparent windows.
blur = false # Default: false
# Startup mode (changes require restart)
startup_mode = "Windowed" # Default: "Windowed"
# Window title
title = "Alacritty" # Default: "Alacritty"
# Allow terminal applications to change Alacritty's window title.
dynamic_title = true # Default: true
# Window class (Linux/BSD only)
class = { instance = "Alacritty", general = "Alacritty" } # Default: instance = "Alacritty", general = "Alacritty"
# Override the variant of the System theme/GTK theme/Wayland client side decorations.
decorations_theme_variant = "None" # Default: "None"
# Prefer resizing window by discrete steps equal to cell dimensions.
resize_increments = false # Default: false
# Make Option key behave as Alt.
option_as_alt = "None" # Default: "None"
# ====================== SCROLING ======================
[scrolling]
# Maximum number of lines in the scrollback buffer
history = 10000 # Default: 10000
# Number of lines scrolled for every input scroll increment
multiplier = 3 # Default: 3
# ====================== FONT ======================
[font]
# Normal font style
normal = { family = "Menlo", style = "Regular" } # Default for Linux/BSD: "monospace", Regular
# Bold font style
bold = { style = "Bold" } # Inherits family from normal, Default style: Bold
# Italic font style
italic = { style = "Italic" } # Inherits family from normal, Default style: Italic
# Bold Italic font style
bold_italic = { style = "Bold Italic" } # Inherits family from normal, Default style: Bold Italic
# Font size in points
size = 11.25 # Default: 11.25
# Offset is extra space around each character
offset = { x = 0, y = 0 } # Default: x = 0, y = 0
# Glyph offset determines the locations of the glyphs within their cells
glyph_offset = { x = 0, y = 0 } # Default: x = 0, y = 0
# Use built-in font for box drawing characters
builtin_box_drawing = true # Default: true
# ====================== COLORS ======================
[colors]
indexed_colors = [] # Default
# Transparent background colors
transparent_background_colors = false # Default
# Draw bold text with bright colors
draw_bold_text_with_bright_colors = false # Default
# Primary colors
[colors.primary]
foreground = "#d8d8d8" # Default
background = "#181818" # Default
dim_foreground = "#828482" # Default
bright_foreground = "None" # Default
# Cursor colors
[colors.cursor]
text = "CellBackground" # Default
cursor = "CellForeground" # Default
# Vi mode cursor colors
[colors.vi_mode_cursor]
text = "CellBackground" # Default
cursor = "CellForeground" # Default
# Search colors
[colors.search.matches]
foreground = "#181818" # Default
background = "#ac4242" # Default
[colors.search.focused_match]
foreground = "#181818" # Default
background = "#f4bf75" # Default
# Hint colors
[colors.hints.start]
foreground = "#181818" # Default
background = "#f4bf75" # Default
[colors.hints.end]
foreground = "#181818" # Default
background = "#ac4242" # Default
# Line indicator colors
[colors.line_indicator]
foreground = "None" # Default
background = "None" # Default
# Footer bar colors
[colors.footer_bar]
foreground = "#181818" # Default
background = "#d8d8d8" # Default
# Selection colors
[colors.selection]
text = "CellBackground" # Default
background = "CellForeground" # Default
# Normal colors
[colors.normal]
black = "#181818" # Default
red = "#ac4242" # Default
green = "#90a959" # Default
yellow = "#f4bf75" # Default
blue = "#6a9fb5" # Default
magenta = "#aa759f" # Default
cyan = "#75b5aa" # Default
white = "#d8d8d8" # Default
# Bright colors
[colors.bright]
black = "#6b6b6b" # Default
red = "#c55555" # Default
green = "#aac474" # Default
yellow = "#feca88" # Default
blue = "#82b8c8" # Default
magenta = "#c28cb8" # Default
cyan = "#93d3c3" # Default
white = "#f8f8f8" # Default
# Dim colors
[colors.dim]
black = "#0f0f0f" # Default
red = "#712b2b" # Default
green = "#5f6f3a" # Default
yellow = "#a17e4d" # Default
blue = "#456877" # Default
magenta = "#704d68" # Default
cyan = "#4d7770" # Default
white = "#8e8e8e" # Default
# ====================== BELL ======================
[bell]
# Visual bell animation effect for flashing the screen when the visual bell is rung.
animation = "Linear" # Default: "Linear"
# Duration of the visual bell flash in milliseconds
duration = 0 # Default: 0
# Visual bell animation color
color = "#ffffff" # Default: "#ffffff"
# Command executed when the bell is rung
command = "None" # Default: "None"
# ====================== SELECTION ======================
[selection]
# Characters that are used as separators for "semantic words" in Alacritty
semantic_escape_chars = ",│`|:\"' ()[]{}<>\\t" # Default: ",│`|:\"' ()[]{}<>\\t"
# When set to true, selected text will be copied to the primary clipboard
save_to_clipboard = false # Default: false
# ====================== CURSOR ======================
[cursor]
# Cursor style
style = { shape = "Block", blinking = "On" } # Default: shape = "Block", blinking = "Off"
# Vi mode cursor style (falls back to the active value of the normal cursor if "None")
vi_mode_style = "None" # Default: "None"
# Cursor blinking interval in milliseconds
blink_interval = 750 # Default: 750
# Time after which cursor stops blinking, in seconds
blink_timeout = 5 # Default: 5
# When true, the cursor will be rendered as a hollow box when the window is not focused
unfocused_hollow = true # Default: true
# Thickness of the cursor relative to the cell width
thickness = 0.15 # Default: 0.15
# ====================== TERMINAL ======================
[terminal]
# Controls the OSC 52 behavior for clipboard interactions
osc52 = "OnlyCopy" # Default: "OnlyCopy"
# ====================== MOUSE ======================
[mouse]
# When true, the cursor is temporarily hidden when typing
hide_when_typing = true # Default: false
# Mouse bindings (actual bindings need to be defined as per user preference)
# Example
bindings = [
# { mouse = "Right", mods = "Control", action = "Paste" },
]
# ====================== HINTS ======================
[hints]
# Define the keys used for hint labels
alphabet = "jfkdls;ahgurieowpq" # Default: "jfkdls;ahgurieowpq"
[[hints.enabled]]
command = "xdg-open" # On Linux/BSD
# command = "open" # On macOS
# command = { program = "cmd", args = [ "/c", "start", "" ] } # On Windows
hyperlinks = true
post_processing = true
persist = false
mouse.enabled = true
binding = { key = "U", mods = "Control|Shift" }
regex = "(ipfs:|ipns:|magnet:|mailto:|gemini://|gopher://|https://|http://|news:|file:|git://|ssh:|ftp://)[^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+"
# ====================== KEYBOARD ======================
[keyboard]
# Example
bindings = [
# { key = "N", mods = "Control|Shift", action = "CreateNewWindow" },
# { key = "L", mods = "Control|Shift", chars = "l" },
]
# ====================== DEBUG ======================
[debug]
# Display the time it takes to draw each frame.
render_timer = false # Default: false
# Keep the log file after quitting Alacritty.
persistent_logging = false # Default: false
log_level = "Warn" # Default: "Warn"
# Force use of a specific renderer, "None" will use the highest available one.
renderer = "None" # Default: "None"
# Log all received window events.
print_events = false # Default: false
# Highlight window damage information.
highlight_damage = false # Default: false
# Use EGL as display API if the current platform allows it.
prefer_egl = false # Default: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment