Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aos
GitHub Repository: aos/dotfiles
Path: blob/master/files/alacritty.yml
245 views
1
# Configuration for Alacritty, the GPU enhanced terminal emulator.
2
3
# Any items in the `env` entry below will be added as
4
# environment variables. Some entries may override variables
5
# set by alacritty itself.
6
#env:
7
# TERM variable
8
#
9
# This value is used to set the `$TERM` environment variable for
10
# each instance of Alacritty. If it is not present, alacritty will
11
# check the local terminfo database and use `alacritty` if it is
12
# available, otherwise `xterm-256color` is used.
13
# TERM: xterm-256color
14
15
window:
16
# Window dimensions (changes require restart)
17
#
18
# Specified in number of columns/lines, not pixels.
19
# If both are `0`, this setting is ignored.
20
dimensions:
21
columns: 0
22
lines: 0
23
24
dynamic_title: true
25
26
# Window position (changes require restart)
27
#
28
# Specified in number of pixels.
29
# If the position is not set, the window manager will handle the placement.
30
#position:
31
# x: 0
32
# y: 0
33
34
# Window padding (changes require restart)
35
#
36
# Blank space added around the window in pixels. This padding is scaled
37
# by DPI and the specified value is always added at both opposing sides.
38
padding:
39
x: 5
40
y: 0
41
42
# Spread additional padding evenly around the terminal content.
43
dynamic_padding: false
44
45
# Window decorations
46
#
47
# Values for `decorations`:
48
# - full: Borders and title bar
49
# - none: Neither borders nor title bar
50
#
51
# Values for `decorations` (macOS only):
52
# - transparent: Title bar, transparent background and title bar buttons
53
# - buttonless: Title bar, transparent background, but no title bar buttons
54
decorations: full
55
56
# Startup Mode (changes require restart)
57
#
58
# Values for `startup_mode`:
59
# - Windowed
60
# - Maximized
61
# - Fullscreen
62
#
63
# Values for `startup_mode` (macOS only):
64
# - SimpleFullscreen
65
startup_mode: Windowed
66
67
# Window title
68
#title: Alacritty
69
70
# Window class (Linux only):
71
#class: Alacritty
72
73
scrolling:
74
# Maximum number of lines in the scrollback buffer.
75
# Specifying '0' will disable scrolling.
76
history: 10000
77
78
# Number of lines the viewport will move for every line scrolled when
79
# scrollback is enabled (history > 0).
80
multiplier: 3
81
82
# Faux Scrolling
83
#
84
# The `faux_multiplier` setting controls the number of lines the terminal
85
# should scroll when the alternate screen buffer is active. This is used
86
# to allow mouse scrolling for applications like `man`.
87
#
88
# Specifying `0` will disable faux scrolling.
89
# faux_multiplier: 3
90
91
# Scroll to the bottom when new text is written to the terminal.
92
# auto_scroll: false
93
94
# Spaces per Tab (changes require restart)
95
#
96
# This setting defines the width of a tab in cells.
97
#
98
# Some applications, like Emacs, rely on knowing about the width of a tab.
99
# To prevent unexpected behavior in these applications, it's also required to
100
# change the `it` value in terminfo when altering this setting.
101
# tabspaces: 8
102
103
# Font configuration (changes require restart)
104
font:
105
# Normal (roman) font face
106
normal:
107
# Font family
108
#
109
# Default:
110
# - (macOS) Menlo
111
# - (Linux) monospace
112
# - (Windows) Consolas
113
family: "monospace"
114
115
# The `style` can be specified to pick a specific face.
116
style: Regular
117
118
# Bold font face
119
bold:
120
# Font family
121
#
122
# If the bold family is not specified, it will fall back to the
123
# value specified for the normal font.
124
family: "monospace"
125
126
# The `style` can be specified to pick a specific face.
127
style: Bold
128
129
# Italic font face
130
italic:
131
# Font family
132
#
133
# If the italic family is not specified, it will fall back to the
134
# value specified for the normal font.
135
family: "monospace"
136
137
# The `style` can be specified to pick a specific face.
138
style: Italic
139
140
# Point size
141
size: 11
142
143
# Offset is the extra space around each character. `offset.y` can be thought of
144
# as modifying the line spacing, and `offset.x` as modifying the letter spacing.
145
offset:
146
x: 0
147
y: 0
148
149
# Glyph offset determines the locations of the glyphs within their cells with
150
# the default being at the bottom. Increasing `x` moves the glyph to the right,
151
# increasing `y` moves the glyph upwards.
152
glyph_offset:
153
x: 0
154
y: 0
155
156
# Thin stroke font rendering (macOS only)
157
#
158
# Thin strokes are suitable for retina displays, but for non-retina screens
159
# it is recommended to set `use_thin_strokes` to `false`
160
#
161
# macOS >= 10.14.x:
162
#
163
# If the font quality on non-retina display looks bad then set
164
# `use_thin_strokes` to `true` and enable font smoothing by running the
165
# following command:
166
# `defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO`
167
#
168
# This is a global setting and will require a log out or restart to take
169
# effect.
170
use_thin_strokes: true
171
172
# If `true`, bold text is drawn using the bright color variants.
173
draw_bold_text_with_bright_colors: true
174
175
# Colors (Gruvbox)
176
colors:
177
# Default colors
178
primary:
179
background: '0x282828'
180
foreground: '0xeaeaea'
181
182
# Bright and dim foreground colors
183
#
184
# The dimmed foreground color is calculated automatically if it is not present.
185
# If the bright foreground color is not set, or `draw_bold_text_with_bright_colors`
186
# is `false`, the normal foreground color will be used.
187
#dim_foreground: '0x9a9a9a'
188
#bright_foreground: '0xffffff'
189
190
# Cursor colors
191
#
192
# Colors which should be used to draw the terminal cursor. If these are unset,
193
# the cursor color will be the inverse of the cell color.
194
#cursor:
195
# text: '0x000000'
196
# cursor: '0xffffff'
197
198
# Selection colors
199
#
200
# Colors which should be used to draw the selection area. If selection
201
# background is unset, selection color will be the inverse of the cell colors.
202
# If only text is unset the cell text color will remain the same.
203
#selection:
204
# text: '0xeaeaea'
205
# background: '0x404040'
206
207
# Normal colors
208
normal:
209
black: '0x282828'
210
red: '0xcc241d'
211
green: '0xb8bb26'
212
yellow: '0xfabd2f'
213
blue: '0x83a598'
214
magenta: '0xd3869b'
215
cyan: '0x689d6a'
216
white: '0xebdbb2'
217
218
# Bright colors
219
bright:
220
black: '0x666666'
221
red: '0xff3334'
222
green: '0x9ec400'
223
yellow: '0xe7c547'
224
blue: '0x7aa6da'
225
magenta: '0xb77ee0'
226
cyan: '0x54ced6'
227
white: '0xffffff'
228
229
# Dim colors
230
#
231
# If the dim colors are not set, they will be calculated automatically based
232
# on the `normal` colors.
233
#dim:
234
# black: '0x000000'
235
# red: '0x8c3336'
236
# green: '0x7a8530'
237
# yellow: '0x97822e'
238
# blue: '0x506d8f'
239
# magenta: '0x80638e'
240
# cyan: '0x497e7a'
241
# white: '0x9a9a9a'
242
243
# Indexed Colors
244
#
245
# The indexed colors include all colors from 16 to 256.
246
# When these are not set, they're filled with sensible defaults.
247
#
248
# Example:
249
# `- { index: 16, color: '0xff00ff' }`
250
#
251
indexed_colors: []
252
253
# Visual Bell
254
#
255
# Any time the BEL code is received, Alacritty "rings" the visual bell. Once
256
# rung, the terminal background will be set to white and transition back to the
257
# default background color. You can control the rate of this transition by
258
# setting the `duration` property (represented in milliseconds). You can also
259
# configure the transition function by setting the `animation` property.
260
#
261
# Values for `animation`:
262
# - Ease
263
# - EaseOut
264
# - EaseOutSine
265
# - EaseOutQuad
266
# - EaseOutCubic
267
# - EaseOutQuart
268
# - EaseOutQuint
269
# - EaseOutExpo
270
# - EaseOutCirc
271
# - Linear
272
#
273
# Specifying a `duration` of `0` will disable the visual bell.
274
#visual_bell:
275
# animation: EaseOutExpo
276
# duration: 0
277
# color: '0xffffff'
278
279
# Background opacity
280
#
281
# Window opacity as a floating point number from `0.0` to `1.0`.
282
# The value `0.0` is completely transparent and `1.0` is opaque.
283
background_opacity: 1.0
284
285
# Mouse bindings
286
#
287
# Available fields:
288
# - mouse
289
# - action
290
# - mods (optional)
291
#
292
# Values for `mouse`:
293
# - Middle
294
# - Left
295
# - Right
296
# - Numeric identifier such as `5`
297
#
298
# All available `mods` and `action` values are documented in the key binding
299
# section.
300
mouse_bindings:
301
- { mouse: Middle, action: PasteSelection }
302
303
mouse:
304
# Click settings
305
#
306
# The `double_click` and `triple_click` settings control the time
307
# alacritty should wait for accepting multiple clicks as one double
308
# or triple click.
309
double_click: { threshold: 300 }
310
triple_click: { threshold: 300 }
311
312
# If this is `true`, the cursor is temporarily hidden when typing.
313
hide_when_typing: false
314
315
#url:
316
# URL launcher
317
#
318
# This program is executed when clicking on a text which is recognized as a URL.
319
# The URL is always added to the command as the last parameter.
320
#
321
# When set to `None`, URL launching will be disabled completely.
322
#
323
# Default:
324
# - (macOS) open
325
# - (Linux) xdg-open
326
# - (Windows) explorer
327
#launcher:
328
# program: xdg-open
329
# args: []
330
331
# URL modifiers
332
#
333
# These are the modifiers that need to be held down for opening URLs when clicking
334
# on them. The available modifiers are documented in the key binding section.
335
#modifiers: None
336
337
selection:
338
semantic_escape_chars: ",│`|:\"' ()[]{}<>"
339
340
# When set to `true`, selected text will be copied to the primary clipboard.
341
save_to_clipboard: false
342
343
cursor:
344
# Cursor style
345
#
346
# Values for `style`:
347
# - ▇ Block
348
# - _ Underline
349
# - | Beam
350
style: Block
351
352
# If this is `true`, the cursor will be rendered as a hollow box when the
353
# window is not focused.
354
unfocused_hollow: true
355
356
# Live config reload (changes require restart)
357
live_config_reload: true
358
359
# Shell
360
#
361
# You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`.
362
# Entries in `shell.args` are passed unmodified as arguments to the shell.
363
#
364
# Default:
365
# - (macOS) /bin/bash --login
366
# - (Linux) user login shell
367
# - (Windows) powershell
368
#shell:
369
# program: /bin/bash
370
# args:
371
# - --login
372
373
# Startup directory
374
#
375
# Directory the shell is started in. If this is unset, or `None`, the working
376
# directory of the parent process will be used.
377
working_directory: None
378
379
# Windows 10 ConPTY backend (Windows only)
380
#
381
# This will enable better color support and may resolve other issues,
382
# however this API and its implementation is still young and so is
383
# disabled by default, as stability may not be as good as the winpty
384
# backend.
385
#
386
# Alacritty will fall back to the WinPTY automatically if the ConPTY
387
# backend cannot be initialized.
388
enable_experimental_conpty_backend: false
389
390
# Send ESC (\x1b) before characters when alt is pressed.
391
alt_send_esc: true
392
393
debug:
394
# Display the time it takes to redraw each frame.
395
render_timer: false
396
397
# Keep the log file after quitting Alacritty.
398
persistent_logging: false
399
400
# Log level
401
#
402
# Values for `log_level`:
403
# - None
404
# - Error
405
# - Warn
406
# - Info
407
# - Debug
408
# - Trace
409
log_level: Warn
410
411
# Print all received window events.
412
print_events: false
413
414
# Record all characters and escape sequences as test data.
415
ref_test: false
416
417
# Key bindings
418
#
419
# Key bindings are specified as a list of objects. Each binding will specify a
420
# key and modifiers required to trigger it, terminal modes where the binding is
421
# applicable, and what should be done when the key binding fires. It can either
422
# send a byte sequence to the running application (`chars`), execute a
423
# predefined action (`action`) or fork and execute a specified command plus
424
# arguments (`command`).
425
#
426
# Bindings are always filled by default, but will be replaced when a new binding
427
# with the same triggers is defined. To unset a default binding, it can be
428
# mapped to the `None` action.
429
#
430
# Example:
431
# `- { key: V, mods: Control|Shift, action: Paste }`
432
#
433
# Available fields:
434
# - key
435
# - mods (optional)
436
# - chars | action | command (exactly one required)
437
# - mode (optional)
438
#
439
# Values for `key`:
440
# - `A` -> `Z`
441
# - `F1` -> `F12`
442
# - `Key1` -> `Key0`
443
#
444
# A full list with available key codes can be found here:
445
# https://docs.rs/glutin/*/glutin/enum.VirtualKeyCode.html#variants
446
#
447
# Instead of using the name of the keys, the `key` field also supports using
448
# the scancode of the desired key. Scancodes have to be specified as a
449
# decimal number.
450
# This command will allow you to display the hex scancodes for certain keys:
451
# `showkey --scancodes`
452
#
453
# Values for `mods`:
454
# - Command
455
# - Control
456
# - Option
457
# - Super
458
# - Shift
459
# - Alt
460
#
461
# Multiple `mods` can be combined using `|` like this: `mods: Control|Shift`.
462
# Whitespace and capitalization is relevant and must match the example.
463
#
464
# Values for `chars`:
465
# The `chars` field writes the specified string to the terminal. This makes
466
# it possible to pass escape sequences.
467
# To find escape codes for bindings like `PageUp` ("\x1b[5~"), you can run
468
# the command `showkey -a` outside of tmux.
469
# Note that applications use terminfo to map escape sequences back to
470
# keys. It is therefore required to update the terminfo when
471
# changing an escape sequence.
472
#
473
# Values for `action`:
474
# - Paste
475
# - PasteSelection
476
# - Copy
477
# - IncreaseFontSize
478
# - DecreaseFontSize
479
# - ResetFontSize
480
# - ScrollPageUp
481
# - ScrollPageDown
482
# - ScrollLineUp
483
# - ScrollLineDown
484
# - ScrollToTop
485
# - ScrollToBottom
486
# - ClearHistory
487
# - Hide
488
# - Quit
489
# - ClearLogNotice
490
# - SpawnNewInstance
491
# - ToggleFullscreen
492
# - None
493
#
494
# Values for `action` (macOS only):
495
# - ToggleSimpleFullscreen: Enters fullscreen without occupying another space
496
#
497
# Values for `command`:
498
# The `command` field must be a map containing a `program` string and
499
# an `args` array of command line parameter strings.
500
#
501
# Example:
502
# `command: { program: "alacritty", args: ["-e", "vttest"] }`
503
#
504
# Values for `mode`:
505
# - ~AppCursor
506
# - AppCursor
507
# - ~AppKeypad
508
# - AppKeypad
509
key_bindings:
510
# (Windows/Linux only)
511
#- { key: V, mods: Control|Shift, action: Paste }
512
#- { key: C, mods: Control|Shift, action: Copy }
513
#- { key: Insert, mods: Shift, action: PasteSelection }
514
- { key: Key0, mods: Control, action: ResetFontSize }
515
- { key: Equals, mods: Control, action: IncreaseFontSize }
516
#- { key: Add, mods: Control, action: IncreaseFontSize }
517
#- { key: Subtract, mods: Control, action: DecreaseFontSize }
518
- { key: Minus, mods: Control, action: DecreaseFontSize }
519
#- { key: Return, mods: Alt, action: ToggleFullscreen }
520
521
# (macOS only)
522
#- { key: Key0, mods: Command, action: ResetFontSize }
523
#- { key: Equals, mods: Command, action: IncreaseFontSize }
524
#- { key: Add, mods: Command, action: IncreaseFontSize }
525
#- { key: Minus, mods: Command, action: DecreaseFontSize }
526
#- { key: K, mods: Command, action: ClearHistory }
527
#- { key: K, mods: Command, chars: "\x0c" }
528
#- { key: V, mods: Command, action: Paste }
529
#- { key: C, mods: Command, action: Copy }
530
#- { key: H, mods: Command, action: Hide }
531
#- { key: Q, mods: Command, action: Quit }
532
#- { key: W, mods: Command, action: Quit }
533
#- { key: F, mods: Command|Control, action: ToggleFullscreen }
534
535
#- { key: Paste, action: Paste }
536
#- { key: Copy, action: Copy }
537
#- { key: L, mods: Control, action: ClearLogNotice }
538
#- { key: L, mods: Control, chars: "\x0c" }
539
#- { key: Home, mods: Alt, chars: "\x1b[1;3H" }
540
#- { key: Home, chars: "\x1bOH", mode: AppCursor }
541
#- { key: Home, chars: "\x1b[H", mode: ~AppCursor }
542
#- { key: End, mods: Alt, chars: "\x1b[1;3F" }
543
#- { key: End, chars: "\x1bOF", mode: AppCursor }
544
#- { key: End, chars: "\x1b[F", mode: ~AppCursor }
545
#- { key: PageUp, mods: Shift, action: ScrollPageUp, mode: ~Alt }
546
#- { key: PageUp, mods: Shift, chars: "\x1b[5;2~", mode: Alt }
547
#- { key: PageUp, mods: Control, chars: "\x1b[5;5~" }
548
#- { key: PageUp, mods: Alt, chars: "\x1b[5;3~" }
549
#- { key: PageUp, chars: "\x1b[5~" }
550
#- { key: PageDown, mods: Shift, action: ScrollPageDown, mode: ~Alt }
551
#- { key: PageDown, mods: Shift, chars: "\x1b[6;2~", mode: Alt }
552
#- { key: PageDown, mods: Control, chars: "\x1b[6;5~" }
553
#- { key: PageDown, mods: Alt, chars: "\x1b[6;3~" }
554
#- { key: PageDown, chars: "\x1b[6~" }
555
#- { key: Tab, mods: Shift, chars: "\x1b[Z" }
556
#- { key: Back, chars: "\x7f" }
557
#- { key: Back, mods: Alt, chars: "\x1b\x7f" }
558
#- { key: Insert, chars: "\x1b[2~" }
559
#- { key: Delete, chars: "\x1b[3~" }
560
#- { key: Left, mods: Shift, chars: "\x1b[1;2D" }
561
#- { key: Left, mods: Control, chars: "\x1b[1;5D" }
562
#- { key: Left, mods: Alt, chars: "\x1b[1;3D" }
563
#- { key: Left, chars: "\x1b[D", mode: ~AppCursor }
564
#- { key: Left, chars: "\x1bOD", mode: AppCursor }
565
#- { key: Right, mods: Shift, chars: "\x1b[1;2C" }
566
#- { key: Right, mods: Control, chars: "\x1b[1;5C" }
567
#- { key: Right, mods: Alt, chars: "\x1b[1;3C" }
568
#- { key: Right, chars: "\x1b[C", mode: ~AppCursor }
569
#- { key: Right, chars: "\x1bOC", mode: AppCursor }
570
#- { key: Up, mods: Shift, chars: "\x1b[1;2A" }
571
#- { key: Up, mods: Control, chars: "\x1b[1;5A" }
572
#- { key: Up, mods: Alt, chars: "\x1b[1;3A" }
573
#- { key: Up, chars: "\x1b[A", mode: ~AppCursor }
574
#- { key: Up, chars: "\x1bOA", mode: AppCursor }
575
#- { key: Down, mods: Shift, chars: "\x1b[1;2B" }
576
#- { key: Down, mods: Control, chars: "\x1b[1;5B" }
577
#- { key: Down, mods: Alt, chars: "\x1b[1;3B" }
578
#- { key: Down, chars: "\x1b[B", mode: ~AppCursor }
579
#- { key: Down, chars: "\x1bOB", mode: AppCursor }
580
#- { key: F1, chars: "\x1bOP" }
581
#- { key: F2, chars: "\x1bOQ" }
582
#- { key: F3, chars: "\x1bOR" }
583
#- { key: F4, chars: "\x1bOS" }
584
#- { key: F5, chars: "\x1b[15~" }
585
#- { key: F6, chars: "\x1b[17~" }
586
#- { key: F7, chars: "\x1b[18~" }
587
#- { key: F8, chars: "\x1b[19~" }
588
#- { key: F9, chars: "\x1b[20~" }
589
#- { key: F10, chars: "\x1b[21~" }
590
#- { key: F11, chars: "\x1b[23~" }
591
#- { key: F12, chars: "\x1b[24~" }
592
#- { key: F1, mods: Shift, chars: "\x1b[1;2P" }
593
#- { key: F2, mods: Shift, chars: "\x1b[1;2Q" }
594
#- { key: F3, mods: Shift, chars: "\x1b[1;2R" }
595
#- { key: F4, mods: Shift, chars: "\x1b[1;2S" }
596
#- { key: F5, mods: Shift, chars: "\x1b[15;2~" }
597
#- { key: F6, mods: Shift, chars: "\x1b[17;2~" }
598
#- { key: F7, mods: Shift, chars: "\x1b[18;2~" }
599
#- { key: F8, mods: Shift, chars: "\x1b[19;2~" }
600
#- { key: F9, mods: Shift, chars: "\x1b[20;2~" }
601
#- { key: F10, mods: Shift, chars: "\x1b[21;2~" }
602
#- { key: F11, mods: Shift, chars: "\x1b[23;2~" }
603
#- { key: F12, mods: Shift, chars: "\x1b[24;2~" }
604
#- { key: F1, mods: Control, chars: "\x1b[1;5P" }
605
#- { key: F2, mods: Control, chars: "\x1b[1;5Q" }
606
#- { key: F3, mods: Control, chars: "\x1b[1;5R" }
607
#- { key: F4, mods: Control, chars: "\x1b[1;5S" }
608
#- { key: F5, mods: Control, chars: "\x1b[15;5~" }
609
#- { key: F6, mods: Control, chars: "\x1b[17;5~" }
610
#- { key: F7, mods: Control, chars: "\x1b[18;5~" }
611
#- { key: F8, mods: Control, chars: "\x1b[19;5~" }
612
#- { key: F9, mods: Control, chars: "\x1b[20;5~" }
613
#- { key: F10, mods: Control, chars: "\x1b[21;5~" }
614
#- { key: F11, mods: Control, chars: "\x1b[23;5~" }
615
#- { key: F12, mods: Control, chars: "\x1b[24;5~" }
616
#- { key: F1, mods: Alt, chars: "\x1b[1;6P" }
617
#- { key: F2, mods: Alt, chars: "\x1b[1;6Q" }
618
#- { key: F3, mods: Alt, chars: "\x1b[1;6R" }
619
#- { key: F4, mods: Alt, chars: "\x1b[1;6S" }
620
#- { key: F5, mods: Alt, chars: "\x1b[15;6~" }
621
#- { key: F6, mods: Alt, chars: "\x1b[17;6~" }
622
#- { key: F7, mods: Alt, chars: "\x1b[18;6~" }
623
#- { key: F8, mods: Alt, chars: "\x1b[19;6~" }
624
#- { key: F9, mods: Alt, chars: "\x1b[20;6~" }
625
#- { key: F10, mods: Alt, chars: "\x1b[21;6~" }
626
#- { key: F11, mods: Alt, chars: "\x1b[23;6~" }
627
#- { key: F12, mods: Alt, chars: "\x1b[24;6~" }
628
#- { key: F1, mods: Super, chars: "\x1b[1;3P" }
629
#- { key: F2, mods: Super, chars: "\x1b[1;3Q" }
630
#- { key: F3, mods: Super, chars: "\x1b[1;3R" }
631
#- { key: F4, mods: Super, chars: "\x1b[1;3S" }
632
#- { key: F5, mods: Super, chars: "\x1b[15;3~" }
633
#- { key: F6, mods: Super, chars: "\x1b[17;3~" }
634
#- { key: F7, mods: Super, chars: "\x1b[18;3~" }
635
#- { key: F8, mods: Super, chars: "\x1b[19;3~" }
636
#- { key: F9, mods: Super, chars: "\x1b[20;3~" }
637
#- { key: F10, mods: Super, chars: "\x1b[21;3~" }
638
#- { key: F11, mods: Super, chars: "\x1b[23;3~" }
639
#- { key: F12, mods: Super, chars: "\x1b[24;3~" }
640
#- { key: NumpadEnter, chars: "\n" }
641
#- { key: B, mods: Alt, chars: "\x1bb" }
642
#- { key: F, mods: Alt, chars: "\x1bf" }
643
644