salvoza

My Alacritty config file

Mar 8th, 2022 (edited)
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.40 KB | None | 0 0
  1. env:
  2. TERM: alacritty
  3.  
  4. colors:
  5. primary:
  6. background: "#1e2127"
  7. foreground: "#D8DEE9"
  8.  
  9. #background_opacity: 0.95
  10.  
  11. font:
  12. normal:
  13. family: "MesloLGS NF"
  14. style: Regular
  15. bold:
  16. family: "MesloLGS NF"
  17. style: Bold
  18. italic:
  19. family: "MeloLGS NF"
  20. style: Italic
  21. bold_italic:
  22. family: "MesloLGS NF"
  23. style: Bold Italic
  24. size: 16.0
  25.  
  26. window:
  27. padding:
  28. x: 10
  29. y: 10
  30.  
  31. startup_mode: Maximized
  32. # Values for `startup_mode`:
  33. # - Windowed
  34. # - Maximized
  35. # - Fullscreen
  36.  
  37. draw_bold_text_with_bright_colors: true
  38.  
  39. live_config_reload: true
  40.  
  41. scrolling:
  42. history: 10000
  43. multiplier: 10
  44.  
  45. cursor:
  46. style:
  47. shape: Underline
  48. blinking: on
  49.  
  50. live_config_reload: true
  51.  
  52. key_bindings:
  53. # - { Key: V, mods: Control|Shift, action: Paste }
  54. # - { Key: C, mods: Control|Shift, action: Copy }
  55.  
  56. - { key: Paste, action: Paste }
  57. - { key: Copy, action: Copy }
  58. - { key: L, mods: Control, action: ClearLogNotice }
  59. - { key: L, mods: Control, chars: "\x0c" }
  60. - { key: Home, mods: Alt, chars: "\x1b[1;3H" }
  61. - { key: Home, chars: "\x1bOH", mode: AppCursor }
  62. - { key: Home, chars: "\x1b[H", mode: ~AppCursor }
  63. - { key: End, mods: Alt, chars: "\x1b[1;3F" }
  64. - { key: End, chars: "\x1bOF", mode: AppCursor }
  65. - { key: End, chars: "\x1b[F", mode: ~AppCursor }
  66. - { key: PageUp, mods: Shift, action: ScrollPageUp, mode: ~Alt }
  67. - { key: PageUp, mods: Shift, chars: "\x1b[5;2~", mode: Alt }
  68. - { key: PageUp, mods: Control, chars: "\x1b[5;5~" }
  69. - { key: PageUp, mods: Alt, chars: "\x1b[5;3~" }
  70. - { key: PageUp, chars: "\x1b[5~" }
  71. - { key: PageDown, mods: Shift, action: ScrollPageDown, mode: ~Alt }
  72. - { key: PageDown, mods: Shift, chars: "\x1b[6;2~", mode: Alt }
  73. - { key: PageDown, mods: Control, chars: "\x1b[6;5~" }
  74. - { key: PageDown, mods: Alt, chars: "\x1b[6;3~" }
  75. - { key: PageDown, chars: "\x1b[6~" }
  76. - { key: Tab, mods: Shift, chars: "\x1b[Z" }
  77. - { key: Back, chars: "\x7f" }
  78. - { key: Back, mods: Alt, chars: "\x1b\x7f" }
  79. - { key: Insert, chars: "\x1b[2~" }
  80. - { key: Delete, chars: "\x1b[3~" }
  81. - { key: Left, mods: Shift, chars: "\x1b[1;2D" }
  82. - { key: Left, mods: Control, chars: "\x1b[1;5D" }
  83. - { key: Left, mods: Alt, chars: "\x1b[1;3D" }
  84. - { key: Left, chars: "\x1b[D", mode: ~AppCursor }
  85. - { key: Left, chars: "\x1bOD", mode: AppCursor }
  86. - { key: Right, mods: Shift, chars: "\x1b[1;2C" }
  87. - { key: Right, mods: Control, chars: "\x1b[1;5C" }
  88. - { key: Right, mods: Alt, chars: "\x1b[1;3C" }
  89. - { key: Right, chars: "\x1b[C", mode: ~AppCursor }
  90. - { key: Right, chars: "\x1bOC", mode: AppCursor }
  91. - { key: Up, mods: Shift, chars: "\x1b[1;2A" }
  92. - { key: Up, mods: Control, chars: "\x1b[1;5A" }
  93. - { key: Up, mods: Alt, chars: "\x1b[1;3A" }
  94. - { key: Up, chars: "\x1b[A", mode: ~AppCursor }
  95. - { key: Up, chars: "\x1bOA", mode: AppCursor }
  96. - { key: Down, mods: Shift, chars: "\x1b[1;2B" }
  97. - { key: Down, mods: Control, chars: "\x1b[1;5B" }
  98. - { key: Down, mods: Alt, chars: "\x1b[1;3B" }
  99. - { key: Down, chars: "\x1b[B", mode: ~AppCursor }
  100. - { key: Down, chars: "\x1bOB", mode: AppCursor }
  101. - { key: F1, chars: "\x1bOP" }
  102. - { key: F2, chars: "\x1bOQ" }
  103. - { key: F3, chars: "\x1bOR" }
  104. - { key: F4, chars: "\x1bOS" }
  105. - { key: F5, chars: "\x1b[15~" }
  106. - { key: F6, chars: "\x1b[17~" }
  107. - { key: F7, chars: "\x1b[18~" }
  108. - { key: F8, chars: "\x1b[19~" }
  109. - { key: F9, chars: "\x1b[20~" }
  110. - { key: F10, chars: "\x1b[21~" }
  111. - { key: F11, chars: "\x1b[23~" }
  112. - { key: F12, chars: "\x1b[24~" }
  113. - { key: F1, mods: Shift, chars: "\x1b[1;2P" }
  114. - { key: F2, mods: Shift, chars: "\x1b[1;2Q" }
  115. - { key: F3, mods: Shift, chars: "\x1b[1;2R" }
  116. - { key: F4, mods: Shift, chars: "\x1b[1;2S" }
  117. - { key: F5, mods: Shift, chars: "\x1b[15;2~" }
  118. - { key: F6, mods: Shift, chars: "\x1b[17;2~" }
  119. - { key: F7, mods: Shift, chars: "\x1b[18;2~" }
  120. - { key: F8, mods: Shift, chars: "\x1b[19;2~" }
  121. - { key: F9, mods: Shift, chars: "\x1b[20;2~" }
  122. - { key: F10, mods: Shift, chars: "\x1b[21;2~" }
  123. - { key: F11, mods: Shift, chars: "\x1b[23;2~" }
  124. - { key: F12, mods: Shift, chars: "\x1b[24;2~" }
  125. - { key: F1, mods: Control, chars: "\x1b[1;5P" }
  126. - { key: F2, mods: Control, chars: "\x1b[1;5Q" }
  127. - { key: F3, mods: Control, chars: "\x1b[1;5R" }
  128. - { key: F4, mods: Control, chars: "\x1b[1;5S" }
  129. - { key: F5, mods: Control, chars: "\x1b[15;5~" }
  130. - { key: F6, mods: Control, chars: "\x1b[17;5~" }
  131. - { key: F7, mods: Control, chars: "\x1b[18;5~" }
  132. - { key: F8, mods: Control, chars: "\x1b[19;5~" }
  133. - { key: F9, mods: Control, chars: "\x1b[20;5~" }
  134. - { key: F10, mods: Control, chars: "\x1b[21;5~" }
  135. - { key: F11, mods: Control, chars: "\x1b[23;5~" }
  136. - { key: F12, mods: Control, chars: "\x1b[24;5~" }
  137. - { key: F1, mods: Alt, chars: "\x1b[1;6P" }
  138. - { key: F2, mods: Alt, chars: "\x1b[1;6Q" }
  139. - { key: F3, mods: Alt, chars: "\x1b[1;6R" }
  140. - { key: F4, mods: Alt, chars: "\x1b[1;6S" }
  141. - { key: F5, mods: Alt, chars: "\x1b[15;6~" }
  142. - { key: F6, mods: Alt, chars: "\x1b[17;6~" }
  143. - { key: F7, mods: Alt, chars: "\x1b[18;6~" }
  144. - { key: F8, mods: Alt, chars: "\x1b[19;6~" }
  145. - { key: F9, mods: Alt, chars: "\x1b[20;6~" }
  146. - { key: F10, mods: Alt, chars: "\x1b[21;6~" }
  147. - { key: F11, mods: Alt, chars: "\x1b[23;6~" }
  148. - { key: F12, mods: Alt, chars: "\x1b[24;6~" }
  149. - { key: F1, mods: Super, chars: "\x1b[1;3P" }
  150. - { key: F2, mods: Super, chars: "\x1b[1;3Q" }
  151. - { key: F3, mods: Super, chars: "\x1b[1;3R" }
  152. - { key: F4, mods: Super, chars: "\x1b[1;3S" }
  153. - { key: F5, mods: Super, chars: "\x1b[15;3~" }
  154. - { key: F6, mods: Super, chars: "\x1b[17;3~" }
  155. - { key: F7, mods: Super, chars: "\x1b[18;3~" }
  156. - { key: F8, mods: Super, chars: "\x1b[19;3~" }
  157. - { key: F9, mods: Super, chars: "\x1b[20;3~" }
  158. - { key: F10, mods: Super, chars: "\x1b[21;3~" }
  159. - { key: F11, mods: Super, chars: "\x1b[23;3~" }
  160. - { key: F12, mods: Super, chars: "\x1b[24;3~" }
  161. - { key: NumpadEnter, chars: "\n" }
  162. - { key: N, mods: Control, action: SpawnNewInstance }
  163.  
  164.  
  165.  
  166.  
  167. # Configuration for Alacritty, the GPU enhanced terminal emulator.
  168.  
  169. # Import additional configuration files
  170. #
  171. # Imports are loaded in order, skipping all missing files, with the importing
  172. # file being loaded last. If a field is already present in a previous import, it
  173. # will be replaced.
  174. #
  175. # All imports must either be absolute paths starting with `/`, or paths relative
  176. # to the user's home directory starting with `~/`.
  177. #import:
  178. # - /path/to/alacritty.yml
  179.  
  180. # Any items in the `env` entry below will be added as
  181. # environment variables. Some entries may override variables
  182. # set by alacritty itself.
  183. #env:
  184. # TERM variable
  185. #
  186. # This value is used to set the `$TERM` environment variable for
  187. # each instance of Alacritty. If it is not present, alacritty will
  188. # check the local terminfo database and use `alacritty` if it is
  189. # available, otherwise `xterm-256color` is used.
  190. #TERM: alacritty
  191.  
  192. #window:
  193. # Window dimensions (changes require restart)
  194. #
  195. # Number of lines/columns (not pixels) in the terminal. The number of columns
  196. # must be at least `2`, while using a value of `0` for columns and lines will
  197. # fall back to the window manager's recommended size.
  198. #dimensions:
  199. # columns: 0
  200. # lines: 0
  201.  
  202. # Window position (changes require restart)
  203. #
  204. # Specified in number of pixels.
  205. # If the position is not set, the window manager will handle the placement.
  206. #position:
  207. # x: 0
  208. # y: 0
  209.  
  210. # Window padding (changes require restart)
  211. #
  212. # Blank space added around the window in pixels. This padding is scaled
  213. # by DPI and the specified value is always added at both opposing sides.
  214. #padding:
  215. # x: 0
  216. # y: 0
  217.  
  218. # Spread additional padding evenly around the terminal content.
  219. #dynamic_padding: false
  220.  
  221. # Window decorations
  222. #
  223. # Values for `decorations`:
  224. # - full: Borders and title bar
  225. # - none: Neither borders nor title bar
  226. #
  227. # Values for `decorations` (macOS only):
  228. # - transparent: Title bar, transparent background and title bar buttons
  229. # - buttonless: Title bar, transparent background and no title bar buttons
  230. #decorations: full
  231.  
  232. # Background opacity
  233. #
  234. # Window opacity as a floating point number from `0.0` to `1.0`.
  235. # The value `0.0` is completely transparent and `1.0` is opaque.
  236. #opacity: 1.0
  237.  
  238. # Startup Mode (changes require restart)
  239. #
  240. # Values for `startup_mode`:
  241. # - Windowed
  242. # - Maximized
  243. # - Fullscreen
  244. #
  245. # Values for `startup_mode` (macOS only):
  246. # - SimpleFullscreen
  247. #startup_mode: Windowed
  248.  
  249. # Window title
  250. #title: Alacritty
  251.  
  252. # Allow terminal applications to change Alacritty's window title.
  253. #dynamic_title: true
  254.  
  255. # Window class (Linux/BSD only):
  256. #class:
  257. # Application instance name
  258. #instance: Alacritty
  259. # General application class
  260. #general: Alacritty
  261.  
  262. # GTK theme variant (Linux/BSD only)
  263. #
  264. # Override the variant of the GTK theme. Commonly supported values are `dark`
  265. # and `light`. Set this to `None` to use the default theme variant.
  266. #gtk_theme_variant: None
  267.  
  268. #scrolling:
  269. # Maximum number of lines in the scrollback buffer.
  270. # Specifying '0' will disable scrolling.
  271. #history: 10000
  272.  
  273. # Scrolling distance multiplier.
  274. #multiplier: 3
  275.  
  276. # Font configuration
  277. #font:
  278. # Normal (roman) font face
  279. #normal:
  280. # Font family
  281. #
  282. # Default:
  283. # - (macOS) Menlo
  284. # - (Linux/BSD) monospace
  285. # - (Windows) Consolas
  286. #family: monospace
  287.  
  288. # The `style` can be specified to pick a specific face.
  289. #style: Regular
  290.  
  291. # Bold font face
  292. #bold:
  293. # Font family
  294. #
  295. # If the bold family is not specified, it will fall back to the
  296. # value specified for the normal font.
  297. #family: monospace
  298.  
  299. # The `style` can be specified to pick a specific face.
  300. #style: Bold
  301.  
  302. # Italic font face
  303. #italic:
  304. # Font family
  305. #
  306. # If the italic family is not specified, it will fall back to the
  307. # value specified for the normal font.
  308. #family: monospace
  309.  
  310. # The `style` can be specified to pick a specific face.
  311. #style: Italic
  312.  
  313. # Bold italic font face
  314. #bold_italic:
  315. # Font family
  316. #
  317. # If the bold italic family is not specified, it will fall back to the
  318. # value specified for the normal font.
  319. #family: monospace
  320.  
  321. # The `style` can be specified to pick a specific face.
  322. #style: Bold Italic
  323.  
  324. # Point size
  325. #size: 11.0
  326.  
  327. # Offset is the extra space around each character. `offset.y` can be thought
  328. # of as modifying the line spacing, and `offset.x` as modifying the letter
  329. # spacing.
  330. #offset:
  331. # x: 0
  332. # y: 0
  333.  
  334. # Glyph offset determines the locations of the glyphs within their cells with
  335. # the default being at the bottom. Increasing `x` moves the glyph to the
  336. # right, increasing `y` moves the glyph upward.
  337. #glyph_offset:
  338. # x: 0
  339. # y: 0
  340.  
  341. # Thin stroke font rendering (macOS only)
  342. #
  343. # Thin strokes are suitable for retina displays, but for non-retina screens
  344. # it is recommended to set `use_thin_strokes` to `false`.
  345. #use_thin_strokes: true
  346.  
  347. # Use built-in font for box drawing characters.
  348. #
  349. # If `true`, Alacritty will use a custom built-in font for box drawing
  350. # characters (Unicode points 2500 - 259f).
  351. #
  352. #builtin_box_drawing: true
  353.  
  354. # If `true`, bold text is drawn using the bright color variants.
  355. #draw_bold_text_with_bright_colors: false
  356.  
  357. # Colors (Tomorrow Night)
  358. #colors:
  359. # Default colors
  360. #primary:
  361. # background: '#1d1f21'
  362. # foreground: '#c5c8c6'
  363.  
  364. # Bright and dim foreground colors
  365. #
  366. # The dimmed foreground color is calculated automatically if it is not
  367. # present. If the bright foreground color is not set, or
  368. # `draw_bold_text_with_bright_colors` is `false`, the normal foreground
  369. # color will be used.
  370. #dim_foreground: '#828482'
  371. #bright_foreground: '#eaeaea'
  372.  
  373. # Cursor colors
  374. #
  375. # Colors which should be used to draw the terminal cursor.
  376. #
  377. # Allowed values are CellForeground/CellBackground, which reference the
  378. # affected cell, or hexadecimal colors like #ff00ff.
  379. #cursor:
  380. # text: CellBackground
  381. # cursor: CellForeground
  382.  
  383. # Vi mode cursor colors
  384. #
  385. # Colors for the cursor when the vi mode is active.
  386. #
  387. # Allowed values are CellForeground/CellBackground, which reference the
  388. # affected cell, or hexadecimal colors like #ff00ff.
  389. #vi_mode_cursor:
  390. # text: CellBackground
  391. # cursor: CellForeground
  392.  
  393. # Search colors
  394. #
  395. # Colors used for the search bar and match highlighting.
  396. #search:
  397. # Allowed values are CellForeground/CellBackground, which reference the
  398. # affected cell, or hexadecimal colors like #ff00ff.
  399. #matches:
  400. # foreground: '#000000'
  401. # background: '#ffffff'
  402. #focused_match:
  403. # foreground: '#ffffff'
  404. # background: '#000000'
  405.  
  406. #bar:
  407. # background: '#c5c8c6'
  408. # foreground: '#1d1f21'
  409.  
  410. # Keyboard regex hints
  411. #hints:
  412. # First character in the hint label
  413. #
  414. # Allowed values are CellForeground/CellBackground, which reference the
  415. # affected cell, or hexadecimal colors like #ff00ff.
  416. #start:
  417. # foreground: '#1d1f21'
  418. # background: '#e9ff5e'
  419.  
  420. # All characters after the first one in the hint label
  421. #
  422. # Allowed values are CellForeground/CellBackground, which reference the
  423. # affected cell, or hexadecimal colors like #ff00ff.
  424. #end:
  425. # foreground: '#e9ff5e'
  426. # background: '#1d1f21'
  427.  
  428. # Line indicator
  429. #
  430. # Color used for the indicator displaying the position in history during
  431. # search and vi mode.
  432. #
  433. # By default, these will use the opposing primary color.
  434. #line_indicator:
  435. # foreground: None
  436. # background: None
  437.  
  438. # Selection colors
  439. #
  440. # Colors which should be used to draw the selection area.
  441. #
  442. # Allowed values are CellForeground/CellBackground, which reference the
  443. # affected cell, or hexadecimal colors like #ff00ff.
  444. #selection:
  445. # text: CellBackground
  446. # background: CellForeground
  447.  
  448. # Normal colors
  449. #normal:
  450. # black: '#1d1f21'
  451. # red: '#cc6666'
  452. # green: '#b5bd68'
  453. # yellow: '#f0c674'
  454. # blue: '#81a2be'
  455. # magenta: '#b294bb'
  456. # cyan: '#8abeb7'
  457. # white: '#c5c8c6'
  458.  
  459. # Bright colors
  460. #bright:
  461. # black: '#666666'
  462. # red: '#d54e53'
  463. # green: '#b9ca4a'
  464. # yellow: '#e7c547'
  465. # blue: '#7aa6da'
  466. # magenta: '#c397d8'
  467. # cyan: '#70c0b1'
  468. # white: '#eaeaea'
  469.  
  470. # Dim colors
  471. #
  472. # If the dim colors are not set, they will be calculated automatically based
  473. # on the `normal` colors.
  474. #dim:
  475. # black: '#131415'
  476. # red: '#864343'
  477. # green: '#777c44'
  478. # yellow: '#9e824c'
  479. # blue: '#556a7d'
  480. # magenta: '#75617b'
  481. # cyan: '#5b7d78'
  482. # white: '#828482'
  483.  
  484. # Indexed Colors
  485. #
  486. # The indexed colors include all colors from 16 to 256.
  487. # When these are not set, they're filled with sensible defaults.
  488. #
  489. # Example:
  490. # `- { index: 16, color: '#ff00ff' }`
  491. #
  492. #indexed_colors: []
  493.  
  494. # Transparent cell backgrounds
  495. #
  496. # Whether or not `window.opacity` applies to all cell backgrounds or only to
  497. # the default background. When set to `true` all cells will be transparent
  498. # regardless of their background color.
  499. #transparent_background_colors: false
  500.  
  501. # Bell
  502. #
  503. # The bell is rung every time the BEL control character is received.
  504. #bell:
  505. # Visual Bell Animation
  506. #
  507. # Animation effect for flashing the screen when the visual bell is rung.
  508. #
  509. # Values for `animation`:
  510. # - Ease
  511. # - EaseOut
  512. # - EaseOutSine
  513. # - EaseOutQuad
  514. # - EaseOutCubic
  515. # - EaseOutQuart
  516. # - EaseOutQuint
  517. # - EaseOutExpo
  518. # - EaseOutCirc
  519. # - Linear
  520. #animation: EaseOutExpo
  521.  
  522. # Duration of the visual bell flash in milliseconds. A `duration` of `0` will
  523. # disable the visual bell animation.
  524. #duration: 0
  525.  
  526. # Visual bell animation color.
  527. #color: '#ffffff'
  528.  
  529. # Bell Command
  530. #
  531. # This program is executed whenever the bell is rung.
  532. #
  533. # When set to `command: None`, no command will be executed.
  534. #
  535. # Example:
  536. # command:
  537. # program: notify-send
  538. # args: ["Hello, World!"]
  539. #
  540. #command: None
  541.  
  542. #selection:
  543. # This string contains all characters that are used as separators for
  544. # "semantic words" in Alacritty.
  545. #semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
  546.  
  547. # When set to `true`, selected text will be copied to the primary clipboard.
  548. #save_to_clipboard: false
  549.  
  550. #cursor:
  551. # Cursor style
  552. #style:
  553. # Cursor shape
  554. #
  555. # Values for `shape`:
  556. # - ▇ Block
  557. # - _ Underline
  558. # - | Beam
  559. #shape: Block
  560.  
  561. # Cursor blinking state
  562. #
  563. # Values for `blinking`:
  564. # - Never: Prevent the cursor from ever blinking
  565. # - Off: Disable blinking by default
  566. # - On: Enable blinking by default
  567. # - Always: Force the cursor to always blink
  568. #blinking: Off
  569.  
  570. # Vi mode cursor style
  571. #
  572. # If the vi mode cursor style is `None` or not specified, it will fall back to
  573. # the style of the active value of the normal cursor.
  574. #
  575. # See `cursor.style` for available options.
  576. #vi_mode_style: None
  577.  
  578. # Cursor blinking interval in milliseconds.
  579. #blink_interval: 750
  580.  
  581. # If this is `true`, the cursor will be rendered as a hollow box when the
  582. # window is not focused.
  583. #unfocused_hollow: true
  584.  
  585. # Thickness of the cursor relative to the cell width as floating point number
  586. # from `0.0` to `1.0`.
  587. #thickness: 0.15
  588.  
  589. # Live config reload (changes require restart)
  590. #live_config_reload: true
  591.  
  592. # Shell
  593. #
  594. # You can set `shell.program` to the path of your favorite shell, e.g.
  595. # `/bin/fish`. Entries in `shell.args` are passed unmodified as arguments to the
  596. # shell.
  597. #
  598. # Default:
  599. # - (macOS) /bin/bash --login
  600. # - (Linux/BSD) user login shell
  601. # - (Windows) powershell
  602. #shell:
  603. # program: /bin/bash
  604. # args:
  605. # - --login
  606.  
  607. # Startup directory
  608. #
  609. # Directory the shell is started in. If this is unset, or `None`, the working
  610. # directory of the parent process will be used.
  611. #working_directory: None
  612.  
  613. # Send ESC (\x1b) before characters when alt is pressed.
  614. #alt_send_esc: true
  615.  
  616. # Offer IPC using `alacritty msg` (unix only)
  617. #ipc_socket: true
  618.  
  619. #mouse:
  620. # Click settings
  621. #
  622. # The `double_click` and `triple_click` settings control the time
  623. # alacritty should wait for accepting multiple clicks as one double
  624. # or triple click.
  625. #double_click: { threshold: 300 }
  626. #triple_click: { threshold: 300 }
  627.  
  628. # If this is `true`, the cursor is temporarily hidden when typing.
  629. #hide_when_typing: false
  630.  
  631. # Regex hints
  632. #
  633. # Terminal hints can be used to find text in the visible part of the terminal
  634. # and pipe it to other applications.
  635. #hints:
  636. # Keys used for the hint labels.
  637. #alphabet: "jfkdls;ahgurieowpq"
  638.  
  639. # List with all available hints
  640. #
  641. # Each hint must have a `regex` and either an `action` or a `command` field.
  642. # The fields `mouse`, `binding` and `post_processing` are optional.
  643. #
  644. # The fields `command`, `binding.key`, `binding.mods`, `binding.mode` and
  645. # `mouse.mods` accept the same values as they do in the `key_bindings` section.
  646. #
  647. # The `mouse.enabled` field controls if the hint should be underlined while
  648. # the mouse with all `mouse.mods` keys held or the vi mode cursor is above it.
  649. #
  650. # If the `post_processing` field is set to `true`, heuristics will be used to
  651. # shorten the match if there are characters likely not to be part of the hint
  652. # (e.g. a trailing `.`). This is most useful for URIs.
  653. #
  654. # Values for `action`:
  655. # - Copy
  656. # Copy the hint's text to the clipboard.
  657. # - Paste
  658. # Paste the hint's text to the terminal or search.
  659. # - Select
  660. # Select the hint's text.
  661. # - MoveViModeCursor
  662. # Move the vi mode cursor to the beginning of the hint.
  663. #enabled:
  664. # - regex: "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
  665. # [^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+"
  666. # command: xdg-open
  667. # post_processing: true
  668. # mouse:
  669. # enabled: true
  670. # mods: None
  671. # binding:
  672. # key: U
  673. # mods: Control|Shift
  674.  
  675. # Mouse bindings
  676. #
  677. # Mouse bindings are specified as a list of objects, much like the key
  678. # bindings further below.
  679. #
  680. # To trigger mouse bindings when an application running within Alacritty
  681. # captures the mouse, the `Shift` modifier is automatically added as a
  682. # requirement.
  683. #
  684. # Each mouse binding will specify a:
  685. #
  686. # - `mouse`:
  687. #
  688. # - Middle
  689. # - Left
  690. # - Right
  691. # - Numeric identifier such as `5`
  692. #
  693. # - `action` (see key bindings for actions not exclusive to mouse mode)
  694. #
  695. # - Mouse exclusive actions:
  696. #
  697. # - ExpandSelection
  698. # Expand the selection to the current mouse cursor location.
  699. #
  700. # And optionally:
  701. #
  702. # - `mods` (see key bindings)
  703. #mouse_bindings:
  704. # - { mouse: Right, action: ExpandSelection }
  705. # - { mouse: Right, mods: Control, action: ExpandSelection }
  706. # - { mouse: Middle, mode: ~Vi, action: PasteSelection }
  707.  
  708. # Key bindings
  709. #
  710. # Key bindings are specified as a list of objects. For example, this is the
  711. # default paste binding:
  712. #
  713. # `- { key: V, mods: Control|Shift, action: Paste }`
  714. #
  715. # Each key binding will specify a:
  716. #
  717. # - `key`: Identifier of the key pressed
  718. #
  719. # - A-Z
  720. # - F1-F24
  721. # - Key0-Key9
  722. #
  723. # A full list with available key codes can be found here:
  724. # https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants
  725. #
  726. # Instead of using the name of the keys, the `key` field also supports using
  727. # the scancode of the desired key. Scancodes have to be specified as a
  728. # decimal number. This command will allow you to display the hex scancodes
  729. # for certain keys:
  730. #
  731. # `showkey --scancodes`.
  732. #
  733. # Then exactly one of:
  734. #
  735. # - `chars`: Send a byte sequence to the running application
  736. #
  737. # The `chars` field writes the specified string to the terminal. This makes
  738. # it possible to pass escape sequences. To find escape codes for bindings
  739. # like `PageUp` (`"\x1b[5~"`), you can run the command `showkey -a` outside
  740. # of tmux. Note that applications use terminfo to map escape sequences back
  741. # to keys. It is therefore required to update the terminfo when changing an
  742. # escape sequence.
  743. #
  744. # - `action`: Execute a predefined action
  745. #
  746. # - ToggleViMode
  747. # - SearchForward
  748. # Start searching toward the right of the search origin.
  749. # - SearchBackward
  750. # Start searching toward the left of the search origin.
  751. # - Copy
  752. # - Paste
  753. # - IncreaseFontSize
  754. # - DecreaseFontSize
  755. # - ResetFontSize
  756. # - ScrollPageUp
  757. # - ScrollPageDown
  758. # - ScrollHalfPageUp
  759. # - ScrollHalfPageDown
  760. # - ScrollLineUp
  761. # - ScrollLineDown
  762. # - ScrollToTop
  763. # - ScrollToBottom
  764. # - ClearHistory
  765. # Remove the terminal's scrollback history.
  766. # - Hide
  767. # Hide the Alacritty window.
  768. # - Minimize
  769. # Minimize the Alacritty window.
  770. # - Quit
  771. # Quit Alacritty.
  772. # - ToggleFullscreen
  773. # - SpawnNewInstance
  774. # Spawn a new instance of Alacritty.
  775. # - CreateNewWindow
  776. # Create a new Alacritty window from the current process.
  777. # - ClearLogNotice
  778. # Clear Alacritty's UI warning and error notice.
  779. # - ClearSelection
  780. # Remove the active selection.
  781. # - ReceiveChar
  782. # - None
  783. #
  784. # - Vi mode exclusive actions:
  785. #
  786. # - Open
  787. # Perform the action of the first matching hint under the vi mode cursor
  788. # with `mouse.enabled` set to `true`.
  789. # - ToggleNormalSelection
  790. # - ToggleLineSelection
  791. # - ToggleBlockSelection
  792. # - ToggleSemanticSelection
  793. # Toggle semantic selection based on `selection.semantic_escape_chars`.
  794. #
  795. # - Vi mode exclusive cursor motion actions:
  796. #
  797. # - Up
  798. # One line up.
  799. # - Down
  800. # One line down.
  801. # - Left
  802. # One character left.
  803. # - Right
  804. # One character right.
  805. # - First
  806. # First column, or beginning of the line when already at the first column.
  807. # - Last
  808. # Last column, or beginning of the line when already at the last column.
  809. # - FirstOccupied
  810. # First non-empty cell in this terminal row, or first non-empty cell of
  811. # the line when already at the first cell of the row.
  812. # - High
  813. # Top of the screen.
  814. # - Middle
  815. # Center of the screen.
  816. # - Low
  817. # Bottom of the screen.
  818. # - SemanticLeft
  819. # Start of the previous semantically separated word.
  820. # - SemanticRight
  821. # Start of the next semantically separated word.
  822. # - SemanticLeftEnd
  823. # End of the previous semantically separated word.
  824. # - SemanticRightEnd
  825. # End of the next semantically separated word.
  826. # - WordLeft
  827. # Start of the previous whitespace separated word.
  828. # - WordRight
  829. # Start of the next whitespace separated word.
  830. # - WordLeftEnd
  831. # End of the previous whitespace separated word.
  832. # - WordRightEnd
  833. # End of the next whitespace separated word.
  834. # - Bracket
  835. # Character matching the bracket at the cursor's location.
  836. # - SearchNext
  837. # Beginning of the next match.
  838. # - SearchPrevious
  839. # Beginning of the previous match.
  840. # - SearchStart
  841. # Start of the match to the left of the vi mode cursor.
  842. # - SearchEnd
  843. # End of the match to the right of the vi mode cursor.
  844. #
  845. # - Search mode exclusive actions:
  846. # - SearchFocusNext
  847. # Move the focus to the next search match.
  848. # - SearchFocusPrevious
  849. # Move the focus to the previous search match.
  850. # - SearchConfirm
  851. # - SearchCancel
  852. # - SearchClear
  853. # Reset the search regex.
  854. # - SearchDeleteWord
  855. # Delete the last word in the search regex.
  856. # - SearchHistoryPrevious
  857. # Go to the previous regex in the search history.
  858. # - SearchHistoryNext
  859. # Go to the next regex in the search history.
  860. #
  861. # - macOS exclusive actions:
  862. # - ToggleSimpleFullscreen
  863. # Enter fullscreen without occupying another space.
  864. #
  865. # - Linux/BSD exclusive actions:
  866. #
  867. # - CopySelection
  868. # Copy from the selection buffer.
  869. # - PasteSelection
  870. # Paste from the selection buffer.
  871. #
  872. # - `command`: Fork and execute a specified command plus arguments
  873. #
  874. # The `command` field must be a map containing a `program` string and an
  875. # `args` array of command line parameter strings. For example:
  876. # `{ program: "alacritty", args: ["-e", "vttest"] }`
  877. #
  878. # And optionally:
  879. #
  880. # - `mods`: Key modifiers to filter binding actions
  881. #
  882. # - Command
  883. # - Control
  884. # - Option
  885. # - Super
  886. # - Shift
  887. # - Alt
  888. #
  889. # Multiple `mods` can be combined using `|` like this:
  890. # `mods: Control|Shift`.
  891. # Whitespace and capitalization are relevant and must match the example.
  892. #
  893. # - `mode`: Indicate a binding for only specific terminal reported modes
  894. #
  895. # This is mainly used to send applications the correct escape sequences
  896. # when in different modes.
  897. #
  898. # - AppCursor
  899. # - AppKeypad
  900. # - Search
  901. # - Alt
  902. # - Vi
  903. #
  904. # A `~` operator can be used before a mode to apply the binding whenever
  905. # the mode is *not* active, e.g. `~Alt`.
  906. #
  907. # Bindings are always filled by default, but will be replaced when a new
  908. # binding with the same triggers is defined. To unset a default binding, it can
  909. # be mapped to the `ReceiveChar` action. Alternatively, you can use `None` for
  910. # a no-op if you do not wish to receive input characters for that binding.
  911. #
  912. # If the same trigger is assigned to multiple actions, all of them are executed
  913. # in the order they were defined in.
  914. #key_bindings:
  915. #- { key: Paste, action: Paste }
  916. #- { key: Copy, action: Copy }
  917. #- { key: L, mods: Control, action: ClearLogNotice }
  918. #- { key: L, mods: Control, mode: ~Vi|~Search, chars: "\x0c" }
  919. #- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, }
  920. #- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown }
  921. #- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, }
  922. #- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom }
  923.  
  924. # Vi Mode
  925. #- { key: Space, mods: Shift|Control, mode: ~Search, action: ToggleViMode }
  926. #- { key: Space, mods: Shift|Control, mode: Vi|~Search, action: ScrollToBottom }
  927. #- { key: Escape, mode: Vi|~Search, action: ClearSelection }
  928. #- { key: I, mode: Vi|~Search, action: ToggleViMode }
  929. #- { key: I, mode: Vi|~Search, action: ScrollToBottom }
  930. #- { key: C, mods: Control, mode: Vi|~Search, action: ToggleViMode }
  931. #- { key: Y, mods: Control, mode: Vi|~Search, action: ScrollLineUp }
  932. #- { key: E, mods: Control, mode: Vi|~Search, action: ScrollLineDown }
  933. #- { key: G, mode: Vi|~Search, action: ScrollToTop }
  934. #- { key: G, mods: Shift, mode: Vi|~Search, action: ScrollToBottom }
  935. #- { key: B, mods: Control, mode: Vi|~Search, action: ScrollPageUp }
  936. #- { key: F, mods: Control, mode: Vi|~Search, action: ScrollPageDown }
  937. #- { key: U, mods: Control, mode: Vi|~Search, action: ScrollHalfPageUp }
  938. #- { key: D, mods: Control, mode: Vi|~Search, action: ScrollHalfPageDown }
  939. #- { key: Y, mode: Vi|~Search, action: Copy }
  940. #- { key: Y, mode: Vi|~Search, action: ClearSelection }
  941. #- { key: Copy, mode: Vi|~Search, action: ClearSelection }
  942. #- { key: V, mode: Vi|~Search, action: ToggleNormalSelection }
  943. #- { key: V, mods: Shift, mode: Vi|~Search, action: ToggleLineSelection }
  944. #- { key: V, mods: Control, mode: Vi|~Search, action: ToggleBlockSelection }
  945. #- { key: V, mods: Alt, mode: Vi|~Search, action: ToggleSemanticSelection }
  946. #- { key: Return, mode: Vi|~Search, action: Open }
  947. #- { key: K, mode: Vi|~Search, action: Up }
  948. #- { key: J, mode: Vi|~Search, action: Down }
  949. #- { key: H, mode: Vi|~Search, action: Left }
  950. #- { key: L, mode: Vi|~Search, action: Right }
  951. #- { key: Up, mode: Vi|~Search, action: Up }
  952. #- { key: Down, mode: Vi|~Search, action: Down }
  953. #- { key: Left, mode: Vi|~Search, action: Left }
  954. #- { key: Right, mode: Vi|~Search, action: Right }
  955. #- { key: Key0, mode: Vi|~Search, action: First }
  956. #- { key: Key4, mods: Shift, mode: Vi|~Search, action: Last }
  957. #- { key: Key6, mods: Shift, mode: Vi|~Search, action: FirstOccupied }
  958. #- { key: H, mods: Shift, mode: Vi|~Search, action: High }
  959. #- { key: M, mods: Shift, mode: Vi|~Search, action: Middle }
  960. #- { key: L, mods: Shift, mode: Vi|~Search, action: Low }
  961. #- { key: B, mode: Vi|~Search, action: SemanticLeft }
  962. #- { key: W, mode: Vi|~Search, action: SemanticRight }
  963. #- { key: E, mode: Vi|~Search, action: SemanticRightEnd }
  964. #- { key: B, mods: Shift, mode: Vi|~Search, action: WordLeft }
  965. #- { key: W, mods: Shift, mode: Vi|~Search, action: WordRight }
  966. #- { key: E, mods: Shift, mode: Vi|~Search, action: WordRightEnd }
  967. #- { key: Key5, mods: Shift, mode: Vi|~Search, action: Bracket }
  968. #- { key: Slash, mode: Vi|~Search, action: SearchForward }
  969. #- { key: Slash, mods: Shift, mode: Vi|~Search, action: SearchBackward }
  970. #- { key: N, mode: Vi|~Search, action: SearchNext }
  971. #- { key: N, mods: Shift, mode: Vi|~Search, action: SearchPrevious }
  972.  
  973. # Search Mode
  974. #- { key: Return, mode: Search|Vi, action: SearchConfirm }
  975. #- { key: Escape, mode: Search, action: SearchCancel }
  976. #- { key: C, mods: Control, mode: Search, action: SearchCancel }
  977. #- { key: U, mods: Control, mode: Search, action: SearchClear }
  978. #- { key: W, mods: Control, mode: Search, action: SearchDeleteWord }
  979. #- { key: P, mods: Control, mode: Search, action: SearchHistoryPrevious }
  980. #- { key: N, mods: Control, mode: Search, action: SearchHistoryNext }
  981. #- { key: Up, mode: Search, action: SearchHistoryPrevious }
  982. #- { key: Down, mode: Search, action: SearchHistoryNext }
  983. #- { key: Return, mode: Search|~Vi, action: SearchFocusNext }
  984. #- { key: Return, mods: Shift, mode: Search|~Vi, action: SearchFocusPrevious }
  985.  
  986. # (Windows, Linux, and BSD only)
  987. #- { key: V, mods: Control|Shift, mode: ~Vi, action: Paste }
  988. #- { key: C, mods: Control|Shift, action: Copy }
  989. #- { key: F, mods: Control|Shift, mode: ~Search, action: SearchForward }
  990. #- { key: B, mods: Control|Shift, mode: ~Search, action: SearchBackward }
  991. #- { key: C, mods: Control|Shift, mode: Vi|~Search, action: ClearSelection }
  992. #- { key: Insert, mods: Shift, action: PasteSelection }
  993. #- { key: Key0, mods: Control, action: ResetFontSize }
  994. #- { key: Equals, mods: Control, action: IncreaseFontSize }
  995. #- { key: Plus, mods: Control, action: IncreaseFontSize }
  996. #- { key: NumpadAdd, mods: Control, action: IncreaseFontSize }
  997. #- { key: Minus, mods: Control, action: DecreaseFontSize }
  998. #- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize }
  999.  
  1000. # (Windows only)
  1001. #- { key: Return, mods: Alt, action: ToggleFullscreen }
  1002.  
  1003. # (macOS only)
  1004. #- { key: K, mods: Command, mode: ~Vi|~Search, chars: "\x0c" }
  1005. #- { key: K, mods: Command, mode: ~Vi|~Search, action: ClearHistory }
  1006. #- { key: Key0, mods: Command, action: ResetFontSize }
  1007. #- { key: Equals, mods: Command, action: IncreaseFontSize }
  1008. #- { key: Plus, mods: Command, action: IncreaseFontSize }
  1009. #- { key: NumpadAdd, mods: Command, action: IncreaseFontSize }
  1010. #- { key: Minus, mods: Command, action: DecreaseFontSize }
  1011. #- { key: NumpadSubtract, mods: Command, action: DecreaseFontSize }
  1012. #- { key: V, mods: Command, action: Paste }
  1013. #- { key: C, mods: Command, action: Copy }
  1014. #- { key: C, mods: Command, mode: Vi|~Search, action: ClearSelection }
  1015. #- { key: H, mods: Command, action: Hide }
  1016. #- { key: H, mods: Command|Alt, action: HideOtherApplications }
  1017. #- { key: M, mods: Command, action: Minimize }
  1018. #- { key: Q, mods: Command, action: Quit }
  1019. #- { key: W, mods: Command, action: Quit }
  1020. #- { key: N, mods: Command, action: SpawnNewInstance }
  1021. #- { key: F, mods: Command|Control, action: ToggleFullscreen }
  1022. #- { key: F, mods: Command, mode: ~Search, action: SearchForward }
  1023. #- { key: B, mods: Command, mode: ~Search, action: SearchBackward }
  1024.  
  1025. #debug:
  1026. # Display the time it takes to redraw each frame.
  1027. #render_timer: false
  1028.  
  1029. # Keep the log file after quitting Alacritty.
  1030. #persistent_logging: false
  1031.  
  1032. # Log level
  1033. #
  1034. # Values for `log_level`:
  1035. # - Off
  1036. # - Error
  1037. # - Warn
  1038. # - Info
  1039. # - Debug
  1040. # - Trace
  1041. #log_level: Warn
  1042.  
  1043. # Print all received window events.
  1044. #print_events: false
  1045.  
  1046. # Highlight window damage information.
  1047. #highlight_damage: false
Add Comment
Please, Sign In to add comment