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.

488 lines
18 KiB

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