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.

507 lines
18 KiB

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