jay_lltv

alacritty.yml

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