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.

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