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.

487 lines
18 KiB

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