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.

490 lines
18 KiB

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