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