-
Notifications
You must be signed in to change notification settings - Fork 0
/
alacritty.yml
136 lines (113 loc) · 3.97 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Setup term for programs to be able to use it
env:
TERM: alacritty
# Enable <Ctrl+Arrow> nav for each word
# key_bindings:
# - { key: Right, mods: Alt, chars: "\x1BF" }
# - { key: Left, mods: Alt, chars: "\x1BB" }
window:
# Spread additional padding evenly around the terminal content.
dynamic_padding: true
# Startup Mode (changes require restart)
# startup_mode: Fullscreen
startup_mode: Windowed
scrolling:
history: 50000
# 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: FiraCode Nerd Font
# Font face
style: Retina
# Bold font face
bold:
family: FiraCode Nerd Font
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: 12.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 (Oceanic Next)
colors:
# Default colors
primary:
background: '0x1b2b34'
foreground: '0xd8dee9'
# Normal colors
normal:
black: '0x29414f'
red: '0xec5f67'
green: '0x99c794'
yellow: '0xfac863'
blue: '0x6699cc'
magenta: '0xc594c5'
cyan: '0x5fb3b3'
white: '0x65737e'
# Bright colors
bright:
black: '0x405860'
red: '0xec5f67'
green: '0x99c794'
yellow: '0xfac863'
blue: '0x6699cc'
magenta: '0xc594c5'
cyan: '0x5fb3b3'
white: '0xadb5c0'
# [References]
# Config
# - https://github.com/alacritty/alacritty/blob/master/alacritty.yml
# - https://gist.github.com/Cogitri/e8d5c63818443f3c8f13cd7760fe77aa
# - https://git.sr.ht/~rleek/dotfiles/tree/3f52701d57f23a868897fcadcf29d5d5f863098b/alacritty/.config/alacritty/alacritty.yml
#
# Themes
# - Preview: https://github.com/eendroroy/alacritty-theme
# - YML files: https://github.com/eendroroy/alacritty-theme/tree/master/themes