-
Notifications
You must be signed in to change notification settings - Fork 0
/
alacritty.yml
118 lines (99 loc) · 3.37 KB
/
alacritty.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# 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'