Last active
January 4, 2022 06:14
-
-
Save PezCoder/6c0bc0cba30027ffeec9fff8b7d4bed0 to your computer and use it in GitHub Desktop.
Sample alacritty.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration for Alacritty, the GPU enhanced terminal emulator. | |
# Setup term for programs to be able to use it | |
env: | |
TERM: alacritty | |
window: | |
# Spread additional padding evenly around the terminal content. | |
dynamic_padding: true | |
# Startup Mode (changes require restart) | |
startup_mode: Fullscreen | |
# Sample Font configuration for font: Monoid. | |
# Feel free to use different font configuration family & face for each sections | |
font: | |
# Normal font face - Also used to draw glyphs on tmux & VIM | |
# NOTE: You may use any font you'd like but make sure the normal fonts | |
# support ligatures/glyphs. That's used by tmux & VIM to provide a better | |
# UI for powerline & tmux bottom bar. | |
normal: | |
# Font name | |
family: Monoid | |
# Font face | |
style: Retina | |
# Bold font face | |
bold: | |
family: Monoid | |
style: Bold | |
# Italic font face | |
italic: | |
family: Monoid | |
style: Italic | |
# Bold italic font face | |
# Note: Since i don't have a font italic version of this font, I just specified | |
# italic & it just works. You may specifiy the bold italic version if it exists | |
# for your font | |
bold_italic: | |
family: Monoid | |
style: Italic | |
# Font size | |
size: 14.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 | |
# I've given in 14 spacing which fits really well with my fonts, you may change it | |
# to your convenience but make sure to adjust 'glyph_offset' appropriately post that | |
offset: | |
x: 0 | |
y: 14 | |
# Note: This requires RESTART | |
# By default when you change the offset above you'll see an issue, where the texts are bottom | |
# aligned with the cursor, this is to make sure they center align. | |
# This offset should usually be 1/2 of the above offset-y being set. | |
glyph_offset: | |
x: 0 | |
# Keeping this as half of offset to vertically align the text in cursor | |
y: 7 | |
# Better font rendering for mac | |
use_thin_strokes: true | |
selection: | |
semantic_escape_chars: ",│`|:\"' ()[]{}<>\t" | |
# When set to `true`, selected text will be copied to the primary clipboard. | |
save_to_clipboard: true | |
# Live config reload (changes require restart) | |
live_config_reload: true | |
# Setup some amazing custom key bindings here - Best thing is you can setup key bindings | |
# using Mac's 'command' to control your tmux. | |
# A great reference: https://arslan.io/2018/02/05/gpu-accelerated-terminal-alacritty/#make-alacritty-feel-like-iterm2 | |
key_bindings: | |
# Use command + [ - to go to previous tmux window | |
- { key: LBracket, mods: Command, chars: "\x5c\x70" } | |
# Use command + ] - to go to previous tmux window | |
- { key: RBracket, mods: Command, chars: "\x5c\x6e" } | |
# ctrl-^ doesn't work in some terminals like alacritty | |
- { key: Key6, mods: Control, chars: "\x1e" } | |
# Colors (Gruvbox dark) | |
colors: | |
# Default colors | |
primary: | |
# hard contrast: background = '#1d2021' | |
background: '#282828' | |
# soft contrast: background = '#32302f' | |
foreground: '#ebdbb2' | |
# Normal colors | |
normal: | |
black: '#282828' | |
red: '#cc241d' | |
green: '#98971a' | |
yellow: '#d79921' | |
blue: '#458588' | |
magenta: '#b16286' | |
cyan: '#689d6a' | |
white: '#a89984' | |
# Bright colors | |
bright: | |
black: '#928374' | |
red: '#fb4934' | |
green: '#b8bb26' | |
yellow: '#fabd2f' | |
blue: '#83a598' | |
magenta: '#d3869b' | |
cyan: '#8ec07c' | |
white: '#ebdbb2' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment