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.

508 lines
18 KiB

5 years ago
5 years ago
  1. #env:
  2. # TERM variable
  3. #
  4. # This value is used to set the `$TERM` environment variable for
  5. # each instance of Alacritty. If it is not present, alacritty will
  6. # check the local terminfo database and use `alacritty` if it is
  7. # available, otherwise `xterm-256color` is used.
  8. #TERM: xterm-256color
  9. window:
  10. # If both are `0`, this setting is ignored.
  11. dimensions:
  12. columns: 0
  13. lines: 0
  14. padding:
  15. x: 0
  16. y: 0
  17. # Spread additional padding evenly around the terminal content.
  18. dynamic_padding: false
  19. # Window decorations
  20. # - full: Borders and title bar
  21. # - none: Neither borders nor title bar
  22. decorations: full
  23. # Values for `startup_mode`:
  24. # - Windowed
  25. # - Maximized
  26. # - Fullscreen
  27. startup_mode: Windowed
  28. # Window title
  29. #title: Alacritty
  30. # Window class (Linux only):
  31. class: Alacritty
  32. scrolling:
  33. # Specifying '0' will disable scrolling.
  34. history: 10000
  35. # Number of lines the viewport will move for every line scrolled when
  36. # scrollback is enabled (history > 0).
  37. multiplier: 3
  38. # The `faux_multiplier` setting controls the number of lines the terminal
  39. # should scroll when the alternate screen buffer is active. This is used
  40. # to allow mouse scrolling for applications like `man`.
  41. #
  42. # Specifying `0` will disable faux scrolling.
  43. # DEPRECATED
  44. # faux_multiplier: 3
  45. # Scroll to the bottom when new text is written to the terminal.
  46. auto_scroll: false
  47. tabspaces: 4
  48. # Font configuration (changes require restart)
  49. font:
  50. # Normal (roman) font face
  51. #normal:
  52. # Font family
  53. # Default:
  54. # - (Linux) monospace
  55. #family: monospace
  56. # The `style` can be specified to pick a specific face.
  57. #style: Regular
  58. # Bold font face
  59. #bold:
  60. # Font family
  61. # If the bold family is not specified, it will fall back to the
  62. # value specified for the normal font.
  63. #family: monospace
  64. # The `style` can be specified to pick a specific face.
  65. #style: Bold
  66. # Italic font face
  67. #italic:
  68. # Font family
  69. # If the italic family is not specified, it will fall back to the
  70. # value specified for the normal font.
  71. #family: monospace
  72. # The `style` can be specified to pick a specific face.
  73. #style: Italic
  74. # Point size
  75. size: 11.0
  76. # Offset is the extra space around each character. `offset.y` can be thought of
  77. # as modifying the line spacing, and `offset.x` as modifying the letter spacing.
  78. offset:
  79. x: 0
  80. y: 0
  81. # Glyph offset determines the locations of the glyphs within their cells with
  82. # the default being at the bottom. Increasing `x` moves the glyph to the right,
  83. # increasing `y` moves the glyph upwards.
  84. glyph_offset:
  85. x: 0
  86. y: 0
  87. # Thin stroke font rendering (macOS only)
  88. use_thin_strokes: false
  89. # If `true`, bold text is drawn using the bright color variants.
  90. draw_bold_text_with_bright_colors: true
  91. schemes:
  92. material: &material
  93. # Default colors
  94. primary:
  95. background: '0x263238'
  96. foreground: '0xeceff1'
  97. # Normal colors
  98. normal:
  99. black: '0x263238'
  100. red: '0xff9800'
  101. green: '0x8bc34a'
  102. yellow: '0xffc107'
  103. blue: '0x03a9f4'
  104. magenta: '0xe91e63'
  105. cyan: '0x009688'
  106. white: '0xcfd8dc'
  107. # Bright colors
  108. bright:
  109. black: '0x37474f'
  110. red: '0xffa74d'
  111. green: '0x9ccc65'
  112. yellow: '0xffa000'
  113. blue: '0x81d4fa'
  114. magenta: '0xad1457'
  115. cyan: '0x26a69a'
  116. white: '0xeceff1'
  117. plastic: &plastic
  118. primary:
  119. background: '0x21252b'
  120. foreground: '0xa9b2c3'
  121. #dim_foreground: '0x9a9a9a'
  122. #bright_foreground: '0xffffff'
  123. #cursor:
  124. #text: '0x000000'
  125. #cursor: '0xffffff'
  126. #selection:
  127. #text: '0xeaeaea'
  128. #background: '0x404040'
  129. normal:
  130. black: '0x000000'
  131. red: '0xe06c75'
  132. green: '0xb9ca4a'
  133. yellow: '0xe6c547'
  134. blue: '0x61afef'
  135. magenta: '0xc397d8'
  136. cyan: '0x70c0ba'
  137. white: '0xeaeaea'
  138. bright:
  139. black: '0x666666'
  140. red: '0xff3334'
  141. green: '0x9ec400'
  142. yellow: '0xe7c547'
  143. blue: '0x7aa6da'
  144. magenta: '0xb77ee0'
  145. cyan: '0x54ced6'
  146. white: '0xffffff'
  147. #dim:
  148. #black: '0x000000'
  149. #red: '0x8c3336'
  150. #green: '0x7a8530'
  151. #yellow: '0x97822e'
  152. #blue: '0x506d8f'
  153. #magenta: '0x80638e'
  154. #cyan: '0x497e7a'
  155. #white: '0x9a9a9a'
  156. #Example:
  157. # `- { index: 16, color: '0xff00ff' }`
  158. #
  159. indexed_colors: []
  160. colors: *plastic
  161. # Visual Bell
  162. # Values for `animation`:
  163. # - Ease
  164. # - EaseOut
  165. # - EaseOutSine
  166. # - EaseOutQuad
  167. # - EaseOutCubic
  168. # - EaseOutQuart
  169. # - EaseOutQuint
  170. # - EaseOutExpo
  171. # - EaseOutCirc
  172. # - Linear
  173. #
  174. # Specifying a `duration` of `0` will disable the visual bell.
  175. visual_bell:
  176. animation: EaseOutExpo
  177. duration: 0
  178. color: '0xffffff'
  179. background_opacity: 1.0
  180. # Mouse bindings
  181. #
  182. # Available fields:
  183. # - mouse
  184. # - action
  185. # - mods (optional)
  186. #
  187. # Values for `mouse`:
  188. # - Middle
  189. # - Left
  190. # - Right
  191. # - Numeric identifier such as `5`
  192. #
  193. # All available `mods` and `action` values are documented in the key binding
  194. # section.
  195. mouse_bindings:
  196. - { mouse: Middle, action: PasteSelection }
  197. mouse:
  198. double_click: { threshold: 300 }
  199. triple_click: { threshold: 300 }
  200. hide_when_typing: false
  201. url:
  202. modifiers: None
  203. selection:
  204. semantic_escape_chars: ",│`|:\"' ()[]{}<>"
  205. # When set to `true`, selected text will be copied to the primary clipboard.
  206. save_to_clipboard: false
  207. # Allow terminal applications to change Alacritty's window title.
  208. dynamic_title: true
  209. cursor:
  210. # Values for `style`:
  211. # - ▇ Block
  212. # - _ Underline
  213. # - | Beam
  214. style: Block
  215. # If this is `true`, the cursor will be rendered as a hollow box when the
  216. # window is not focused.
  217. unfocused_hollow: true
  218. live_config_reload: true
  219. # Shell
  220. # - (Linux) user login shell
  221. #shell:
  222. # program: /bin/bash
  223. # args:
  224. # - --login
  225. # Directory the shell is started in. If this is unset, or `None`, the working
  226. # directory of the parent process will be used.
  227. working_directory: None
  228. # Send ESC (\x1b) before characters when alt is pressed.
  229. alt_send_esc: true
  230. debug:
  231. # Display the time it takes to redraw each frame.
  232. render_timer: false
  233. # Keep the log file after quitting Alacritty.
  234. persistent_logging: false
  235. # Values for `log_level`:
  236. # - None
  237. # - Error
  238. # - Warn
  239. # - Info
  240. # - Debug
  241. # - Trace
  242. log_level: Warn
  243. # Print all received window events.
  244. print_events: false
  245. # Record all characters and escape sequences as test data.
  246. ref_test: false
  247. # Key bindings
  248. #
  249. # Key bindings are specified as a list of objects. Each binding will specify a
  250. # key and modifiers required to trigger it, terminal modes where the binding is
  251. # applicable, and what should be done when the key binding fires. It can either
  252. # send a byte sequence to the running application (`chars`), execute a
  253. # predefined action (`action`) or fork and execute a specified command plus
  254. # arguments (`command`).
  255. #
  256. # Bindings are always filled by default, but will be replaced when a new binding
  257. # with the same triggers is defined. To unset a default binding, it can be
  258. # mapped to the `None` action.
  259. #
  260. # Example:
  261. # `- { key: V, mods: Control|Shift, action: Paste }`
  262. #
  263. # Available fields:
  264. # - key
  265. # - mods (optional)
  266. # - chars | action | command (exactly one required)
  267. # - mode (optional)
  268. #
  269. # Values for `key`:
  270. # - `A` -> `Z`
  271. # - `F1` -> `F12`
  272. # - `Key1` -> `Key0`
  273. #
  274. # A full list with available key codes can be found here:
  275. # https://docs.rs/glutin/*/glutin/enum.VirtualKeyCode.html#variants
  276. #
  277. # Instead of using the name of the keys, the `key` field also supports using
  278. # the scancode of the desired key. Scancodes have to be specified as a
  279. # decimal number.
  280. # This command will allow you to display the hex scancodes for certain keys:
  281. # `showkey --scancodes`
  282. #
  283. # Values for `mods`:
  284. # - Command
  285. # - Control
  286. # - Option
  287. # - Super
  288. # - Shift
  289. # - Alt
  290. #
  291. # Multiple `mods` can be combined using `|` like this: `mods: Control|Shift`.
  292. # Whitespace and capitalization is relevant and must match the example.
  293. #
  294. # Values for `chars`:
  295. # The `chars` field writes the specified string to the terminal. This makes
  296. # it possible to pass escape sequences.
  297. # To find escape codes for bindings like `PageUp` ("\x1b[5~"), you can run
  298. # the command `showkey -a` outside of tmux.
  299. # Note that applications use terminfo to map escape sequences back to
  300. # keys. It is therefore required to update the terminfo when
  301. # changing an escape sequence.
  302. #
  303. # Values for `action`:
  304. # - Paste
  305. # - PasteSelection
  306. # - Copy
  307. # - IncreaseFontSize
  308. # - DecreaseFontSize
  309. # - ResetFontSize
  310. # - ScrollPageUp
  311. # - ScrollPageDown
  312. # - ScrollLineUp
  313. # - ScrollLineDown
  314. # - ScrollToTop
  315. # - ScrollToBottom
  316. # - ClearHistory
  317. # - Hide
  318. # - Quit
  319. # - ClearLogNotice
  320. # - SpawnNewInstance
  321. # - ToggleFullscreen
  322. # - None
  323. #
  324. # Values for `command`:
  325. # The `command` field must be a map containing a `program` string and
  326. # an `args` array of command line parameter strings.
  327. #
  328. # Example:
  329. # `command: { program: "alacritty", args: ["-e", "vttest"] }`
  330. #
  331. # Values for `mode`:
  332. # - ~AppCursor
  333. # - AppCursor
  334. # - ~AppKeypad
  335. # - AppKeypad
  336. key_bindings:
  337. - { key: V, mods: Control|Shift, action: Paste }
  338. - { key: C, mods: Control|Shift, action: Copy }
  339. #- { key: Insert, mods: Shift, action: PasteSelection }
  340. #- { key: Key0, mods: Control, action: ResetFontSize }
  341. #- { key: Equals, mods: Control, action: IncreaseFontSize }
  342. #- { key: Add, mods: Control, action: IncreaseFontSize }
  343. #- { key: Subtract, mods: Control, action: DecreaseFontSize }
  344. #- { key: Minus, mods: Control, action: DecreaseFontSize }
  345. #- { key: Return, mods: Alt, action: ToggleFullscreen }
  346. - { key: Paste, action: Paste }
  347. - { key: Copy, action: Copy }
  348. - { key: L, mods: Control, action: ClearLogNotice }
  349. - { key: L, mods: Control, chars: "\x0c" }
  350. - { key: Home, mods: Alt, chars: "\x1b[1;3H" }
  351. - { key: Home, chars: "\x1bOH", mode: AppCursor }
  352. - { key: Home, chars: "\x1b[H", mode: ~AppCursor }
  353. - { key: End, mods: Alt, chars: "\x1b[1;3F" }
  354. - { key: End, chars: "\x1bOF", mode: AppCursor }
  355. - { key: End, chars: "\x1b[F", mode: ~AppCursor }
  356. - { key: PageUp, mods: Shift, action: ScrollPageUp, mode: ~Alt }
  357. - { key: PageUp, mods: Shift, chars: "\x1b[5;2~", mode: Alt }
  358. - { key: PageUp, mods: Control, chars: "\x1b[5;5~" }
  359. - { key: PageUp, mods: Alt, chars: "\x1b[5;3~" }
  360. - { key: PageUp, chars: "\x1b[5~" }
  361. - { key: PageDown, mods: Shift, action: ScrollPageDown, mode: ~Alt }
  362. - { key: PageDown, mods: Shift, chars: "\x1b[6;2~", mode: Alt }
  363. - { key: PageDown, mods: Control, chars: "\x1b[6;5~" }
  364. - { key: PageDown, mods: Alt, chars: "\x1b[6;3~" }
  365. - { key: PageDown, chars: "\x1b[6~" }
  366. - { key: Tab, mods: Shift, chars: "\x1b[Z" }
  367. - { key: Back, chars: "\x7f" }
  368. - { key: Back, mods: Alt, chars: "\x1b\x7f" }
  369. - { key: Insert, chars: "\x1b[2~" }
  370. - { key: Delete, chars: "\x1b[3~" }
  371. - { key: Left, mods: Shift, chars: "\x1b[1;2D" }
  372. - { key: Left, mods: Control, chars: "\x1b[1;5D" }
  373. - { key: Left, mods: Alt, chars: "\x1b[1;3D" }
  374. - { key: Left, chars: "\x1b[D", mode: ~AppCursor }
  375. - { key: Left, chars: "\x1bOD", mode: AppCursor }
  376. - { key: Right, mods: Shift, chars: "\x1b[1;2C" }
  377. - { key: Right, mods: Control, chars: "\x1b[1;5C" }
  378. - { key: Right, mods: Alt, chars: "\x1b[1;3C" }
  379. - { key: Right, chars: "\x1b[C", mode: ~AppCursor }
  380. - { key: Right, chars: "\x1bOC", mode: AppCursor }
  381. - { key: Up, mods: Shift, chars: "\x1b[1;2A" }
  382. - { key: Up, mods: Control, chars: "\x1b[1;5A" }
  383. - { key: Up, mods: Alt, chars: "\x1b[1;3A" }
  384. - { key: Up, chars: "\x1b[A", mode: ~AppCursor }
  385. - { key: Up, chars: "\x1bOA", mode: AppCursor }
  386. - { key: Down, mods: Shift, chars: "\x1b[1;2B" }
  387. - { key: Down, mods: Control, chars: "\x1b[1;5B" }
  388. - { key: Down, mods: Alt, chars: "\x1b[1;3B" }
  389. - { key: Down, chars: "\x1b[B", mode: ~AppCursor }
  390. - { key: Down, chars: "\x1bOB", mode: AppCursor }
  391. - { key: F1, chars: "\x1bOP" }
  392. - { key: F2, chars: "\x1bOQ" }
  393. - { key: F3, chars: "\x1bOR" }
  394. - { key: F4, chars: "\x1bOS" }
  395. - { key: F5, chars: "\x1b[15~" }
  396. - { key: F6, chars: "\x1b[17~" }
  397. - { key: F7, chars: "\x1b[18~" }
  398. - { key: F8, chars: "\x1b[19~" }
  399. - { key: F9, chars: "\x1b[20~" }
  400. - { key: F10, chars: "\x1b[21~" }
  401. - { key: F11, chars: "\x1b[23~" }
  402. - { key: F12, chars: "\x1b[24~" }
  403. - { key: F1, mods: Shift, chars: "\x1b[1;2P" }
  404. - { key: F2, mods: Shift, chars: "\x1b[1;2Q" }
  405. - { key: F3, mods: Shift, chars: "\x1b[1;2R" }
  406. - { key: F4, mods: Shift, chars: "\x1b[1;2S" }
  407. - { key: F5, mods: Shift, chars: "\x1b[15;2~" }
  408. - { key: F6, mods: Shift, chars: "\x1b[17;2~" }
  409. - { key: F7, mods: Shift, chars: "\x1b[18;2~" }
  410. - { key: F8, mods: Shift, chars: "\x1b[19;2~" }
  411. - { key: F9, mods: Shift, chars: "\x1b[20;2~" }
  412. - { key: F10, mods: Shift, chars: "\x1b[21;2~" }
  413. - { key: F11, mods: Shift, chars: "\x1b[23;2~" }
  414. - { key: F12, mods: Shift, chars: "\x1b[24;2~" }
  415. - { key: F1, mods: Control, chars: "\x1b[1;5P" }
  416. - { key: F2, mods: Control, chars: "\x1b[1;5Q" }
  417. - { key: F3, mods: Control, chars: "\x1b[1;5R" }
  418. - { key: F4, mods: Control, chars: "\x1b[1;5S" }
  419. - { key: F5, mods: Control, chars: "\x1b[15;5~" }
  420. - { key: F6, mods: Control, chars: "\x1b[17;5~" }
  421. - { key: F7, mods: Control, chars: "\x1b[18;5~" }
  422. - { key: F8, mods: Control, chars: "\x1b[19;5~" }
  423. - { key: F9, mods: Control, chars: "\x1b[20;5~" }
  424. - { key: F10, mods: Control, chars: "\x1b[21;5~" }
  425. - { key: F11, mods: Control, chars: "\x1b[23;5~" }
  426. - { key: F12, mods: Control, chars: "\x1b[24;5~" }
  427. - { key: F1, mods: Alt, chars: "\x1b[1;6P" }
  428. - { key: F2, mods: Alt, chars: "\x1b[1;6Q" }
  429. - { key: F3, mods: Alt, chars: "\x1b[1;6R" }
  430. - { key: F4, mods: Alt, chars: "\x1b[1;6S" }
  431. - { key: F5, mods: Alt, chars: "\x1b[15;6~" }
  432. - { key: F6, mods: Alt, chars: "\x1b[17;6~" }
  433. - { key: F7, mods: Alt, chars: "\x1b[18;6~" }
  434. - { key: F8, mods: Alt, chars: "\x1b[19;6~" }
  435. - { key: F9, mods: Alt, chars: "\x1b[20;6~" }
  436. - { key: F10, mods: Alt, chars: "\x1b[21;6~" }
  437. - { key: F11, mods: Alt, chars: "\x1b[23;6~" }
  438. - { key: F12, mods: Alt, chars: "\x1b[24;6~" }
  439. - { key: F1, mods: Super, chars: "\x1b[1;3P" }
  440. - { key: F2, mods: Super, chars: "\x1b[1;3Q" }
  441. - { key: F3, mods: Super, chars: "\x1b[1;3R" }
  442. - { key: F4, mods: Super, chars: "\x1b[1;3S" }
  443. - { key: F5, mods: Super, chars: "\x1b[15;3~" }
  444. - { key: F6, mods: Super, chars: "\x1b[17;3~" }
  445. - { key: F7, mods: Super, chars: "\x1b[18;3~" }
  446. - { key: F8, mods: Super, chars: "\x1b[19;3~" }
  447. - { key: F9, mods: Super, chars: "\x1b[20;3~" }
  448. - { key: F10, mods: Super, chars: "\x1b[21;3~" }
  449. - { key: F11, mods: Super, chars: "\x1b[23;3~" }
  450. - { key: F12, mods: Super, chars: "\x1b[24;3~" }
  451. - { key: NumpadEnter, chars: "\n" }