Skip to content

Instantly share code, notes, and snippets.

@AB9IL
Created May 29, 2023 22:10
Show Gist options
  • Save AB9IL/7afff0a090bbde2a3c039a90d1d58ce5 to your computer and use it in GitHub Desktop.
Save AB9IL/7afff0a090bbde2a3c039a90d1d58ce5 to your computer and use it in GitHub Desktop.
Alacritty Configuration
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
# check the local terminfo database and use `alacritty` if it is
# available, otherwise `xterm-256color` is used.
TERM: xterm-256color
window:
# 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.
opacity: 0.75
# Window dimensions (changes require restart)
#
# Number of lines/columns (not pixels) in the terminal. 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.
dimensions:
columns: 0
lines: 0
# Window position (changes require restart)
#
# Specified in number of pixels.
# If the position is not set, the window manager will handle the placement.
#position:
# x: 0
# y: 0
# 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.
padding:
x: 4
y: 4
# Window decorations
#
# 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
decorations: none
# Window title
title: Terminal
# Allow terminal applications to change Alacritty's window title.
dynamic_title: true
# Window class (Linux/BSD only):
class:
# Application instance name
instance: Terminal
# General application class
general: Terminal
scrolling:
# Maximum number of lines in the scrollback buffer.
# Specifying '0' will disable scrolling.
history: 3500
# Font configuration
font:
# Normal (roman) font face
normal:
# Font family
#
# Default:
# - (macOS) Menlo
# - (Linux/BSD) monospace
# - (Windows) Consolas
family: BitstreamVeraSansMono Nerd Font
# The `style` can be specified to pick a specific face.
style: Roman
# Bold font face
bold:
# Font family
#
# If the bold family is not specified, it will fall back to the
# value specified for the normal font.
family: BitstreamVeraSansMono Nerd Font
# The `style` can be specified to pick a specific face.
style: Bold
# Italic font face
italic:
# Font family
#
# If the italic family is not specified, it will fall back to the
# value specified for the normal font.
family: BitstreamVeraSansMono Nerd Font
# The `style` can be specified to pick a specific face.
style: Oblique
# Bold italic font face
bold_italic:
# Font family
#
# If the bold italic family is not specified, it will fall back to the
# value specified for the normal font.
family: BitstreamVeraSansMono Nerd Font
# The `style` can be specified to pick a specific face.
style: Bold Oblique
# Point size
size: 10.0
# 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.
offset:
x: 0
y: 1
# If `true`, bold text is drawn using the bright color variants.
draw_bold_text_with_bright_colors: true
# Colors (Campbell)
colors:
# Default colors
primary:
background: '#0c0c0c'
foreground: '#cccccc'
# Selection colors
#
# Colors which should be used to draw the selection area.
#
# Allowed values are CellForeground and CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
selection:
text: '#B3B1AD'
background: '#0A0E14'
# Normal colors
normal:
black: '#0c0c0c'
red: '#c50f1f'
green: '#13a10e'
yellow: '#c19c00'
blue: '#0037da'
magenta: '#881798'
cyan: '#3a96dd'
white: '#cccccc'
# Bright colors
bright:
black: '#767676'
red: '#e74856'
green: '#16c60c'
yellow: '#f9f1a5'
blue: '#3b78ff'
magenta: '#b4009e'
cyan: '#61d6d6'
white: '#f2f2f2'
cursor:
# 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
blinking: On
# Live config reload (changes require restart)
live_config_reload: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment