alacritty.yml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  1. # Configuration for Alacritty, the GPU enhanced terminal emulator.
  2. env:
  3. # TERM variable
  4. TERM: xterm-256color
  5. window:
  6. # Window dimensions (changes require restart)
  7. #
  8. # Specified in number of columns/lines, not pixels.
  9. # If both are `0`, this setting is ignored.
  10. #dimensions:
  11. # columns: 0
  12. # lines: 0
  13. # Window position (changes require restart)
  14. #
  15. # Specified in number of pixels.
  16. # If the position is not set, the window manager will handle the placement.
  17. #position:
  18. # x: 0
  19. # y: 0
  20. # Window padding (changes require restart)
  21. #
  22. # Blank space added around the window in pixels. This padding is scaled
  23. # by DPI and the specified value is always added at both opposing sides.
  24. padding:
  25. x: 10
  26. y: 10
  27. # Window title
  28. #title: Alacritty
  29. # Window class (Linux only):
  30. class:
  31. # Application instance name
  32. instance: Alacritty
  33. # General application class
  34. #general: Alacritty
  35. scrolling:
  36. # Maximum number of lines in the scrollback buffer.
  37. # Specifying '0' will disable scrolling.
  38. history: 10000
  39. # Number of lines the viewport will move for every line scrolled when
  40. # scrollback is enabled (history > 0).
  41. multiplier: 3
  42. # Scroll to the bottom when new text is written to the terminal.
  43. #auto_scroll: false
  44. # Spaces per Tab (changes require restart)
  45. # Font configuration
  46. font:
  47. # Normal (roman) font face
  48. normal:
  49. # Font family
  50. #
  51. # Default:
  52. # - (macOS) Menlo
  53. # - (Linux) monospace
  54. # - (Windows) Consolas
  55. #family: "scientifica"
  56. #family: "Hack"
  57. #family: "monospace"
  58. family: "NotoSansMono Nerd Font"
  59. # The `style` can be specified to pick a specific face.
  60. #style: Large
  61. style: Regular
  62. # Bold font face
  63. #bold:
  64. # Font family
  65. #
  66. # If the bold family is not specified, it will fall back to the
  67. # value specified for the normal font.
  68. #family: monospace
  69. # The `style` can be specified to pick a specific face.
  70. #style: Bold
  71. # Italic font face
  72. #italic:
  73. # Font family
  74. #
  75. # If the italic family is not specified, it will fall back to the
  76. # value specified for the normal font.
  77. #family: monospace
  78. # The `style` can be specified to pick a specific face.
  79. #style: Italic
  80. # Bold italic font face
  81. #bold_italic:
  82. # Font family
  83. #
  84. # If the bold italic family is not specified, it will fall back to the
  85. # value specified for the normal font.
  86. #family: monospace
  87. # The `style` can be specified to pick a specific face.
  88. #style: Bold Italic
  89. # Point size
  90. size: 12.0
  91. # Offset is the extra space around each character. `offset.y` can be thought of
  92. # as modifying the line spacing, and `offset.x` as modifying the letter spacing.
  93. offset:
  94. x: 1
  95. # y: 0
  96. # Glyph offset determines the locations of the glyphs within their cells with
  97. # the default being at the bottom. Increasing `x` moves the glyph to the right,
  98. # increasing `y` moves the glyph upwards.
  99. #glyph_offset:
  100. # x: 0
  101. # y: 0
  102. # If `true`, bold text is drawn using the bright color variants.
  103. #draw_bold_text_with_bright_colors: true
  104. # Colors (Tomorrow Night Bright)
  105. # Default colors
  106. #primary:
  107. # background: '0x000000'
  108. # foreground: '0xeaeaea'
  109. # Bright and dim foreground colors
  110. #
  111. # The dimmed foreground color is calculated automatically if it is not present.
  112. # If the bright foreground color is not set, or `draw_bold_text_with_bright_colors`
  113. # is `false`, the normal foreground color will be used.
  114. #dim_foreground: '0x9a9a9a'
  115. #bright_foreground: '0xffffff'
  116. # Cursor colors
  117. #
  118. # Colors which should be used to draw the terminal cursor. If these are unset,
  119. # the cursor color will be the inverse of the cell color.
  120. #cursor:
  121. # text: '0x000000'
  122. # cursor: '0xffffff'
  123. # Selection colors
  124. #
  125. # Colors which should be used to draw the selection area. If selection
  126. # background is unset, selection color will be the inverse of the cell colors.
  127. # If only text is unset the cell text color will remain the same.
  128. #selection:
  129. # text: '0xeaeaea'
  130. # background: '0x404040'
  131. # Normal colors
  132. #normal:
  133. # black: '0x000000'
  134. # red: '0xd54e53'
  135. # green: '0xb9ca4a'
  136. # yellow: '0xe6c547'
  137. # blue: '0x7aa6da'
  138. # magenta: '0xc397d8'
  139. # cyan: '0x70c0ba'
  140. # white: '0xeaeaea'
  141. # Bright colors
  142. #bright:
  143. # black: '0x666666'
  144. # red: '0xff3334'
  145. # green: '0x9ec400'
  146. # yellow: '0xe7c547'
  147. # blue: '0x7aa6da'
  148. # magenta: '0xb77ee0'
  149. # cyan: '0x54ced6'
  150. # white: '0xffffff'
  151. # Dim colors
  152. #
  153. # If the dim colors are not set, they will be calculated automatically based
  154. # on the `normal` colors.
  155. #dim:
  156. # black: '0x000000'
  157. # red: '0x8c3336'
  158. # green: '0x7a8530'
  159. # yellow: '0x97822e'
  160. # blue: '0x506d8f'
  161. # magenta: '0x80638e'
  162. # cyan: '0x497e7a'
  163. # white: '0x9a9a9a'
  164. # Indexed Colors
  165. #
  166. # The indexed colors include all colors from 16 to 256.
  167. # When these are not set, they're filled with sensible defaults.
  168. #
  169. # Example:
  170. # `- { index: 16, color: '0xff00ff' }`
  171. #
  172. #indexed_colors: []
  173. # Background opacity
  174. #
  175. # Window opacity as a floating point number from `0.0` to `1.0`.
  176. # The value `0.0` is completely transparent and `1.0` is opaque.
  177. #background_opacity: 1.0
  178. selection:
  179. semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
  180. # When set to `true`, selected text will be copied to the primary clipboard.
  181. save_to_clipboard: true
  182. # Allow terminal applications to change Alacritty's window title.
  183. window.dynamic_title: true
  184. cursor:
  185. # Cursor style
  186. #
  187. # Values for `style`:
  188. # - ▇ Block
  189. # - _ Underline
  190. # - | Beam
  191. style: Block
  192. # If this is `true`, the cursor will be rendered as a hollow box when the
  193. # window is not focused.
  194. #unfocused_hollow: true
  195. # Live config reload (changes require restart)
  196. #live_config_reload: true
  197. # Shell
  198. #
  199. # You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`.
  200. # Entries in `shell.args` are passed unmodified as arguments to the shell.
  201. #
  202. # Default:
  203. # - (macOS) /bin/bash --login
  204. # - (Linux) user login shell
  205. # - (Windows) powershell
  206. #shell:
  207. # program: /bin/bash
  208. # args:
  209. # - --login
  210. # Startup directory
  211. #
  212. # Directory the shell is started in. If this is unset, or `None`, the working
  213. # directory of the parent process will be used.
  214. #working_directory: None
  215. # Send ESC (\x1b) before characters when alt is pressed.
  216. #alt_send_esc: true
  217. #debug:
  218. # Display the time it takes to redraw each frame.
  219. #render_timer: false
  220. # Keep the log file after quitting Alacritty.
  221. #persistent_logging: false
  222. # Log level
  223. #
  224. # Values for `log_level`:
  225. # - None
  226. # - Error
  227. # - Warn
  228. # - Info
  229. # - Debug
  230. # - Trace
  231. #log_level: Warn
  232. # Print all received window events.
  233. #print_events: false
  234. # Record all characters and escape sequences as test data.
  235. #ref_test: false
  236. #mouse:
  237. # Click settings
  238. #
  239. # The `double_click` and `triple_click` settings control the time
  240. # alacritty should wait for accepting multiple clicks as one double
  241. # or triple click.
  242. #double_click: { threshold: 300 }
  243. #triple_click: { threshold: 300 }
  244. # If this is `true`, the cursor is temporarily hidden when typing.
  245. #hide_when_typing: true
  246. #url:
  247. # URL launcher
  248. #
  249. # This program is executed when clicking on a text which is recognized as a URL.
  250. # The URL is always added to the command as the last parameter.
  251. #
  252. # When set to `None`, URL launching will be disabled completely.
  253. #
  254. # Default:
  255. # - (macOS) open
  256. # - (Linux) xdg-open
  257. # - (Windows) explorer
  258. #launcher:
  259. # program: xdg-open
  260. # args: []
  261. # URL modifiers
  262. #
  263. # These are the modifiers that need to be held down for opening URLs when clicking
  264. # on them. The available modifiers are documented in the key binding section.
  265. #modifiers: None
  266. # Mouse bindings
  267. #
  268. # Mouse bindings are specified as a list of objects, much like the key
  269. # bindings further below.
  270. #
  271. # Each mouse binding will specify a:
  272. #
  273. # - `mouse`:
  274. #
  275. # - Middle
  276. # - Left
  277. # - Right
  278. # - Numeric identifier such as `5`
  279. #
  280. # - `action` (see key bindings)
  281. #
  282. # And optionally:
  283. #
  284. # - `mods` (see key bindings)
  285. #mouse_bindings:
  286. # - { mouse: Middle, action: PasteSelection }
  287. # Key bindings
  288. #
  289. # Key bindings are specified as a list of objects. For example, this is the
  290. # default paste binding:
  291. #
  292. # `- { key: V, mods: Control|Shift, action: Paste }`
  293. #
  294. # Each key binding will specify a:
  295. #
  296. # - `key`: Identifier of the key pressed
  297. #
  298. # - A-Z
  299. # - F1-F24
  300. # - Key0-Key9
  301. #
  302. # A full list with available key codes can be found here:
  303. # https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants
  304. #
  305. # Instead of using the name of the keys, the `key` field also supports using
  306. # the scancode of the desired key. Scancodes have to be specified as a
  307. # decimal number. This command will allow you to display the hex scancodes
  308. # for certain keys:
  309. #
  310. # `showkey --scancodes`.
  311. #
  312. # Then exactly one of:
  313. #
  314. # - `chars`: Send a byte sequence to the running application
  315. #
  316. # The `chars` field writes the specified string to the terminal. This makes
  317. # it possible to pass escape sequences. To find escape codes for bindings
  318. # like `PageUp` (`"\x1b[5~"`), you can run the command `showkey -a` outside
  319. # of tmux. Note that applications use terminfo to map escape sequences back
  320. # to keys. It is therefore required to update the terminfo when changing an
  321. # escape sequence.
  322. #
  323. # - `action`: Execute a predefined action
  324. #
  325. # - Copy
  326. # - Paste
  327. # - PasteSelection
  328. # - IncreaseFontSize
  329. # - DecreaseFontSize
  330. # - ResetFontSize
  331. # - ScrollPageUp
  332. # - ScrollPageDown
  333. # - ScrollLineUp
  334. # - ScrollLineDown
  335. # - ScrollToTop
  336. # - ScrollToBottom
  337. # - ClearHistory
  338. # - Hide
  339. # - Quit
  340. # - ToggleFullscreen
  341. # - SpawnNewInstance
  342. # - ClearLogNotice
  343. # - ReceiveChar
  344. # - None
  345. #
  346. # (macOS only):
  347. # - ToggleSimpleFullscreen: Enters fullscreen without occupying another space
  348. #
  349. # - `command`: Fork and execute a specified command plus arguments
  350. #
  351. # The `command` field must be a map containing a `program` string and an
  352. # `args` array of command line parameter strings. For example:
  353. # `{ program: "alacritty", args: ["-e", "vttest"] }`
  354. #
  355. # And optionally:
  356. #
  357. # - `mods`: Key modifiers to filter binding actions
  358. #
  359. # - Command
  360. # - Control
  361. # - Option
  362. # - Super
  363. # - Shift
  364. # - Alt
  365. #
  366. # Multiple `mods` can be combined using `|` like this:
  367. # `mods: Control|Shift`.
  368. # Whitespace and capitalization are relevant and must match the example.
  369. #
  370. # - `mode`: Indicate a binding for only specific terminal reported modes
  371. #
  372. # This is mainly used to send applications the correct escape sequences
  373. # when in different modes.
  374. #
  375. # - AppCursor
  376. # - AppKeypad
  377. # - Alt
  378. #
  379. # A `~` operator can be used before a mode to apply the binding whenever
  380. # the mode is *not* active, e.g. `~Alt`.
  381. #
  382. # Bindings are always filled by default, but will be replaced when a new
  383. # binding with the same triggers is defined. To unset a default binding, it can
  384. # be mapped to the `ReceiveChar` action. Alternatively, you can use `None` for
  385. # a no-op if you do not wish to receive input characters for that binding.
  386. key_bindings:
  387. # (Windows/Linux only)
  388. - { key: V, mods: Control|Shift, action: Paste }
  389. - { key: C, mods: Control|Shift, action: Copy }
  390. #- { key: Plus, mods: Control|Shift, action: IncreaseFontSize }
  391. #- { key: Insert, mods: Shift, action: PasteSelection }
  392. #- { key: Key0, mods: Control, action: ResetFontSize }
  393. #- { key: Equals, mods: Control, action: IncreaseFontSize }
  394. #- { key: Add, mods: Control, action: IncreaseFontSize }
  395. #- { key: Subtract, mods: Control, action: DecreaseFontSize }
  396. #- { key: Minus, mods: Control, action: DecreaseFontSize }
  397. #- { key: Return, mods: Alt, action: ToggleFullscreen }
  398. - { key: PageUp, mods: Shift, action: ScrollPageUp, mode: ~Alt }
  399. - { key: PageDown, mods: Shift, action: ScrollPageDown, mode: ~Alt }
  400. - { key: U, mods: Control, action: ScrollPageUp, mode: ~Alt }
  401. - { key: D, mods: Control, action: ScrollPageDown, mode: ~Alt }
  402. - { key: U, mods: Super, action: ScrollPageUp, mode: ~Alt }
  403. - { key: D, mods: Super, action: ScrollPageDown, mode: ~Alt }
  404. - { key: K, mods: Super, action: ScrollLineUp, mode: ~Alt }
  405. - { key: J, mods: Super, action: ScrollLineDown, mode: ~Alt }
  406. # Colors (Dracula)
  407. schemes:
  408. dracula: &dracula
  409. # Default colors
  410. primary:
  411. background: '0x282a36'
  412. foreground: '0xf8f8f2'
  413. # Normal colors
  414. normal:
  415. black: '0x000000'
  416. red: '0xff5555'
  417. green: '0x50fa7b'
  418. yellow: '0xf1fa8c'
  419. blue: '0xcaa9fa'
  420. magenta: '0xff79c6'
  421. cyan: '0x8be9fd'
  422. white: '0xbfbfbf'
  423. # Bright colors
  424. bright:
  425. black: '0x575b70'
  426. red: '0xff6e67'
  427. green: '0x5af78e'
  428. yellow: '0xf4f99d'
  429. blue: '0xcaa9fa'
  430. magenta: '0xff92d0'
  431. cyan: '0x9aedfe'
  432. white: '0xe6e6e6'
  433. material: &material
  434. # Default colors
  435. primary:
  436. background: '0x1e282d'
  437. foreground: '0xc4c7d1'
  438. # Normal colors
  439. normal:
  440. black: '0x666666'
  441. red: '0xeb606b'
  442. green: '0xc3e88d'
  443. yellow: '0xf7eb95'
  444. blue: '0x80cbc4'
  445. magenta: '0xff2f90'
  446. cyan: '0xaeddff'
  447. white: '0xffffff'
  448. # Bright colors
  449. bright:
  450. black: '0xff262b'
  451. red: '0xeb606b'
  452. green: '0xc3e88d'
  453. yellow: '0xf7eb95'
  454. blue: '0x7dc6bf'
  455. magenta: '0x6c71c4'
  456. cyan: '0x35434d'
  457. white: '0xffffff'
  458. taerminal: &taerminal
  459. primary:
  460. background: '0x26282a'
  461. foreground: '0xf0f0f0'
  462. cursor:
  463. background: '0xf0f0f0'
  464. foreground: '0x26282a'
  465. # Normal colors
  466. normal:
  467. black: '0x26282a'
  468. red: '0xff8878'
  469. green: '0xb4fb73'
  470. yellow: '0xfffcb7'
  471. blue: '0x8bbce5'
  472. magenta: '0xffb2fe'
  473. cyan: '0xa2e1f8'
  474. white: '0xf1f1f1'
  475. # Bright colors
  476. bright:
  477. black: '0x6f6f6f'
  478. red: '0xfe978b'
  479. green: '0xd6fcba'
  480. yellow: '0xfffed5'
  481. blue: '0xc2e3ff'
  482. magenta: '0xffc6ff'
  483. cyan: '0xc0e9f8'
  484. white: '0xffffff'
  485. solarized-light: &sl
  486. # Default colors
  487. primary:
  488. background: '0xfdf6e3' # base3
  489. foreground: '0x657b83' # base00
  490. # Cursor colors
  491. cursor:
  492. text: '0xfdf6e3' # base3
  493. cursor: '0x657b83' # base00
  494. # Normal colors
  495. normal:
  496. black: '0x073642' # base02
  497. red: '0xdc322f' # red
  498. green: '0x859900' # green
  499. yellow: '0xb58900' # yellow
  500. blue: '0x268bd2' # blue
  501. magenta: '0xd33682' # magenta
  502. cyan: '0x2aa198' # cyan
  503. white: '0xeee8d5' # base2
  504. # Bright colors
  505. bright:
  506. black: '0x002b36' # base03
  507. red: '0xcb4b16' # orange
  508. green: '0x586e75' # base01
  509. yellow: '0x657b83' # base00
  510. blue: '0x839496' # base0
  511. magenta: '0x6c71c4' # violet
  512. cyan: '0x93a1a1' # base1
  513. white: '0xfdf6e3' # base3
  514. colors: *taerminal
  515. # colors: *sl