alacritty.yml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. # Configuration for Alacritty, the GPU enhanced terminal emulator
  2. # Any items in the `env` entry below will be added as
  3. # environment variables. Some entries may override variables
  4. # set by alacritty it self.
  5. env:
  6. # TERM env customization.
  7. #
  8. # If this property is not set, alacritty will set it to xterm-256color.
  9. #
  10. # Note that some xterm terminfo databases don't declare support for italics.
  11. # You can verify this by checking for the presence of `smso` and `sitm` in
  12. # `infocmp xterm-256color`.
  13. TERM: xterm-256color-italic
  14. window:
  15. # Window dimensions in character columns and lines
  16. # (changes require restart)
  17. dimensions:
  18. columns: 88
  19. lines: 25
  20. # Adds this many blank pixels of padding around the window
  21. # Units are physical pixels; this is not DPI aware.
  22. # (change requires restart)
  23. padding:
  24. x: 2
  25. y: 2
  26. # Window decorations
  27. # Setting this to false will result in window without borders and title bar.
  28. decorations: true
  29. # Display tabs using this many cells (changes require restart)
  30. tabspaces: 8
  31. # When true, bold text is drawn using the bright variant of colors.
  32. draw_bold_text_with_bright_colors: true
  33. # Font configuration (changes require restart)
  34. font:
  35. # The normal (roman) font face to use.
  36. normal:
  37. family: "IBMPlexMono Nerd Font Mono"
  38. # Style can be specified to pick a specific face.
  39. style: Normal
  40. # The bold font face
  41. bold:
  42. family: "IBMPlexMono Nerd Font Mono"
  43. # Style can be specified to pick a specific face.
  44. style: Bold
  45. # The italic font face
  46. italic:
  47. family: "IBMPlexMono Nerd Font Mono"
  48. # Style can be specified to pick a specific face.
  49. style: "ExtraLight Italic"
  50. # Point size of the font
  51. size: 13.0
  52. # Offset is the extra space around each character. offset.y can be thought of
  53. # as modifying the linespacing, and offset.x as modifying the letter spacing.
  54. offset:
  55. x: 0
  56. y: 0
  57. # Glyph offset determines the locations of the glyphs within their cells with
  58. # the default being at the bottom. Increase the x offset to move the glyph to
  59. # the right, increase the y offset to move the glyph upward.
  60. glyph_offset:
  61. x: 0
  62. y: 0
  63. # OS X only: use thin stroke font rendering. Thin strokes are suitable
  64. # for retina displays, but for non-retina you probably want this set to
  65. # false.
  66. use_thin_strokes: true
  67. # Should display the render timer
  68. debug.render_timer: false
  69. # Use custom cursor colors. If true, display the cursor in the cursor.foreground
  70. # and cursor.background colors, otherwise invert the colors of the cursor.
  71. custom_cursor_colors: true
  72. # TODO: exp with One Dark color theme
  73. # https://github.com/alacritty/alacritty/wiki/Color-schemes#one
  74. # Colors (Tomorrow Night Bright)
  75. colors:
  76. # Default colors
  77. primary:
  78. background: '0x000000'
  79. foreground: '0xeaeaea'
  80. # Colors the cursor will use if `custom_cursor_colors` is true
  81. cursor:
  82. text: '0x000000'
  83. cursor: '0xE62CBA' # https://www.webpagefx.com/web-design/color-picker/
  84. # Normal colors
  85. normal:
  86. black: '0x000000'
  87. red: '0xd54e53'
  88. green: '0xb9ca4a'
  89. yellow: '0xe6c547'
  90. blue: '0x7aa6da'
  91. magenta: '0xc397d8'
  92. cyan: '0x70c0ba'
  93. white: '0xffffff'
  94. # Bright colors
  95. bright:
  96. black: '0x666666'
  97. red: '0xff3334'
  98. green: '0x9ec400'
  99. yellow: '0xe7c547'
  100. blue: '0x7aa6da'
  101. magenta: '0xb77ee0'
  102. cyan: '0x54ced6'
  103. white: '0xffffff'
  104. # Dim colors (Optional)
  105. dim:
  106. black: '0x333333'
  107. red: '0xf2777a'
  108. green: '0x99cc99'
  109. yellow: '0xffcc66'
  110. blue: '0x6699cc'
  111. magenta: '0xcc99cc'
  112. cyan: '0x66cccc'
  113. white: '0xdddddd'
  114. # Visual Bell
  115. #
  116. # Any time the BEL code is received, Alacritty "rings" the visual bell. Once
  117. # rung, the terminal background will be set to white and transition back to the
  118. # default background color. You can control the rate of this transition by
  119. # setting the `duration` property (represented in milliseconds). You can also
  120. # configure the transition function by setting the `animation` property.
  121. #
  122. # Possible values for `animation`
  123. # `Ease`
  124. # `EaseOut`
  125. # `EaseOutSine`
  126. # `EaseOutQuad`
  127. # `EaseOutCubic`
  128. # `EaseOutQuart`
  129. # `EaseOutQuint`
  130. # `EaseOutExpo`
  131. # `EaseOutCirc`
  132. # `Linear`
  133. #
  134. # To completely disable the visual bell, set its duration to 0.
  135. #
  136. visual_bell:
  137. animation: EaseOutExpo
  138. duration: 0
  139. # Background opacity
  140. background_opacity: 1.0
  141. # Mouse bindings
  142. #
  143. # Currently doesn't support modifiers. Both the `mouse` and `action` fields must
  144. # be specified.
  145. #
  146. # Values for `mouse`:
  147. # - Middle
  148. # - Left
  149. # - Right
  150. # - Numeric identifier such as `5`
  151. #
  152. # Values for `action`:
  153. # - Paste
  154. # - PasteSelection
  155. # - Copy (TODO)
  156. mouse_bindings:
  157. - { mouse: Middle, action: PasteSelection }
  158. mouse:
  159. # Click settings
  160. #
  161. # The `double_click` and `triple_click` settings control the time
  162. # alacritty should wait for accepting multiple clicks as one double
  163. # or triple click.
  164. double_click: { threshold: 300 }
  165. triple_click: { threshold: 300 }
  166. # Faux Scrollback
  167. #
  168. # The `faux_scrollback_lines` setting controls the number
  169. # of lines the terminal should scroll when the alternate
  170. # screen buffer is active. This is used to allow mouse
  171. # scrolling for applications like `man`.
  172. #
  173. # To disable this completely, set `faux_scrollback_lines` to 0.
  174. # DEPRECATED: faux_scrollback_lines: 1
  175. faux_scrolling_lines: 1
  176. selection:
  177. semantic_escape_chars: ",│`|:\"' ()[]{}<>"
  178. dynamic_title: true
  179. hide_cursor_when_typing: false
  180. # Style of the cursor
  181. #
  182. # Values for 'cursor_style':
  183. # - Block
  184. # - Underline
  185. # - Beam
  186. cursor_style: Block
  187. # Live config reload (changes require restart)
  188. live_config_reload: true
  189. # Shell
  190. #
  191. # You can set shell.program to the path of your favorite shell, e.g. /bin/fish.
  192. # Entries in shell.args are passed unmodified as arguments to the shell.
  193. #
  194. # shell:
  195. # program: /bin/bash
  196. # args:
  197. # - --login
  198. # Key bindings
  199. #
  200. # Each binding is defined as an object with some properties. Most of the
  201. # properties are optional. All of the alphabetical keys should have a letter for
  202. # the `key` value such as `V`. Function keys are probably what you would expect
  203. # as well (F1, F2, ..). The number keys above the main keyboard are encoded as
  204. # `Key1`, `Key2`, etc. Keys on the number pad are encoded `Number1`, `Number2`,
  205. # etc. These all match the glutin::VirtualKeyCode variants.
  206. #
  207. # A list with all available `key` names can be found here:
  208. # https://docs.rs/glutin/*/glutin/enum.VirtualKeyCode.html#variants
  209. #
  210. # Possible values for `mods`
  211. # `Command`, `Super` refer to the super/command/windows key
  212. # `Control` for the control key
  213. # `Shift` for the Shift key
  214. # `Alt` and `Option` refer to alt/option
  215. #
  216. # mods may be combined with a `|`. For example, requiring control and shift
  217. # looks like:
  218. #
  219. # mods: Control|Shift
  220. #
  221. # The parser is currently quite sensitive to whitespace and capitalization -
  222. # capitalization must match exactly, and piped items must not have whitespace
  223. # around them.
  224. #
  225. # Either an `action`, `chars`, or `command` field must be present.
  226. # `action` must be one of `Paste`, `PasteSelection`, `Copy`, or `Quit`.
  227. # `chars` writes the specified string every time that binding is activated.
  228. # These should generally be escape sequences, but they can be configured to
  229. # send arbitrary strings of bytes.
  230. # `command` must be a map containing a `program` string, and `args` array of
  231. # strings. For example:
  232. # - { ... , command: { program: "alacritty", args: ["-e", "vttest"] } }
  233. key_bindings:
  234. - { key: V, mods: Command, action: Paste }
  235. - { key: C, mods: Command, action: Copy }
  236. - { key: Q, mods: Command, action: Quit }
  237. - { key: W, mods: Command, action: Quit }
  238. - { key: Home, chars: "\x1bOH", mode: AppCursor }
  239. - { key: Home, chars: "\x1b[H", mode: ~AppCursor }
  240. - { key: End, chars: "\x1bOF", mode: AppCursor }
  241. - { key: End, chars: "\x1b[F", mode: ~AppCursor }
  242. - { key: Key0, mods: Command, action: ResetFontSize }
  243. - { key: Equals, mods: Command, action: IncreaseFontSize }
  244. - { key: Minus, mods: Command, action: DecreaseFontSize }
  245. - { key: PageUp, mods: Shift, chars: "\x1b[5;2~" }
  246. - { key: PageUp, mods: Control, chars: "\x1b[5;5~" }
  247. - { key: PageUp, chars: "\x1b[5~" }
  248. - { key: PageDown, mods: Shift, chars: "\x1b[6;2~" }
  249. - { key: PageDown, mods: Control, chars: "\x1b[6;5~" }
  250. - { key: PageDown, chars: "\x1b[6~" }
  251. - { key: Tab, mods: Shift, chars: "\x1b[Z" }
  252. - { key: Back, chars: "\x7f" }
  253. - { key: Back, mods: Alt, chars: "\x1b\x7f" }
  254. - { key: Insert, chars: "\x1b[2~" }
  255. - { key: Delete, chars: "\x1b[3~" }
  256. - { key: Left, mods: Shift, chars: "\x1b[1;2D" }
  257. - { key: Left, mods: Control, chars: "\x1b[1;5D" }
  258. - { key: Left, mods: Alt, chars: "\x1b[1;3D" }
  259. - { key: Left, chars: "\x1b[D", mode: ~AppCursor }
  260. - { key: Left, chars: "\x1bOD", mode: AppCursor }
  261. - { key: Right, mods: Shift, chars: "\x1b[1;2C" }
  262. - { key: Right, mods: Control, chars: "\x1b[1;5C" }
  263. - { key: Right, mods: Alt, chars: "\x1b[1;3C" }
  264. - { key: Right, chars: "\x1b[C", mode: ~AppCursor }
  265. - { key: Right, chars: "\x1bOC", mode: AppCursor }
  266. - { key: Up, mods: Shift, chars: "\x1b[1;2A" }
  267. - { key: Up, mods: Control, chars: "\x1b[1;5A" }
  268. - { key: Up, mods: Alt, chars: "\x1b[1;3A" }
  269. - { key: Up, chars: "\x1b[A", mode: ~AppCursor }
  270. - { key: Up, chars: "\x1bOA", mode: AppCursor }
  271. - { key: Down, mods: Shift, chars: "\x1b[1;2B" }
  272. - { key: Down, mods: Control, chars: "\x1b[1;5B" }
  273. - { key: Down, mods: Alt, chars: "\x1b[1;3B" }
  274. - { key: Down, chars: "\x1b[B", mode: ~AppCursor }
  275. - { key: Down, chars: "\x1bOB", mode: AppCursor }
  276. - { key: F1, chars: "\x1bOP" }
  277. - { key: F2, chars: "\x1bOQ" }
  278. - { key: F3, chars: "\x1bOR" }
  279. - { key: F4, chars: "\x1bOS" }
  280. - { key: F5, chars: "\x1b[15~" }
  281. - { key: F6, chars: "\x1b[17~" }
  282. - { key: F7, chars: "\x1b[18~" }
  283. - { key: F8, chars: "\x1b[19~" }
  284. - { key: F9, chars: "\x1b[20~" }
  285. - { key: F10, chars: "\x1b[21~" }
  286. - { key: F11, chars: "\x1b[23~" }
  287. - { key: F12, chars: "\x1b[24~" }
  288. - { key: F1, mods: Shift, chars: "\x1b[1;2P" }
  289. - { key: F2, mods: Shift, chars: "\x1b[1;2Q" }
  290. - { key: F3, mods: Shift, chars: "\x1b[1;2R" }
  291. - { key: F4, mods: Shift, chars: "\x1b[1;2S" }
  292. - { key: F5, mods: Shift, chars: "\x1b[15;2~" }
  293. - { key: F6, mods: Shift, chars: "\x1b[17;2~" }
  294. - { key: F7, mods: Shift, chars: "\x1b[18;2~" }
  295. - { key: F8, mods: Shift, chars: "\x1b[19;2~" }
  296. - { key: F9, mods: Shift, chars: "\x1b[20;2~" }
  297. - { key: F10, mods: Shift, chars: "\x1b[21;2~" }
  298. - { key: F11, mods: Shift, chars: "\x1b[23;2~" }
  299. - { key: F12, mods: Shift, chars: "\x1b[24;2~" }
  300. - { key: F1, mods: Control, chars: "\x1b[1;5P" }
  301. - { key: F2, mods: Control, chars: "\x1b[1;5Q" }
  302. - { key: F3, mods: Control, chars: "\x1b[1;5R" }
  303. - { key: F4, mods: Control, chars: "\x1b[1;5S" }
  304. - { key: F5, mods: Control, chars: "\x1b[15;5~" }
  305. - { key: F6, mods: Control, chars: "\x1b[17;5~" }
  306. - { key: F7, mods: Control, chars: "\x1b[18;5~" }
  307. - { key: F8, mods: Control, chars: "\x1b[19;5~" }
  308. - { key: F9, mods: Control, chars: "\x1b[20;5~" }
  309. - { key: F10, mods: Control, chars: "\x1b[21;5~" }
  310. - { key: F11, mods: Control, chars: "\x1b[23;5~" }
  311. - { key: F12, mods: Control, chars: "\x1b[24;5~" }
  312. - { key: F1, mods: Alt, chars: "\x1b[1;6P" }
  313. - { key: F2, mods: Alt, chars: "\x1b[1;6Q" }
  314. - { key: F3, mods: Alt, chars: "\x1b[1;6R" }
  315. - { key: F4, mods: Alt, chars: "\x1b[1;6S" }
  316. - { key: F5, mods: Alt, chars: "\x1b[15;6~" }
  317. - { key: F6, mods: Alt, chars: "\x1b[17;6~" }
  318. - { key: F7, mods: Alt, chars: "\x1b[18;6~" }
  319. - { key: F8, mods: Alt, chars: "\x1b[19;6~" }
  320. - { key: F9, mods: Alt, chars: "\x1b[20;6~" }
  321. - { key: F10, mods: Alt, chars: "\x1b[21;6~" }
  322. - { key: F11, mods: Alt, chars: "\x1b[23;6~" }
  323. - { key: F12, mods: Alt, chars: "\x1b[24;6~" }
  324. - { key: F1, mods: Command, chars: "\x1b[1;3P" }
  325. - { key: F2, mods: Command, chars: "\x1b[1;3Q" }
  326. - { key: F3, mods: Command, chars: "\x1b[1;3R" }
  327. - { key: F4, mods: Command, chars: "\x1b[1;3S" }
  328. - { key: F5, mods: Command, chars: "\x1b[15;3~" }
  329. - { key: F6, mods: Command, chars: "\x1b[17;3~" }
  330. - { key: F7, mods: Command, chars: "\x1b[18;3~" }
  331. - { key: F8, mods: Command, chars: "\x1b[19;3~" }
  332. - { key: F9, mods: Command, chars: "\x1b[20;3~" }
  333. - { key: F10, mods: Command, chars: "\x1b[21;3~" }
  334. - { key: F11, mods: Command, chars: "\x1b[23;3~" }
  335. - { key: F12, mods: Command, chars: "\x1b[24;3~" }