From a7b9040bf0781d217c7b1671a6a538ece0191e30 Mon Sep 17 00:00:00 2001 From: Robert Kmiec Date: Thu, 17 Dec 2020 01:58:31 +0100 Subject: [PATCH] Alacritty: Sync with latest master Master config is sane now! --- .config/alacritty/alacritty.yml | 298 +++++++++++++++++--------------- 1 file changed, 163 insertions(+), 135 deletions(-) diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index 1e6a99e..f114217 100644 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -2,9 +2,12 @@ # Import additional configuration files # -# These configuration files will be loaded in order, replacing values in files -# loaded earlier with those loaded later in the chain. The file itself will -# always be loaded last. +# Imports are loaded in order, skipping all missing files, with the importing +# file being loaded last. If a field is already present in a previous import, it +# will be replaced. +# +# All imports must either be absolute paths starting with `/`, or paths relative +# to the user's home directory starting with `~/`. #import: # - /path/to/alacritty.yml @@ -57,7 +60,7 @@ # # Values for `decorations` (macOS only): # - transparent: Title bar, transparent background and title bar buttons - # - buttonless: Title bar, transparent background, but no title bar buttons + # - buttonless: Title bar, transparent background and no title bar buttons #decorations: full # Startup Mode (changes require restart) @@ -86,8 +89,8 @@ # GTK theme variant (Linux/BSD only) # - # Override the variant of the GTK theme. Commonly supported values are `dark` and `light`. - # Set this to `None` to use the default theme variant. + # Override the variant of the GTK theme. Commonly supported values are `dark` + # and `light`. Set this to `None` to use the default theme variant. #gtk_theme_variant: None #scrolling: @@ -149,15 +152,16 @@ font: # Point size size: 8.0 - # Offset is the extra space around each character. `offset.y` can be thought of - # as modifying the line spacing, and `offset.x` as modifying the letter spacing. + # Offset is the extra space around each character. `offset.y` can be thought + # of as modifying the line spacing, and `offset.x` as modifying the letter + # spacing. offset: x: 0 y: 1 # Glyph offset determines the locations of the glyphs within their cells with - # the default being at the bottom. Increasing `x` moves the glyph to the right, - # increasing `y` moves the glyph upward. + # the default being at the bottom. Increasing `x` moves the glyph to the + # right, increasing `y` moves the glyph upward. #glyph_offset: # x: 0 # y: 0 @@ -180,36 +184,42 @@ colors: # Bright and dim foreground colors # - # The dimmed foreground color is calculated automatically if it is not present. - # If the bright foreground color is not set, or `draw_bold_text_with_bright_colors` - # is `false`, the normal foreground color will be used. + # The dimmed foreground color is calculated automatically if it is not + # present. If the bright foreground color is not set, or + # `draw_bold_text_with_bright_colors` is `false`, the normal foreground + # color will be used. #dim_foreground: '#828482' #bright_foreground: '#eaeaea' # Cursor colors # - # Colors which should be used to draw the terminal cursor. If these are - # unset, the cursor color will be the inverse of the cell color. + # Colors which should be used to draw the terminal cursor. + # + # Allowed values are CellForeground and CellBackground, which reference the + # affected cell, or hexadecimal colors like #ff00ff. cursor: text: '0x0a0f14' cursor: '0xfdff00' # Vi mode cursor colors # - # Colors for the cursor when the vi mode is active. If these are unset, the - # cursor color will be the inverse of the cell color. + # Colors for the cursor when the vi mode is active. + # + # Allowed values are CellForeground and CellBackground, which reference the + # affected cell, or hexadecimal colors like #ff00ff. #vi_mode_cursor: - # text: '#000000' - # cursor: '#ffffff' + # text: CellBackground + # cursor: CellForeground # Selection colors # - # Colors which should be used to draw the selection area. If selection - # background is unset, selection color will be the inverse of the cell colors. - # If only text is unset the cell text color will remain the same. + # Colors which should be used to draw the selection area. + # + # Allowed values are CellForeground and CellBackground, which reference the + # affected cell, or hexadecimal colors like #ff00ff. #selection: - # text: '#eaeaea' - # background: '#404040' + # text: CellBackground + # background: CellForeground # Search colors # @@ -220,6 +230,9 @@ colors: #matches: # foreground: '#000000' # background: '#ffffff' + #focused_match: + # foreground: CellBackground + # background: CellForeground #bar: # background: '#c5c8c6' @@ -292,8 +305,8 @@ colors: # - Linear #animation: EaseOutExpo - # Duration of the visual bell flash. A `duration` of `0` will disable the - # visual bell animation. + # Duration of the visual bell flash in milliseconds. A `duration` of `0` will + # disable the visual bell animation. #duration: 0 # Visual bell animation color. @@ -310,18 +323,17 @@ colors: # program: notify-send # args: ["Hello, World!"] # - # command: - # program: notify-send - # args: ["Ring"] + #command: None # Background opacity # # Window opacity as a floating point number from `0.0` to `1.0`. # The value `0.0` is completely transparent and `1.0` is opaque. -background_opacity: 0.8 +#background_opacity: 1.0 #selection: - # This string contains all characters that are used as separators for "semantic words" in Alacritty. + # This string contains all characters that are used as separators for + # "semantic words" in Alacritty. #semantic_escape_chars: ",│`|:\"' ()[]{}<>\t" # When set to `true`, selected text will be copied to the primary clipboard. @@ -329,12 +341,23 @@ background_opacity: 0.8 #cursor: # Cursor style - # - # Values for `style`: - # - ▇ Block - # - _ Underline - # - | Beam - #style: Block + #style: + # Cursor shape + # + # Values for `shape`: + # - ▇ Block + # - _ Underline + # - | Beam + #shape: Block + + # Cursor blinking state + # + # Values for `blinking`: + # - Never: Prevent the cursor from ever blinking + # - Off: Disable blinking by default + # - On: Enable blinking by default + # - Always: Force the cursor to always blink + #blinking: Off # Vi mode cursor style # @@ -344,6 +367,9 @@ background_opacity: 0.8 # See `cursor.style` for available options. #vi_mode_style: None + # Cursor blinking interval in milliseconds. + #blink_interval: 750 + # If this is `true`, the cursor will be rendered as a hollow box when the # window is not focused. #unfocused_hollow: true @@ -357,8 +383,9 @@ background_opacity: 0.8 # Shell # -# You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`. -# Entries in `shell.args` are passed unmodified as arguments to the shell. +# You can set `shell.program` to the path of your favorite shell, e.g. +# `/bin/fish`. Entries in `shell.args` are passed unmodified as arguments to the +# shell. # # Default: # - (macOS) /bin/bash --login @@ -403,8 +430,8 @@ mouse: #url: # URL launcher # - # This program is executed when clicking on a text which is recognized as a URL. - # The URL is always added to the command as the last parameter. + # This program is executed when clicking on a text which is recognized as a + # URL. The URL is always added to the command as the last parameter. # # When set to `launcher: None`, URL launching will be disabled completely. # @@ -418,8 +445,9 @@ mouse: # URL modifiers # - # These are the modifiers that need to be held down for opening URLs when clicking - # on them. The available modifiers are documented in the key binding section. + # These are the modifiers that need to be held down for opening URLs when + # clicking on them. The available modifiers are documented in the key + # binding section. modifiers: Control # Mouse bindings @@ -427,8 +455,9 @@ mouse: # Mouse bindings are specified as a list of objects, much like the key # bindings further below. # -# To trigger mouse bindings when an application running within Alacritty captures the mouse, the -# `Shift` modifier is automatically added as a requirement. +# To trigger mouse bindings when an application running within Alacritty +# captures the mouse, the `Shift` modifier is automatically added as a +# requirement. # # Each mouse binding will specify a: # @@ -521,67 +550,73 @@ mouse: # - ReceiveChar # - None # -# (`mode: Vi` only): +# - Vi mode exclusive actions: +# # - Open -# Open URLs at the cursor location with the launcher configured in `url.launcher`. -# - Up -# Move the vi mode cursor up by one line. -# - Down -# Move the vi mode cursor down by one line. -# - Left -# Move the vi mode cursor left by one character. -# - Right -# Move the vi mode cursor right by one character. -# - First -# Move the vi mode cursor to the start of the line, searching across newlines if it is already at the beginning. -# - Last -# Move the vi mode cursor to the end of the line, searching across newlines if it is already at the end. -# - FirstOccupied -# Move the vi mode cursor to the first non-empty cell in this line, searching across newlines if it is already at the first one. -# - High -# Move the vi mode cursor to the top of the screen. -# - Middle -# Move the vi mode cursor to the middle of the screen. -# - Low -# Move the vi mode cursor to the bottom of the screen. -# - SemanticLeft -# Move the vi mode cursor to the start of the previous semantically separated word. -# - SemanticRight -# Move the vi mode cursor to the start of the next semantically separated word. -# - SemanticLeftEnd -# Move the vi mode cursor to the end of the previous semantically separated word. -# - SemanticRightEnd -# Move the vi mode cursor to the end of the next semantically separated word. -# - WordLeft -# Move the vi mode cursor to the start of the previous whitespace separated word. -# - WordRight -# Move the vi mode cursor to the start of the next whitespace separated word. -# - WordLeftEnd -# Move the vi mode cursor to the end of the previous whitespace separated word. -# - WordRightEnd -# Move the vi mode cursor to the end of the next whitespace separated word. -# - Bracket -# Move the vi mode cursor to the next character that matches the bracket at the cursor's -# current location. +# Open URLs at the cursor location with the launcher configured in +# `url.launcher`. # - ToggleNormalSelection # - ToggleLineSelection # - ToggleBlockSelection # - ToggleSemanticSelection # Toggle semantic selection based on `selection.semantic_escape_chars`. -# - SearchNext -# Jump to the beginning of the next match. -# - SearchPrevious -# Jump to the beginning of the previous match. -# - SearchStart -# Jump to the next start of a match to the left of the vi mode cursor. -# - SearchEnd -# Jump to the next end of a match to the left of the vi mode cursor. # -# (macOS only): +# - Vi mode exclusive cursor motion actions: +# +# - Up +# One line up. +# - Down +# One line down. +# - Left +# One character left. +# - Right +# One character right. +# - First +# First column, or beginning of the line when already at the first column. +# - Last +# Last column, or beginning of the line when already at the last column. +# - FirstOccupied +# First non-empty cell in this terminal row, or first non-empty cell of +# the line when already at the first cell of the row. +# - High +# Top of the screen. +# - Middle +# Center of the screen. +# - Low +# Bottom of the screen. +# - SemanticLeft +# Start of the previous semantically separated word. +# - SemanticRight +# Start of the next semantically separated word. +# - SemanticLeftEnd +# End of the previous semantically separated word. +# - SemanticRightEnd +# End of the next semantically separated word. +# - WordLeft +# Start of the previous whitespace separated word. +# - WordRight +# Start of the next whitespace separated word. +# - WordLeftEnd +# End of the previous whitespace separated word. +# - WordRightEnd +# End of the next whitespace separated word. +# - Bracket +# Character matching the bracket at the cursor's location. +# - SearchNext +# Beginning of the next match. +# - SearchPrevious +# Beginning of the previous match. +# - SearchStart +# Start of the match to the left of the vi mode cursor. +# - SearchEnd +# End of the match to the right of the vi mode cursor. +# +# - macOS exclusive actions: # - ToggleSimpleFullscreen # Enter fullscreen without occupying another space. # -# (Linux/BSD only): +# - Linux/BSD exclusive actions: +# # - CopySelection # Copy from the selection buffer. # - PasteSelection @@ -628,7 +663,7 @@ mouse: # # If the same trigger is assigned to multiple actions, all of them are executed # in the order they were defined in. -key_bindings: +#key_bindings: #- { key: Paste, action: Paste } #- { key: Copy, action: Copy } #- { key: L, mods: Control, action: ClearLogNotice } @@ -688,49 +723,42 @@ key_bindings: #- { key: N, mods: Shift, mode: Vi, action: SearchPrevious } # (Windows, Linux, and BSD only) - #- { key: V, mods: Control|Shift, action: Paste } - #- { key: C, mods: Control|Shift, action: Copy } - #- { key: F, mods: Control|Shift, action: SearchForward } - #- { key: B, mods: Control|Shift, action: SearchBackward } - #- { key: C, mods: Control|Shift, mode: Vi, action: ClearSelection } - #- { key: Insert, mods: Shift, action: PasteSelection } - #- { key: Key0, mods: Control, action: ResetFontSize } - #- { key: Equals, mods: Control, action: IncreaseFontSize } - #- { key: Add, mods: Control, action: IncreaseFontSize } - #- { key: Subtract, mods: Control, action: DecreaseFontSize } - #- { key: Minus, mods: Control, action: DecreaseFontSize } + #- { key: V, mods: Control|Shift, action: Paste } + #- { key: C, mods: Control|Shift, action: Copy } + #- { key: F, mods: Control|Shift, action: SearchForward } + #- { key: B, mods: Control|Shift, action: SearchBackward } + #- { key: C, mods: Control|Shift, mode: Vi, action: ClearSelection } + #- { key: Insert, mods: Shift, action: PasteSelection } + #- { key: Key0, mods: Control, action: ResetFontSize } + #- { key: Equals, mods: Control, action: IncreaseFontSize } + #- { key: Plus, mods: Control, action: IncreaseFontSize } + #- { key: NumpadAdd, mods: Control, action: IncreaseFontSize } + #- { key: Minus, mods: Control, action: DecreaseFontSize } + #- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize } # (Windows only) #- { key: Return, mods: Alt, action: ToggleFullscreen } # (macOS only) - #- { key: K, mods: Command, mode: ~Vi, chars: "\x0c" } - #- { key: Key0, mods: Command, action: ResetFontSize } - #- { key: Equals, mods: Command, action: IncreaseFontSize } - #- { key: Add, mods: Command, action: IncreaseFontSize } - #- { key: Minus, mods: Command, action: DecreaseFontSize } - #- { key: K, mods: Command, action: ClearHistory } - #- { key: V, mods: Command, action: Paste } - #- { key: C, mods: Command, action: Copy } - #- { key: C, mods: Command, mode: Vi, action: ClearSelection } - #- { key: H, mods: Command, action: Hide } - #- { key: M, mods: Command, action: Minimize } - #- { key: Q, mods: Command, action: Quit } - #- { key: W, mods: Command, action: Quit } - #- { key: N, mods: Command, action: SpawnNewInstance } - #- { key: F, mods: Command|Control, action: ToggleFullscreen } - #- { key: F, mods: Command, action: SearchForward } - #- { key: B, mods: Command, action: SearchBackward } - - { key: N, mods: Control|Shift, action: SpawnNewInstance } - - { key: Paste, action: Paste } - - { key: Copy, action: Copy } - - { key: L, mods: Control, action: ClearLogNotice } - - { key: L, mods: Control, chars: "\x0c" } - - { key: Home, mods: Shift, action: ScrollToTop } - - { key: End, mods: Shift, action: ScrollToBottom } - - { key: PageUp, mods: Shift, action: ScrollPageUp, mode: ~Alt } - - { key: PageDown, mods: Shift, action: ScrollPageDown, mode: ~Alt } - - { key: Space, mods: Control, chars: "\x00" } + #- { key: K, mods: Command, mode: ~Vi, chars: "\x0c" } + #- { key: Key0, mods: Command, action: ResetFontSize } + #- { key: Equals, mods: Command, action: IncreaseFontSize } + #- { key: Plus, mods: Command, action: IncreaseFontSize } + #- { key: NumpadAdd, mods: Command, action: IncreaseFontSize } + #- { key: Minus, mods: Command, action: DecreaseFontSize } + #- { key: NumpadSubtract, mods: Command, action: DecreaseFontSize } + #- { key: K, mods: Command, action: ClearHistory } + #- { key: V, mods: Command, action: Paste } + #- { key: C, mods: Command, action: Copy } + #- { key: C, mods: Command, mode: Vi, action: ClearSelection } + #- { key: H, mods: Command, action: Hide } + #- { key: M, mods: Command, action: Minimize } + #- { key: Q, mods: Command, action: Quit } + #- { key: W, mods: Command, action: Quit } + #- { key: N, mods: Command, action: SpawnNewInstance } + #- { key: F, mods: Command|Control, action: ToggleFullscreen } + #- { key: F, mods: Command, action: SearchForward } + #- { key: B, mods: Command, action: SearchBackward } #debug: # Display the time it takes to redraw each frame.