You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

593 lines
22 KiB

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