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.

595 lines
22 KiB

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