-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalacritty.yml
268 lines (237 loc) · 9.22 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
# Configuration for Alacritty, the GPU enhanced terminal emulator
import:
- "~/.config/alacritty/themes/omni.yaml"
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty it self.
env:
# TERM env customization.
#
# If this property is not set, alacritty will set it to xterm-256color.
#
# Note that some xterm terminfo databases don't declare support for italics.
# You can verify this by checking for the presence of `smso` and `sitm` in
# `infocmp xterm-256color`.
TERM: xterm-256color
window:
# Window dimensions in character columns and lines
# (changes require restart)
dimensions:
columns: 160
lines: 40
# Adds this many blank pixels of padding around the window
# Units are physical pixels; this is not DPI aware.
# (change requires restart)
padding:
x: 2
y: 2
# Spread additional padding evenly around the terminal content.
dynamic_padding: false
dynamic_title: true
# Window decorations
# Setting this to false will result in window without borders and title bar.
decorations: full
# When true, bold text is drawn using the bright variant of colors.
draw_bold_text_with_bright_colors: true
scrolling:
# Maximum number of lines in the scrollback buffer.
# Specifying '0' will disable scrolling.
history: 20000
# Number of lines the viewport will move for every line scrolled when
# scrollback is enabled (history > 0).
multiplier: 3
# Font configuration (changes require restart)
font:
# The normal (roman) font face to use.
normal:
family: SF Mono
style: Regular
# The bold font face
bold:
family: SF Mono
style: Bold
# The italic font face
italic:
family: SF Mono
style: Regular Italic
# Point size of the font
size: 16.0
# Offset is the extra space around each character. offset.y can be thought of
# as modifying the linespacing, and offset.x as modifying the letter spacing.
offset:
x: 0
y: 0
# Glyph offset determines the locations of the glyphs within their cells with
# the default being at the bottom. Increase the x offset to move the glyph to
# the right, increase the y offset to move the glyph upward.
glyph_offset:
x: 0
y: 0
# OS X only: use thin stroke font rendering. Thin strokes are suitable
# for retina displays, but for non-retina you probably want this set to
# false.
use_thin_strokes: true
debug:
# Should display the render timer
render_timer: false
bell:
animation: EaseOutExpo
duration: 0
# Background opacity
background_opacity: 1.0
# Mouse bindings
#
# Currently doesn't support modifiers. Both the `mouse` and `action` fields must
# be specified.
#
# Values for `mouse`:
# - Middle
# - Left
# - Right
# - Numeric identifier such as `5`
#
# Values for `action`:
# - Paste
# - PasteSelection
# - Copy (TODO)
mouse_bindings:
- { mouse: Middle, action: PasteSelection }
mouse:
# Click settings
#
# The `double_click` and `triple_click` settings control the time
# alacritty should wait for accepting multiple clicks as one double
# or triple click.
double_click: { threshold: 300 }
triple_click: { threshold: 300 }
# If this is `true`, the cursor is temporarily hidden when typing.
hide_when_typing: true
url:
# URL launcher
#
# This program is executed when clicking on a text which is recognized as a URL.
# The URL is always added to the command as the last parameter.
launcher: open
# URL modifiers
#
# These are the modifiers that need to be held down for opening URLs when clicking
# on them. The available modifiers are documented in the key binding section.
#modifiers: Control|Shift
selection:
semantic_escape_chars: ",│`|:\"' ()[]{}<>"
# When set to `true`, selected text will be copied to both the primary and
# the selection clipboard. Otherwise, it will only be copied to the selection
# clipboard.
save_to_clipboard: true
cursor:
# Cursor style
#
# Values for 'style':
# - ▇ Block
# - _ Underline
# - | Beam
style: Block
unfocused_hollow: false
# Live config reload (changes require restart)
live_config_reload: true
# Shell
#
# You can set shell.program to the path of your favorite shell, e.g. /bin/zsh.
# Entries in shell.args are passed unmodified as arguments to the shell.
#
# shell:
# program: /usr/local/bin/fish
# args:
# - --login
#
shell:
program: /usr/local/bin/tmux
args:
- new-session
# Key bindings
#
# Each binding is defined as an object with some properties. Most of the
# properties are optional. All of the alphabetical keys should have a letter for
# the `key` value such as `V`. Function keys are probably what you would expect
# as well (F1, F2, ..). The number keys above the main keyboard are encoded as
# `Key1`, `Key2`, etc. Keys on the number pad are encoded `Number1`, `Number2`,
# etc. These all match the glutin::VirtualKeyCode variants.
#
# A list with all available `key` names can be found here:
# https://docs.rs/glutin/*/glutin/enum.VirtualKeyCode.html#variants
#
# Possible values for `mods`
# `Command`, `Super` refer to the super/command/windows key
# `Control` for the control key
# `Shift` for the Shift key
# `Alt` and `Option` refer to alt/option
#
# mods may be combined with a `|`. For example, requiring control and shift
# looks like:
#
# mods: Control|Shift
#
# The parser is currently quite sensitive to whitespace and capitalization -
# capitalization must match exactly, and piped items must not have whitespace
# around them.
#
# Either an `action`, `chars`, or `command` field must be present.
# `action` must be one of `Paste`, `PasteSelection`, `Copy`, or `Quit`.
# `chars` writes the specified string every time that binding is activated.
# These should generally be escape sequences, but they can be configured to
# send arbitrary strings of bytes.
# `command` must be a map containing a `program` string, and `args` array of
# strings. For example:
# - { ... , command: { program: "alacritty", args: ["-e", "vttest"] } }
key_bindings:
- { key: V, mods: Command, action: Paste }
- { key: C, mods: Command, action: Copy }
- { key: Key0, mods: Command, action: ResetFontSize }
- { key: Equals, mods: Command, action: IncreaseFontSize }
- { key: Minus, mods: Command, action: DecreaseFontSize }
# Scrolling will not work in tmux by default.
# See https://superuser.com/questions/310251/use-terminal-scrollbar-with-tmux
- { key: Up, mods: Command, action: ScrollPageUp }
- { key: Down, mods: Command, action: ScrollPageDown }
# C-b c Create a new window
- { key: T, mods: Command, chars: "\x02\x63" }
# C-b n Select the next window
- { key: Right, mods: Command, chars: "\x02\x6e" }
# C-b p Select the next window
- { key: Left, mods: Command, chars: "\x02\x70" }
# C-b 0 Select window 0-9
# Map Cmd-1 to window 0
- { key: Key1, mods: Command, chars: "\x02\x30" }
- { key: Key2, mods: Command, chars: "\x02\x31" }
- { key: Key3, mods: Command, chars: "\x02\x32" }
- { key: Key4, mods: Command, chars: "\x02\x33" }
- { key: Key5, mods: Command, chars: "\x02\x34" }
- { key: Key6, mods: Command, chars: "\x02\x35" }
- { key: Key7, mods: Command, chars: "\x02\x36" }
- { key: Key8, mods: Command, chars: "\x02\x37" }
- { key: Key9, mods: Command, chars: "\x02\x38" }
# C-b " split vertically (top/bottom)
- { key: D, mods: Command|Shift, chars: "\x02\x22" }
# C-b % split horizontally (left/right)
- { key: D, mods: Command, chars: "\x02\x25" }
# C-b right go to the next pane right
- { key: Right, mods: Command|Alt, chars: "\x02\x1b\x5b\x43" }
# C-b left; go to the next pane left
- { key: Left, mods: Command|Alt, chars: "\x02\x1b\x5b\x44" }
# C-b down; go to the next pane down
- { key: Down, mods: Command|Alt, chars: "\x02\x1b\x5b\x42" }
# C-b up; go to the next pane up
- { key: Up, mods: Command|Alt, chars: "\x02\x1b\x5b\x41" }
# C-b } move the current pane to the next position
- { key: Right, mods: Command|Alt|Shift, chars: "\x02\x7d" }
# C-b { move the current pane to the previous position
- { key: Left, mods: Command|Alt|Shift, chars: "\x02\x7b" }
# resize current pane by 1 row/column
- { key: Up, mods: Command|Control, chars: "\x02\x1b\x1b\x5b\x41" }
- { key: Down, mods: Command|Control, chars: "\x02\x1b\x1b\x5b\x42" }
- { key: Left, mods: Command|Control, chars: "\x02\x1b\x1b\x5b\x44" }
- { key: Right, mods: Command|Control, chars: "\x02\x1b\x1b\x5b\x43" }
# move the current pane into a new window (‘break pane’)
- { key: W, mods: Command, chars: "\x02\x21" }
# zoom toggle the current pane
- { key: Z, mods: Command, chars: "\x02\x7a" }