alacritty.yml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  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 itself.
  5. #env:
  6. # TERM variable
  7. #
  8. # This value is used to set the `$TERM` environment variable for
  9. # each instance of Alacritty. If it is not present, alacritty will
  10. # check the local terminfo database and use 'alacritty' if it is
  11. # available, otherwise 'xterm-256color' is used.
  12. #TERM: xterm-256color
  13. window:
  14. # Window dimensions (changes require restart)
  15. #
  16. # Specified in number of columns/lines, not pixels.
  17. # If both are `0`, this setting is ignored.
  18. dimensions:
  19. columns: 80
  20. lines: 24
  21. # Window padding (changes require restart)
  22. #
  23. # Blank space added around the window in pixels. This padding is scaled
  24. # by DPI and the specified value is always added at both opposing sides.
  25. padding:
  26. x: 2
  27. y: 2
  28. # Window decorations
  29. #
  30. # Available values:
  31. # - `full`: Window with title bar and title bar buttons
  32. # - `none`: Window without title bar, rounded corners, or drop shadow
  33. # - `transparent`: Window with title bar with transparent background and title
  34. # bar buttons
  35. # - `buttonless`: Window with title bar with transparent background and no
  36. # title bar buttons
  37. # Window decorations
  38. #
  39. # Values for `decorations`:
  40. # - full: Borders and title bar
  41. # - none: Neither borders nor title bar
  42. # - buttonless: Title bar, transparent background and title bar buttons
  43. # - transparent: Title bar, transparent background, but no title bar buttons
  44. decorations: full
  45. scrolling:
  46. # Maximum number of lines in the scrollback buffer.
  47. # Specifying '0' will disable scrolling.
  48. history: 10000
  49. # Number of lines the viewport will move for every line scrolled when
  50. # scrollback is enabled (history > 0).
  51. multiplier: 3
  52. # Faux Scrolling
  53. #
  54. # The `faux_multiplier` setting controls the number of lines the terminal
  55. # should scroll when the alternate screen buffer is active. This is used
  56. # to allow mouse scrolling for applications like `man`.
  57. #
  58. # Specifying `0` will disable faux scrolling.
  59. faux_multiplier: 3
  60. # Scroll to the bottom when new text is written to the terminal.
  61. auto_scroll: false
  62. # Spaces per Tab (changes require restart)
  63. #
  64. # This setting defines the width of a tab in cells.
  65. #
  66. # Some applications, like Emacs, rely on knowing about the width of a tab.
  67. # To prevent unexpected behavior in these applications, it's also required to
  68. # change the `it` value in terminfo when altering this setting.
  69. tabspaces: 8
  70. # Font configuration (changes require restart)
  71. font:
  72. # Normal (roman) font face
  73. normal:
  74. family: FuraCode Nerd Font
  75. # The `style` can be specified to pick a specific face.
  76. #style: Regular
  77. # Bold font face
  78. bold:
  79. family: IBM Plex Mono
  80. # The `style` can be specified to pick a specific face.
  81. #style: Bold
  82. # Italic font face
  83. italic:
  84. family: IBM Plex Mono
  85. # The `style` can be specified to pick a specific face.
  86. #style: Italic
  87. # Point size
  88. size: 14.0
  89. # Offset is the extra space around each character. `offset.y` can be thought of
  90. # as modifying the line spacing, and `offset.x` as modifying the letter spacing.
  91. offset:
  92. x: 0
  93. y: 0
  94. # Glyph offset determines the locations of the glyphs within their cells with
  95. # the default being at the bottom. Increasing `x` moves the glyph to the right,
  96. # increasing `y` moves the glyph upwards.
  97. glyph_offset:
  98. x: 0
  99. y: 0
  100. # Thin stroke font rendering (OS X only)
  101. #
  102. # Thin strokes are suitable for retina displays, but for non-retina screens
  103. # it is recommended to set `use_thin_strokes` to `false`
  104. use_thin_strokes: true
  105. # Display the time it takes to redraw each frame.
  106. render_timer: false
  107. # If `true`, bold text is drawn using the bright color variants.
  108. draw_bold_text_with_bright_colors: true
  109. # Colors (Tomorrow Night Bright)
  110. colors:
  111. # Default colors
  112. primary:
  113. background: '0x000000'
  114. foreground: '0xeaeaea'
  115. # Bright and dim foreground colors
  116. #
  117. # The dimmed foreground color is calculated automatically if it is not present.
  118. # If the bright foreground color is not set, or `draw_bold_text_with_bright_colors`
  119. # is `false`, the normal foreground color will be used.
  120. #dim_foreground: '0x9a9a9a'
  121. #bright_foreground: '0xffffff'
  122. # Cursor colors
  123. #
  124. # Colors which should be used to draw the terminal cursor. If these are unset,
  125. # the cursor color will be the inverse of the cell color.
  126. #cursor:
  127. # text: '0x000000'
  128. # cursor: '0xffffff'
  129. # Normal colors
  130. normal:
  131. black: '0x000000'
  132. red: '0xd54e53'
  133. green: '0xb9ca4a'
  134. yellow: '0xe6c547'
  135. blue: '0x7aa6da'
  136. magenta: '0xc397d8'
  137. cyan: '0x70c0ba'
  138. white: '0xffffff'
  139. # Bright colors
  140. bright:
  141. black: '0x666666'
  142. red: '0xff3334'
  143. green: '0x9ec400'
  144. yellow: '0xe7c547'
  145. blue: '0x7aa6da'
  146. magenta: '0xb77ee0'
  147. cyan: '0x54ced6'
  148. white: '0xffffff'
  149. # Dim colors
  150. #
  151. # If the dim colors are not set, they will be calculated automatically based
  152. # on the `normal` colors.
  153. dim:
  154. black: '0x333333'
  155. red: '0xf2777a'
  156. green: '0x99cc99'
  157. yellow: '0xffcc66'
  158. blue: '0x6699cc'
  159. magenta: '0xcc99cc'
  160. cyan: '0x66cccc'
  161. white: '0xdddddd'
  162. # Indexed Colors
  163. #
  164. # The indexed colors include all colors from 16 to 256.
  165. # When these are not set, they're filled with sensible defaults.
  166. #indexed_colors:
  167. # - { index: 16, color: '0x000000' }
  168. # Visual Bell
  169. #
  170. # Any time the BEL code is received, Alacritty "rings" the visual bell. Once
  171. # rung, the terminal background will be set to white and transition back to the
  172. # default background color. You can control the rate of this transition by
  173. # setting the `duration` property (represented in milliseconds). You can also
  174. # configure the transition function by setting the `animation` property.
  175. #
  176. # Values for `animation`:
  177. # - Ease
  178. # - EaseOut
  179. # - EaseOutSine
  180. # - EaseOutQuad
  181. # - EaseOutCubic
  182. # - EaseOutQuart
  183. # - EaseOutQuint
  184. # - EaseOutExpo
  185. # - EaseOutCirc
  186. # - Linear
  187. #
  188. # Specifying a `duration` of `0` will disable the visual bell.
  189. visual_bell:
  190. animation: EaseOutExpo
  191. duration: 0
  192. # Background opacity
  193. #
  194. # Window opacity as a floating point number from `0.0` to `1.0`.
  195. # The value `0.0` is completely transparent and `1.0` is opaque.
  196. background_opacity: 1.0
  197. # Mouse bindings
  198. #
  199. # Available fields:
  200. # - mouse
  201. # - action
  202. # - mods (optional)
  203. #
  204. # Values for `mouse`:
  205. # - Middle
  206. # - Left
  207. # - Right
  208. # - Numeric identifier such as `5`
  209. #
  210. # All available `mods` and `action` values are documented in the key binding
  211. # section.
  212. mouse_bindings:
  213. - { mouse: Middle, action: PasteSelection }
  214. mouse:
  215. # Click settings
  216. #
  217. # The `double_click` and `triple_click` settings control the time
  218. # alacritty should wait for accepting multiple clicks as one double
  219. # or triple click.
  220. double_click: { threshold: 300 }
  221. triple_click: { threshold: 300 }
  222. # If this is `true`, the cursor is temporarily hidden when typing.
  223. hide_when_typing: false
  224. url:
  225. # URL launcher
  226. #
  227. # This program is executed when clicking on a text which is recognized as a URL.
  228. # The URL is always added to the command as the last parameter.
  229. launcher: open
  230. # URL modifiers
  231. #
  232. # These are the modifiers that need to be held down for opening URLs when clicking
  233. # on them. The available modifiers are documented in the key binding section.
  234. #modifiers: Control|Shift
  235. selection:
  236. semantic_escape_chars: ",│`|:\"' ()[]{}<>"
  237. # When set to `true`, selected text will be copied to the primary clipboard.
  238. save_to_clipboard: false
  239. cursor:
  240. # Cursor style
  241. #
  242. # Values for 'style':
  243. # - ▇ Block
  244. # - _ Underline
  245. # - | Beam
  246. style: Block
  247. # If this is `true`, the cursor will be rendered as a hollow box when the
  248. # window is not focused.
  249. unfocused_hollow: true
  250. # Live config reload (changes require restart)
  251. live_config_reload: true
  252. # Shell
  253. #
  254. # You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`.
  255. # Entries in `shell.args` are passed unmodified as arguments to the shell.
  256. #shell:
  257. # program: /bin/bash
  258. # args:
  259. # - --login
  260. # Key bindings
  261. #
  262. # Key bindings are specified as a list of objects. Each binding will specify
  263. # a key and modifiers required to trigger it, terminal modes where the binding
  264. # is applicable, and what should be done when the key binding fires. It can
  265. # either send a byte sequnce to the running application (`chars`), execute
  266. # a predefined action (`action`) or fork and execute a specified command plus
  267. # arguments (`command`).
  268. #
  269. # Example:
  270. # `- { key: V, mods: Command, action: Paste }`
  271. #
  272. # Available fields:
  273. # - key
  274. # - mods (optional)
  275. # - chars | action | command (exactly one required)
  276. # - mode (optional)
  277. #
  278. # Values for `key`:
  279. # - `A` -> `Z`
  280. # - `F1` -> `F12`
  281. # - `Key1` -> `Key0`
  282. #
  283. # A full list with available key codes can be found here:
  284. # https://docs.rs/glutin/*/glutin/enum.VirtualKeyCode.html#variants
  285. #
  286. # Instead of using the name of the keys, the `key` field also supports using
  287. # the scancode of the desired key. Scancodes have to be specified as a
  288. # decimal number.
  289. # This command will allow you to display the hex scancodes for certain keys:
  290. # `showkey --scancodes`
  291. #
  292. # Values for `mods`:
  293. # - Command
  294. # - Control
  295. # - Shift
  296. # - Alt
  297. #
  298. # Multiple `mods` can be combined using `|` like this: `mods: Control|Shift`.
  299. # Whitespace and capitalization is relevant and must match the example.
  300. #
  301. # Values for `chars`:
  302. # The `chars` field writes the specified string to the terminal. This makes
  303. # it possible to pass escape sequences.
  304. # To find escape codes for bindings like `PageUp` ("\x1b[5~"), you can run
  305. # the command `showkey -a` outside of tmux.
  306. # Note that applications use terminfo to map escape sequences back to
  307. # keys. It is therefore required to update the terminfo when
  308. # changing an escape sequence.
  309. #
  310. # Values for `action`:
  311. # - Paste
  312. # - PasteSelection
  313. # - Copy
  314. # - IncreaseFontSize
  315. # - DecreaseFontSize
  316. # - ResetFontSize
  317. # - ScrollPageUp
  318. # - ScrollPageDown
  319. # - ScrollToTop
  320. # - ScrollToBottom
  321. # - ClearHistory
  322. # - Hide
  323. # - Quit
  324. #
  325. # Values for `command`:
  326. # The `command` field must be a map containing a `program` string and
  327. # an `args` array of command line parameter strings.
  328. #
  329. # Example:
  330. # `command: { program: "alacritty", args: ["-e", "vttest"] }`
  331. #
  332. # Values for `mode`:
  333. # - ~AppCursor
  334. # - AppCursor
  335. # - ~AppKeypad
  336. # - AppKeypad
  337. key_bindings:
  338. - { key: V, mods: Command, action: Paste }
  339. - { key: C, mods: Command, action: Copy }
  340. - { key: Paste, action: Paste }
  341. - { key: Copy, action: Copy }
  342. - { key: H, mods: Command, action: Hide }
  343. - { key: Q, mods: Command, action: Quit }
  344. - { key: W, mods: Command, action: Quit }
  345. - { key: Home, chars: "\x1bOH", mode: AppCursor }
  346. - { key: Home, chars: "\x1b[H", mode: ~AppCursor }
  347. - { key: End, chars: "\x1bOF", mode: AppCursor }
  348. - { key: End, chars: "\x1b[F", mode: ~AppCursor }
  349. - { key: Key0, mods: Command, action: ResetFontSize }
  350. - { key: Equals, mods: Command, action: IncreaseFontSize }
  351. - { key: Minus, mods: Command, action: DecreaseFontSize }
  352. - { key: K, mods: Command, action: ClearHistory }
  353. - { key: K, mods: Command, chars: "\x0c" }
  354. - { key: PageUp, mods: Shift, chars: "\x1b[5;2~" }
  355. - { key: PageUp, mods: Control, chars: "\x1b[5;5~" }
  356. - { key: PageUp, chars: "\x1b[5~" }
  357. - { key: PageDown, mods: Shift, chars: "\x1b[6;2~" }
  358. - { key: PageDown, mods: Control, chars: "\x1b[6;5~" }
  359. - { key: PageDown, chars: "\x1b[6~" }
  360. - { key: Tab, mods: Shift, chars: "\x1b[Z" }
  361. - { key: Back, chars: "\x7f" }
  362. - { key: Back, mods: Alt, chars: "\x1b\x7f" }
  363. - { key: Insert, chars: "\x1b[2~" }
  364. - { key: Delete, chars: "\x1b[3~" }
  365. - { key: Left, mods: Shift, chars: "\x1b[1;2D" }
  366. - { key: Left, mods: Control, chars: "\x1b[1;5D" }
  367. - { key: Left, mods: Alt, chars: "\x1b[1;3D" }
  368. - { key: Left, chars: "\x1b[D", mode: ~AppCursor }
  369. - { key: Left, chars: "\x1bOD", mode: AppCursor }
  370. - { key: Right, mods: Shift, chars: "\x1b[1;2C" }
  371. - { key: Right, mods: Control, chars: "\x1b[1;5C" }
  372. - { key: Right, mods: Alt, chars: "\x1b[1;3C" }
  373. - { key: Right, chars: "\x1b[C", mode: ~AppCursor }
  374. - { key: Right, chars: "\x1bOC", mode: AppCursor }
  375. - { key: Up, mods: Shift, chars: "\x1b[1;2A" }
  376. - { key: Up, mods: Control, chars: "\x1b[1;5A" }
  377. - { key: Up, mods: Alt, chars: "\x1b[1;3A" }
  378. - { key: Up, chars: "\x1b[A", mode: ~AppCursor }
  379. - { key: Up, chars: "\x1bOA", mode: AppCursor }
  380. - { key: Down, mods: Shift, chars: "\x1b[1;2B" }
  381. - { key: Down, mods: Control, chars: "\x1b[1;5B" }
  382. - { key: Down, mods: Alt, chars: "\x1b[1;3B" }
  383. - { key: Down, chars: "\x1b[B", mode: ~AppCursor }
  384. - { key: Down, chars: "\x1bOB", mode: AppCursor }
  385. - { key: F1, chars: "\x1bOP" }
  386. - { key: F2, chars: "\x1bOQ" }
  387. - { key: F3, chars: "\x1bOR" }
  388. - { key: F4, chars: "\x1bOS" }
  389. - { key: F5, chars: "\x1b[15~" }
  390. - { key: F6, chars: "\x1b[17~" }
  391. - { key: F7, chars: "\x1b[18~" }
  392. - { key: F8, chars: "\x1b[19~" }
  393. - { key: F9, chars: "\x1b[20~" }
  394. - { key: F10, chars: "\x1b[21~" }
  395. - { key: F11, chars: "\x1b[23~" }
  396. - { key: F12, chars: "\x1b[24~" }
  397. - { key: F1, mods: Shift, chars: "\x1b[1;2P" }
  398. - { key: F2, mods: Shift, chars: "\x1b[1;2Q" }
  399. - { key: F3, mods: Shift, chars: "\x1b[1;2R" }
  400. - { key: F4, mods: Shift, chars: "\x1b[1;2S" }
  401. - { key: F5, mods: Shift, chars: "\x1b[15;2~" }
  402. - { key: F6, mods: Shift, chars: "\x1b[17;2~" }
  403. - { key: F7, mods: Shift, chars: "\x1b[18;2~" }
  404. - { key: F8, mods: Shift, chars: "\x1b[19;2~" }
  405. - { key: F9, mods: Shift, chars: "\x1b[20;2~" }
  406. - { key: F10, mods: Shift, chars: "\x1b[21;2~" }
  407. - { key: F11, mods: Shift, chars: "\x1b[23;2~" }
  408. - { key: F12, mods: Shift, chars: "\x1b[24;2~" }
  409. - { key: F1, mods: Control, chars: "\x1b[1;5P" }
  410. - { key: F2, mods: Control, chars: "\x1b[1;5Q" }
  411. - { key: F3, mods: Control, chars: "\x1b[1;5R" }
  412. - { key: F4, mods: Control, chars: "\x1b[1;5S" }
  413. - { key: F5, mods: Control, chars: "\x1b[15;5~" }
  414. - { key: F6, mods: Control, chars: "\x1b[17;5~" }
  415. - { key: F7, mods: Control, chars: "\x1b[18;5~" }
  416. - { key: F8, mods: Control, chars: "\x1b[19;5~" }
  417. - { key: F9, mods: Control, chars: "\x1b[20;5~" }
  418. - { key: F10, mods: Control, chars: "\x1b[21;5~" }
  419. - { key: F11, mods: Control, chars: "\x1b[23;5~" }
  420. - { key: F12, mods: Control, chars: "\x1b[24;5~" }
  421. - { key: F1, mods: Alt, chars: "\x1b[1;6P" }
  422. - { key: F2, mods: Alt, chars: "\x1b[1;6Q" }
  423. - { key: F3, mods: Alt, chars: "\x1b[1;6R" }
  424. - { key: F4, mods: Alt, chars: "\x1b[1;6S" }
  425. - { key: F5, mods: Alt, chars: "\x1b[15;6~" }
  426. - { key: F6, mods: Alt, chars: "\x1b[17;6~" }
  427. - { key: F7, mods: Alt, chars: "\x1b[18;6~" }
  428. - { key: F8, mods: Alt, chars: "\x1b[19;6~" }
  429. - { key: F9, mods: Alt, chars: "\x1b[20;6~" }
  430. - { key: F10, mods: Alt, chars: "\x1b[21;6~" }
  431. - { key: F11, mods: Alt, chars: "\x1b[23;6~" }
  432. - { key: F12, mods: Alt, chars: "\x1b[24;6~" }
  433. - { key: F1, mods: Command, chars: "\x1b[1;3P" }
  434. - { key: F2, mods: Command, chars: "\x1b[1;3Q" }
  435. - { key: F3, mods: Command, chars: "\x1b[1;3R" }
  436. - { key: F4, mods: Command, chars: "\x1b[1;3S" }
  437. - { key: F5, mods: Command, chars: "\x1b[15;3~" }
  438. - { key: F6, mods: Command, chars: "\x1b[17;3~" }
  439. - { key: F7, mods: Command, chars: "\x1b[18;3~" }
  440. - { key: F8, mods: Command, chars: "\x1b[19;3~" }
  441. - { key: F9, mods: Command, chars: "\x1b[20;3~" }
  442. - { key: F10, mods: Command, chars: "\x1b[21;3~" }
  443. - { key: F11, mods: Command, chars: "\x1b[23;3~" }
  444. - { key: F12, mods: Command, chars: "\x1b[24;3~" }
  445. - { key: NumpadEnter, chars: "\n" }
  446. - { key: N, mods: Command, command: { program: "open", args: ["-nb", "io.alacritty"] } }
  447. - { key: Key0, mods: Command, action: ResetFontSize }
  448. - { key: Equals, mods: Command, action: IncreaseFontSize }
  449. - { key: Minus, mods: Command, action: DecreaseFontSize }