Configuration file for alacritty
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

875 lines
23 KiB

  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: 0
  20. lines: 0
  21. # Window position (changes require restart)
  22. #
  23. # Specified in number of pixels.
  24. # If the position is not set, the window manager will handle the placement.
  25. #position:
  26. # x: 0
  27. # y: 0
  28. # Window padding (changes require restart)
  29. #
  30. # Blank space added around the window in pixels. This padding is scaled
  31. # by DPI and the specified value is always added at both opposing sides.
  32. padding:
  33. x: 6
  34. y: 6
  35. # Spread additional padding evenly around the terminal content.
  36. dynamic_padding: false
  37. # Background opacity
  38. #
  39. # Window opacity as a floating point number from `0.0` to `1.0`.
  40. # The value `0.0` is completely transparent and `1.0` is opaque.
  41. opacity: 0.0
  42. # opacity: 0.80
  43. # Window decorations
  44. #
  45. # Values for `decorations`:
  46. # - full: Borders and title bar
  47. # - none: Neither borders nor title bar
  48. #
  49. # Values for `decorations` (macOS only):
  50. # - transparent: Title bar, transparent background and title bar buttons
  51. # - buttonless: Title bar, transparent background, but no title bar buttons
  52. decorations: none
  53. # Startup Mode (changes require restart)
  54. #
  55. # Values for `startup_mode`:
  56. # - Windowed
  57. # - Maximized
  58. # - Fullscreen
  59. #
  60. # Values for `startup_mode` (macOS only):
  61. # - SimpleFullscreen
  62. startup_mode: Maximized
  63. # Window title
  64. title: Alacritty
  65. # Window class (Linux/BSD only):
  66. class:
  67. # Application instance name
  68. instance: Alacritty
  69. # General application class
  70. general: Alacritty
  71. # GTK theme variant (Linux/BSD only)
  72. #
  73. # Override the variant of the GTK theme. Commonly supported values are `dark` and `light`.
  74. # Set this to `None` to use the default theme variant.
  75. #gtk_theme_variant: None
  76. scrolling:
  77. # Maximum number of lines in the scrollback buffer.
  78. # Specifying '0' will disable scrolling.
  79. history: 5000
  80. # Number of lines the viewport will move for every line scrolled when
  81. # scrollback is enabled (history > 0).
  82. #multiplier: 3
  83. # Scroll to the bottom when new text is written to the terminal.
  84. #auto_scroll: false
  85. # Spaces per Tab (changes require restart)
  86. #
  87. # This setting defines the width of a tab in cells.
  88. #
  89. # Some applications, like Emacs, rely on knowing about the width of a tab.
  90. # To prevent unexpected behavior in these applications, it's also required to
  91. # change the `it` value in terminfo when altering this setting.
  92. #tabspaces: 8
  93. # Font configuration
  94. font:
  95. # Normal (roman) font face
  96. normal:
  97. # Font family
  98. #
  99. # Default:
  100. # - (macOS) Menlo
  101. # - (Linux/BSD) monospace
  102. # - (Windows) Consolas
  103. family: Source Code Pro
  104. # family: CodeNewRoman Nerd Font
  105. # family: RobotoMono Nerd Font
  106. # family: Hack
  107. # family: JetBrains Mono
  108. # family: UbuntuMono Nerd Font
  109. # family: Monofur Nerd Font
  110. # family: TerminessTTF Nerd Font
  111. # family: Mononoki Nerd Font
  112. # The `style` can be specified to pick a specific face.
  113. style: Regular
  114. # Bold font face
  115. bold:
  116. # Font family
  117. #
  118. # If the bold family is not specified, it will fall back to the
  119. # value specified for the normal font.
  120. family: Source Code Pro
  121. # family: CodeNewRoman Nerd Font
  122. # family: RobotoMono Nerd Font
  123. # family: Hack
  124. # family: JetBrains Mono
  125. # family: UbuntuMono Nerd Font
  126. # family: Monofur Nerd Font
  127. # family: TerminessTTF Nerd Font
  128. # family: Mononoki Nerd Font
  129. # The `style` can be specified to pick a specific face.
  130. style: Bold
  131. # Italic font face
  132. italic:
  133. # Font family
  134. #
  135. # If the italic family is not specified, it will fall back to the
  136. # value specified for the normal font.
  137. family: Source Code Pro
  138. # family: CodeNewRoman Nerd Font
  139. # family: RobotoMono Nerd Font
  140. # family: Hack
  141. # family: JetBrains Mono
  142. # family: UbuntuMono Nerd Font
  143. # family: Monofuritalic Nerd Font Mono
  144. # family: TerminessTTF Nerd Font
  145. # family: Mononoki Nerd Font
  146. # The `style` can be specified to pick a specific face.
  147. style: Italic
  148. # Bold italic font face
  149. bold_italic:
  150. # Font family
  151. #
  152. # If the bold italic family is not specified, it will fall back to the
  153. # value specified for the normal font.
  154. family: Source Code Pro
  155. # family: CodeNewRoman Nerd Font
  156. # family: RobotoMono Nerd Font
  157. # family: Hack
  158. # family: JetBrains Mono
  159. # family: UbuntuMono Nerd Font
  160. # family: Monofuritalic Nerd Font Mono
  161. # family: TerminessTTF Nerd Font
  162. # family: Mononoki Nerd Font
  163. # The `style` can be specified to pick a specific face.
  164. style: Bold Italic
  165. # Point size
  166. size: 18.0
  167. # Offset is the extra space around each character. `offset.y` can be thought of
  168. # as modifying the line spacing, and `offset.x` as modifying the letter spacing.
  169. offset:
  170. x: 0
  171. y: 1
  172. # Glyph offset determines the locations of the glyphs within their cells with
  173. # the default being at the bottom. Increasing `x` moves the glyph to the right,
  174. # increasing `y` moves the glyph upwards.
  175. #glyph_offset:
  176. # x: 0
  177. # y: 0
  178. # Thin stroke font rendering (macOS only)
  179. #
  180. # Thin strokes are suitable for retina displays, but for non-retina screens
  181. # it is recommended to set `use_thin_strokes` to `false`
  182. #
  183. # macOS >= 10.14.x:
  184. #
  185. # If the font quality on non-retina display looks bad then set
  186. # `use_thin_strokes` to `true` and enable font smoothing by running the
  187. # following command:
  188. # `defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO`
  189. #
  190. # This is a global setting and will require a log out or restart to take
  191. # effect.
  192. #use_thin_strokes: true
  193. # If `true`, bold text is drawn using the bright color variants.
  194. draw_bold_text_with_bright_colors: true
  195. # Testing transparent
  196. #transparent_background_colors: true
  197. background_opacity: 0.55
  198. #######################################
  199. ## START OF COLOR SCHEMES ##
  200. #######################################
  201. schemes:
  202. ### Doom One ###
  203. DoomOne: &DoomOne
  204. primary:
  205. background: '#282c34'
  206. foreground: '#bbc2cf'
  207. cursor:
  208. text: CellBackground
  209. cursor: '#528bff'
  210. selection:
  211. text: CellForeground
  212. background: '#3e4451'
  213. normal:
  214. black: '#1c1f24'
  215. red: '#ff6c6b'
  216. green: '#98be65'
  217. yellow: '#da8548'
  218. blue: '#51afef'
  219. magenta: '#c678dd'
  220. cyan: '#5699af'
  221. white: '#202328'
  222. bright:
  223. black: '#5b6268'
  224. red: '#da8548'
  225. green: '#4db5bd'
  226. yellow: '#ecbe7b'
  227. blue: '#3071db' # This is 2257a0 in Doom Emacs but I lightened it.
  228. magenta: '#a9a1e1'
  229. cyan: '#46d9ff'
  230. white: '#dfdfdf'
  231. ### Dracula ###
  232. Dracula: &Dracula
  233. primary:
  234. background: '#282a36'
  235. foreground: '#f8f8f2'
  236. cursor:
  237. text: CellBackground
  238. cursor: CellForeground
  239. vi_mode_cursor:
  240. text: CellBackground
  241. cursor: CellForeground
  242. search:
  243. matches:
  244. foreground: '#44475a'
  245. background: '#50fa7b'
  246. focused_match:
  247. foreground: '#44475a'
  248. background: '#ffb86c'
  249. bar:
  250. background: '#282a36'
  251. foreground: '#f8f8f2'
  252. line_indicator:
  253. foreground: None
  254. background: None
  255. selection:
  256. text: CellForeground
  257. background: '#44475a'
  258. normal:
  259. black: '#000000'
  260. red: '#ff5555'
  261. green: '#50fa7b'
  262. yellow: '#f1fa8c'
  263. blue: '#bd93f9'
  264. magenta: '#ff79c6'
  265. cyan: '#8be9fd'
  266. white: '#bfbfbf'
  267. bright:
  268. black: '#4d4d4d'
  269. red: '#ff6e67'
  270. green: '#5af78e'
  271. yellow: '#f4f99d'
  272. blue: '#caa9fa'
  273. magenta: '#ff92d0'
  274. cyan: '#9aedfe'
  275. white: '#e6e6e6'
  276. dim:
  277. black: '#14151b'
  278. red: '#ff2222'
  279. green: '#1ef956'
  280. yellow: '#ebf85b'
  281. blue: '#4d5b86'
  282. magenta: '#ff46b0'
  283. cyan: '#59dffc'
  284. white: '#e6e6d1'
  285. ### Gruvbox dark ###
  286. GruvboxDark: &GruvboxDark
  287. # Default colors
  288. primary:
  289. # hard contrast: background = '0x1d2021'
  290. background: '#282828'
  291. # soft contrast: background = '0x32302f'
  292. foreground: '#ebdbb2'
  293. # Normal colors
  294. normal:
  295. black: '#282828'
  296. red: '#cc241d'
  297. green: '#98971a'
  298. yellow: '#d79921'
  299. blue: '#458588'
  300. magenta: '#b16286'
  301. cyan: '#689d6a'
  302. white: '#a89984'
  303. # Bright colors
  304. bright:
  305. black: '#928374'
  306. red: '#fb4934'
  307. green: '#b8bb26'
  308. yellow: '#fabd2f'
  309. blue: '#83a598'
  310. magenta: '#d3869b'
  311. cyan: '#8ec07c'
  312. white: '#ebdbb2'
  313. ### Monokai ###
  314. MonokaiPro: &MonokaiPro
  315. # Default colors
  316. primary:
  317. background: '#2D2A2E'
  318. foreground: '#FCFCFA'
  319. # Normal colors
  320. normal:
  321. black: '#403E41'
  322. red: '#FF6188'
  323. green: '#A9DC76'
  324. yellow: '#FFD866'
  325. blue: '#FC9867'
  326. magenta: '#AB9DF2'
  327. cyan: '#78DCE8'
  328. white: '#FCFCFA'
  329. # Bright colors
  330. bright:
  331. black: '#727072'
  332. red: '#FF6188'
  333. green: '#A9DC76'
  334. yellow: '#FFD866'
  335. blue: '#FC9867'
  336. magenta: '#AB9DF2'
  337. cyan: '#78DCE8'
  338. white: '#FCFCFA'
  339. ### Nord ###
  340. Nord: &Nord
  341. # Default colors
  342. primary:
  343. background: '#2E3440'
  344. foreground: '#D8DEE9'
  345. # Normal colors
  346. normal:
  347. black: '#3B4252'
  348. red: '#BF616A'
  349. green: '#A3BE8C'
  350. yellow: '#EBCB8B'
  351. blue: '#81A1C1'
  352. magenta: '#B48EAD'
  353. cyan: '#88C0D0'
  354. white: '#E5E9F0'
  355. # Bright colors
  356. bright:
  357. black: '#4C566A'
  358. red: '#BF616A'
  359. green: '#A3BE8C'
  360. yellow: '#EBCB8B'
  361. blue: '#81A1C1'
  362. magenta: '#B48EAD'
  363. cyan: '#8FBCBB'
  364. white: '#ECEFF4'
  365. ### Oceanic Next ###
  366. OceanicNext: &OceanicNext
  367. # Default colors
  368. primary:
  369. background: '#1b2b34'
  370. foreground: '#d8dee9'
  371. # Colors the cursor will use if `custom_cursor_colors` is true
  372. cursor:
  373. text: '#1b2b34'
  374. cursor: '#ffffff'
  375. # Normal colors
  376. normal:
  377. black: '#343d46'
  378. red: '#EC5f67'
  379. green: '#99C794'
  380. yellow: '#FAC863'
  381. blue: '#6699cc'
  382. magenta: '#c594c5'
  383. cyan: '#5fb3b3'
  384. white: '#d8dee9'
  385. # Bright colors
  386. bright:
  387. black: '#343d46'
  388. red: '#EC5f67'
  389. green: '#99C794'
  390. yellow: '#FAC863'
  391. blue: '#6699cc'
  392. magenta: '#c594c5'
  393. cyan: '#5fb3b3'
  394. white: '#d8dee9'
  395. ### Palenight ###
  396. Palenight: &Palenight
  397. # Default colors
  398. primary:
  399. background: '#292d3e'
  400. foreground: '#d0d0d0'
  401. # Normal colors
  402. normal:
  403. black: '#292d3e'
  404. red: '#f07178'
  405. green: '#c3e88d'
  406. yellow: '#ffcb6b'
  407. blue: '#82aaff'
  408. magenta: '#c792ea'
  409. cyan: '#89ddff'
  410. white: '#d0d0d0'
  411. # Bright colors
  412. bright:
  413. black: '#434758'
  414. red: '#ff8b92'
  415. green: '#ddffa7'
  416. yellow: '#ffe585'
  417. blue: '#9cc4ff'
  418. magenta: '#e1acff'
  419. cyan: '#a3f7ff'
  420. white: '#ffffff'
  421. ### Solarized Dark ###
  422. SolarizedDark: &SolarizedDark
  423. # Default colors
  424. primary:
  425. background: '#002b36' # base03
  426. foreground: '#839496' # base0
  427. # Cursor colors
  428. cursor:
  429. text: '#002b36' # base03
  430. cursor: '#839496' # base0
  431. # Normal colors
  432. normal:
  433. black: '#073642' # base02
  434. red: '#dc322f' # red
  435. green: '#859900' # green
  436. yellow: '#b58900' # yellow
  437. blue: '#268bd2' # blue
  438. magenta: '#d33682' # magenta
  439. cyan: '#2aa198' # cyan
  440. white: '#eee8d5' # base2
  441. # Bright colors
  442. bright:
  443. black: '#002b36' # base03
  444. red: '#cb4b16' # orange
  445. green: '#586e75' # base01
  446. yellow: '#657b83' # base00
  447. blue: '#839496' # base0
  448. magenta: '#6c71c4' # violet
  449. cyan: '#93a1a1' # base1
  450. white: '#fdf6e3' # base3
  451. ### Solarized Light ###
  452. SolarizedLight: &SolarizedLight
  453. # Default colors
  454. primary:
  455. background: '#fdf6e3' # base3
  456. foreground: '#657b83' # base00
  457. # Cursor colors
  458. cursor:
  459. text: '#fdf6e3' # base3
  460. cursor: '#657b83' # base00
  461. # Normal colors
  462. normal:
  463. black: '#073642' # base02
  464. red: '#dc322f' # red
  465. green: '#859900' # green
  466. yellow: '#b58900' # yellow
  467. blue: '#268bd2' # blue
  468. magenta: '#d33682' # magenta
  469. cyan: '#2aa198' # cyan
  470. white: '#eee8d5' # base2
  471. # Bright colors
  472. bright:
  473. black: '#002b36' # base03
  474. red: '#cb4b16' # orange
  475. green: '#586e75' # base01
  476. yellow: '#657b83' # base00
  477. blue: '#839496' # base0
  478. magenta: '#6c71c4' # violet
  479. cyan: '#93a1a1' # base1
  480. white: '#fdf6e3' # base3
  481. ### Tomorrow Night ###
  482. TomorrowNight: &TomorrowNight
  483. # Default colors
  484. primary:
  485. background: '#1d1f21'
  486. foreground: '#c5c8c6'
  487. # Colors the cursor will use if `custom_cursor_colors` is true
  488. cursor:
  489. text: '#1d1f21'
  490. cursor: '#ffffff'
  491. # Normal colors
  492. normal:
  493. black: '#1d1f21'
  494. red: '#cc6666'
  495. green: '#b5bd68'
  496. yellow: '#e6c547'
  497. blue: '#81a2be'
  498. magenta: '#b294bb'
  499. cyan: '#70c0ba'
  500. white: '#373b41'
  501. # Bright colors
  502. bright:
  503. black: '#666666'
  504. red: '#ff3334'
  505. green: '#9ec400'
  506. yellow: '#f0c674'
  507. blue: '#81a2be'
  508. magenta: '#b77ee0'
  509. cyan: '#54ced6'
  510. white: '#282a2e'
  511. ######################################################################
  512. ## SET THEME: Choose ONE color scheme from those in the above list. ##
  513. ## ###################################################################
  514. # Available themes are:
  515. # *DoomOne
  516. # *Dracula
  517. # *GruvboxDark
  518. # *MonokaiPro
  519. # *Nord
  520. # *OceanicNext
  521. # *Palenight
  522. # *SolarizedLight
  523. # *SolarizedDark
  524. # *TomorrowNight
  525. colors: *Dracula
  526. #######################################
  527. ## END OF COLOR SCHEMES ##
  528. #######################################
  529. # Visual Bell
  530. #
  531. # Any time the BEL code is received, Alacritty "rings" the visual bell. Once
  532. # rung, the terminal background will be set to white and transition back to the
  533. # default background color. You can control the rate of this transition by
  534. # setting the `duration` property (represented in milliseconds). You can also
  535. # configure the transition function by setting the `animation` property.
  536. #
  537. # Values for `animation`:
  538. # - Ease
  539. # - EaseOut
  540. # - EaseOutSine
  541. # - EaseOutQuad
  542. # - EaseOutCubic
  543. # - EaseOutQuart
  544. # - EaseOutQuint
  545. # - EaseOutExpo
  546. # - EaseOutCirc
  547. # - Linear
  548. #
  549. # Specifying a `duration` of `0` will disable the visual bell.
  550. #visual_bell:
  551. # animation: EaseOutExpo
  552. # duration: 0
  553. # color: '#ffffff'
  554. #selection:
  555. #semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
  556. # When set to `true`, selected text will be copied to the primary clipboard.
  557. #save_to_clipboard: false
  558. # Allow terminal applications to change Alacritty's window title.
  559. #dynamic_title: true
  560. #cursor:
  561. # Cursor style
  562. #
  563. # Values for `style`:
  564. # - ▇ Block
  565. # - _ Underline
  566. # - | Beam
  567. #style: Block
  568. # If this is `true`, the cursor will be rendered as a hollow box when the
  569. # window is not focused.
  570. #unfocused_hollow: true
  571. # Live config reload (changes require restart)
  572. #live_config_reload: true
  573. # Shell
  574. #
  575. # You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`.
  576. # Entries in `shell.args` are passed unmodified as arguments to the shell.
  577. #
  578. # Default:
  579. # - (macOS) /bin/bash --login
  580. # - (Linux/BSD) user login shell
  581. # - (Windows) powershell
  582. #shell:
  583. # program: /bin/bash
  584. # args:
  585. # - --login
  586. # Startup directory
  587. #
  588. # Directory the shell is started in. If this is unset, or `None`, the working
  589. # directory of the parent process will be used.
  590. #working_directory: None
  591. # WinPTY backend (Windows only)
  592. #
  593. # Alacritty defaults to using the newer ConPTY backend if it is available,
  594. # since it resolves a lot of bugs and is quite a bit faster. If it is not
  595. # available, the the WinPTY backend will be used instead.
  596. #
  597. # Setting this option to `true` makes Alacritty use the legacy WinPTY backend,
  598. # even if the ConPTY backend is available.
  599. #winpty_backend: false
  600. # Send ESC (\x1b) before characters when alt is pressed.
  601. #alt_send_esc: true
  602. #debug:
  603. # Display the time it takes to redraw each frame.
  604. #render_timer: false
  605. # Keep the log file after quitting Alacritty.
  606. #persistent_logging: false
  607. # Log level
  608. #
  609. # Values for `log_level`:
  610. # - None
  611. # - Error
  612. # - Warn
  613. # - Info
  614. # - Debug
  615. # - Trace
  616. #log_level: Warn
  617. # Print all received window events.
  618. #print_events: false
  619. # Record all characters and escape sequences as test data.
  620. #ref_test: false
  621. #mouse:
  622. # Click settings
  623. #
  624. # The `double_click` and `triple_click` settings control the time
  625. # alacritty should wait for accepting multiple clicks as one double
  626. # or triple click.
  627. #double_click: { threshold: 300 }
  628. #triple_click: { threshold: 300 }
  629. # If this is `true`, the cursor is temporarily hidden when typing.
  630. #hide_when_typing: false
  631. #url:
  632. # URL launcher
  633. #
  634. # This program is executed when clicking on a text which is recognized as a URL.
  635. # The URL is always added to the command as the last parameter.
  636. #
  637. # When set to `None`, URL launching will be disabled completely.
  638. #
  639. # Default:
  640. # - (macOS) open
  641. # - (Linux/BSD) xdg-open
  642. # - (Windows) explorer
  643. #launcher:
  644. # program: xdg-open
  645. # args: []
  646. # URL modifiers
  647. #
  648. # These are the modifiers that need to be held down for opening URLs when clicking
  649. # on them. The available modifiers are documented in the key binding section.
  650. #modifiers: None
  651. # Mouse bindings
  652. #
  653. # Mouse bindings are specified as a list of objects, much like the key
  654. # bindings further below.
  655. #
  656. # Each mouse binding will specify a:
  657. #
  658. # - `mouse`:
  659. #
  660. # - Middle
  661. # - Left
  662. # - Right
  663. # - Numeric identifier such as `5`
  664. #
  665. # - `action` (see key bindings)
  666. #
  667. # And optionally:
  668. #
  669. # - `mods` (see key bindings)
  670. #mouse_bindings:
  671. # - { mouse: Middle, action: PasteSelection }
  672. # Key bindings
  673. #
  674. # Key bindings are specified as a list of objects. For example, this is the
  675. # default paste binding:
  676. #
  677. # `- { key: V, mods: Control|Shift, action: Paste }`
  678. #
  679. # Each key binding will specify a:
  680. #
  681. # - `key`: Identifier of the key pressed
  682. #
  683. # - A-Z
  684. # - F1-F24
  685. # - Key0-Key9
  686. #
  687. # A full list with available key codes can be found here:
  688. # https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants
  689. #
  690. # Instead of using the name of the keys, the `key` field also supports using
  691. # the scancode of the desired key. Scancodes have to be specified as a
  692. # decimal number. This command will allow you to display the hex scancodes
  693. # for certain keys:
  694. #
  695. # `showkey --scancodes`.
  696. #
  697. # Then exactly one of:
  698. #
  699. # - `chars`: Send a byte sequence to the running application
  700. #
  701. # The `chars` field writes the specified string to the terminal. This makes
  702. # it possible to pass escape sequences. To find escape codes for bindings
  703. # like `PageUp` (`"\x1b[5~"`), you can run the command `showkey -a` outside
  704. # of tmux. Note that applications use terminfo to map escape sequences back
  705. # to keys. It is therefore required to update the terminfo when changing an
  706. # escape sequence.
  707. #
  708. # - `action`: Execute a predefined action
  709. #
  710. # - Copy
  711. # - Paste
  712. # - PasteSelection
  713. # - IncreaseFontSize
  714. # - DecreaseFontSize
  715. # - ResetFontSize
  716. # - ScrollPageUp
  717. # - ScrollPageDown
  718. # - ScrollLineUp
  719. # - ScrollLineDown
  720. # - ScrollToTop
  721. # - ScrollToBottom
  722. # - ClearHistory
  723. # - Hide
  724. # - Minimize
  725. # - Quit
  726. # - ToggleFullscreen
  727. # - SpawnNewInstance
  728. # - ClearLogNotice
  729. # - ReceiveChar
  730. # - None
  731. #
  732. # (macOS only):
  733. # - ToggleSimpleFullscreen: Enters fullscreen without occupying another space
  734. #
  735. # - `command`: Fork and execute a specified command plus arguments
  736. #
  737. # The `command` field must be a map containing a `program` string and an
  738. # `args` array of command line parameter strings. For example:
  739. # `{ program: "alacritty", args: ["-e", "vttest"] }`
  740. #
  741. # And optionally:
  742. #
  743. # - `mods`: Key modifiers to filter binding actions
  744. #
  745. # - Command
  746. # - Control
  747. # - Option
  748. # - Super
  749. # - Shift
  750. # - Alt
  751. #
  752. # Multiple `mods` can be combined using `|` like this:
  753. # `mods: Control|Shift`.
  754. # Whitespace and capitalization are relevant and must match the example.
  755. #
  756. # - `mode`: Indicate a binding for only specific terminal reported modes
  757. #
  758. # This is mainly used to send applications the correct escape sequences
  759. # when in different modes.
  760. #
  761. # - AppCursor
  762. # - AppKeypad
  763. # - Alt
  764. #
  765. # A `~` operator can be used before a mode to apply the binding whenever
  766. # the mode is *not* active, e.g. `~Alt`.
  767. #
  768. # Bindings are always filled by default, but will be replaced when a new
  769. # binding with the same triggers is defined. To unset a default binding, it can
  770. # be mapped to the `ReceiveChar` action. Alternatively, you can use `None` for
  771. # a no-op if you do not wish to receive input characters for that binding.
  772. key_bindings:
  773. # (Windows, Linux, and BSD only)
  774. - { key: V, mods: Control|Shift, action: Paste }
  775. - { key: C, mods: Control|Shift, action: Copy }
  776. - { key: Insert, mods: Shift, action: PasteSelection }
  777. - { key: Key0, mods: Control, action: ResetFontSize }
  778. - { key: Equals, mods: Control, action: IncreaseFontSize }
  779. - { key: Plus, mods: Control, action: IncreaseFontSize }
  780. - { key: Minus, mods: Control, action: DecreaseFontSize }
  781. - { key: F11, mods: None, action: ToggleFullscreen }
  782. - { key: Paste, mods: None, action: Paste }
  783. - { key: Copy, mods: None, action: Copy }
  784. - { key: L, mods: Control, action: ClearLogNotice }
  785. - { key: L, mods: Control, chars: "\x0c" }
  786. - { key: PageUp, mods: None, action: ScrollPageUp, mode: ~Alt }
  787. - { key: PageDown, mods: None, action: ScrollPageDown, mode: ~Alt }
  788. - { key: Home, mods: Shift, action: ScrollToTop, mode: ~Alt }
  789. - { key: End, mods: Shift, action: ScrollToBottom, mode: ~Alt }