diff options
| -rw-r--r-- | .config/alacritty/alacritty.yml (renamed from .config/alacritty/upstream.yml) | 350 | ||||
| -rw-r--r-- | .config/alacritty/base.ovl.yml | 26 | ||||
| -rw-r--r-- | .config/alacritty/launcher.yml (renamed from .config/alacritty/launcher.ovl.yml) | 13 |
3 files changed, 264 insertions, 125 deletions
diff --git a/.config/alacritty/upstream.yml b/.config/alacritty/alacritty.yml index d9054b0..8fb1d6e 100644 --- a/.config/alacritty/upstream.yml +++ b/.config/alacritty/alacritty.yml @@ -1,5 +1,17 @@ # Configuration for Alacritty, the GPU enhanced terminal emulator. +# Import additional configuration files +# +# 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: + - ~/.config/alacritty/base.ovl.yml + - ~/.config/alacritty/papercolor_dark.color.yml + # Any items in the `env` entry below will be added as # environment variables. Some entries may override variables # set by alacritty itself. @@ -15,8 +27,9 @@ #window: # Window dimensions (changes require restart) # - # Specified in number of columns/lines, not pixels. - # If both are `0`, this setting is ignored. + # Number of lines/columns (not pixels) in the terminal. The number of columns + # must be at least `2`, while using a value of `0` for columns and lines will + # fall back to the window manager's recommended size. #dimensions: # columns: 0 # lines: 0 @@ -48,7 +61,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) @@ -65,6 +78,9 @@ # Window title #title: Alacritty + # Allow terminal applications to change Alacritty's window title. + #dynamic_title: true + # Window class (Linux/BSD only): #class: # Application instance name @@ -74,8 +90,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: @@ -137,15 +153,16 @@ # Point size #size: 11.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: 0 # 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 upwards. + # 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 @@ -168,36 +185,59 @@ # 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: '#000000' - # cursor: '#ffffff' + # text: CellBackground + # cursor: CellForeground # 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 + # + # Colors used for the search bar and match highlighting. + #search: + # Allowed values are CellForeground and CellBackground, which reference the + # affected cell, or hexadecimal colors like #ff00ff. + #matches: + # foreground: '#000000' + # background: '#ffffff' + #focused_match: + # foreground: CellBackground + # background: CellForeground + + #bar: + # background: '#c5c8c6' + # foreground: '#1d1f21' # Normal colors #normal: @@ -245,31 +285,46 @@ # #indexed_colors: [] -# Visual Bell -# -# Any time the BEL code is received, Alacritty "rings" the visual bell. Once -# rung, the terminal background will be set to white and transition back to the -# default background color. You can control the rate of this transition by -# setting the `duration` property (represented in milliseconds). You can also -# configure the transition function by setting the `animation` property. -# -# Values for `animation`: -# - Ease -# - EaseOut -# - EaseOutSine -# - EaseOutQuad -# - EaseOutCubic -# - EaseOutQuart -# - EaseOutQuint -# - EaseOutExpo -# - EaseOutCirc -# - Linear -# -# Specifying a `duration` of `0` will disable the visual bell. -#visual_bell: -# animation: EaseOutExpo -# duration: 0 -# color: '#ffffff' +# Bell +# +# The bell is rung every time the BEL control character is received. +#bell: + # Visual Bell Animation + # + # Animation effect for flashing the screen when the visual bell is rung. + # + # Values for `animation`: + # - Ease + # - EaseOut + # - EaseOutSine + # - EaseOutQuad + # - EaseOutCubic + # - EaseOutQuart + # - EaseOutQuint + # - EaseOutExpo + # - EaseOutCirc + # - Linear + #animation: EaseOutExpo + + # Duration of the visual bell flash in milliseconds. A `duration` of `0` will + # disable the visual bell animation. + #duration: 0 + + # Visual bell animation color. + #color: '#ffffff' + + # Bell Command + # + # This program is executed whenever the bell is rung. + # + # When set to `command: None`, no command will be executed. + # + # Example: + # command: + # program: notify-send + # args: ["Hello, World!"] + # + #command: None # Background opacity # @@ -278,22 +333,32 @@ #background_opacity: 1.0 #selection: + # 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. #save_to_clipboard: false -# Allow terminal applications to change Alacritty's window title. -#dynamic_title: true - #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 # @@ -303,6 +368,9 @@ # 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 @@ -316,8 +384,9 @@ # 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 @@ -338,7 +407,7 @@ # # Alacritty defaults to using the newer ConPTY backend if it is available, # since it resolves a lot of bugs and is quite a bit faster. If it is not -# available, the the WinPTY backend will be used instead. +# available, the WinPTY backend will be used instead. # # Setting this option to `true` makes Alacritty use the legacy WinPTY backend, # even if the ConPTY backend is available. @@ -362,8 +431,8 @@ #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. # @@ -377,8 +446,9 @@ # 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: None # Mouse bindings @@ -386,8 +456,9 @@ # 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: # @@ -445,60 +516,112 @@ # - `action`: Execute a predefined action # # - ToggleViMode +# - SearchForward +# Start searching toward the right of the search origin. +# - SearchBackward +# Start searching toward the left of the search origin. # - Copy # - Paste -# - PasteSelection # - IncreaseFontSize # - DecreaseFontSize # - ResetFontSize # - ScrollPageUp # - ScrollPageDown +# - ScrollHalfPageUp +# - ScrollHalfPageDown # - ScrollLineUp # - ScrollLineDown # - ScrollToTop # - ScrollToBottom # - ClearHistory +# Remove the terminal's scrollback history. # - Hide +# Hide the Alacritty window. # - Minimize +# Minimize the Alacritty window. # - Quit +# Quit Alacritty. # - ToggleFullscreen # - SpawnNewInstance +# Spawn a new instance of Alacritty. # - ClearLogNotice +# Clear Alacritty's UI warning and error notice. # - ClearSelection +# Remove the active selection. # - ReceiveChar # - None # -# (`mode: Vi` only): +# - Vi mode exclusive actions: +# # - Open +# 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`. +# +# - 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 -# - WordRight +# End of the next semantically separated word. # - WordLeft -# - WordRightEnd +# 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 -# - ToggleNormalSelection -# - ToggleLineSelection -# - ToggleBlockSelection -# - ToggleSemanticSelection -# -# (macOS only): -# - ToggleSimpleFullscreen: Enters fullscreen without occupying another space -# -# (Linux/BSD only): -# - CopySelection: Copies into selection buffer +# 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 exclusive actions: +# +# - CopySelection +# Copy from the selection buffer. +# - PasteSelection +# Paste from the selection buffer. # # - `command`: Fork and execute a specified command plus arguments # @@ -529,6 +652,7 @@ # - AppCursor # - AppKeypad # - Alt +# - Vi # # A `~` operator can be used before a mode to apply the binding whenever # the mode is *not* active, e.g. `~Alt`. @@ -539,7 +663,7 @@ # a no-op if you do not wish to receive input characters for that binding. # # If the same trigger is assigned to multiple actions, all of them are executed -# at once. +# in the order they were defined in. #key_bindings: #- { key: Paste, action: Paste } #- { key: Copy, action: Copy } @@ -556,6 +680,7 @@ #- { key: Escape, mode: Vi, action: ClearSelection } #- { key: I, mode: Vi, action: ScrollToBottom } #- { key: I, mode: Vi, action: ToggleViMode } + #- { key: C, mods: Control, mode: Vi, action: ToggleViMode } #- { key: Y, mods: Control, mode: Vi, action: ScrollLineUp } #- { key: E, mods: Control, mode: Vi, action: ScrollLineDown } #- { key: G, mode: Vi, action: ScrollToTop } @@ -593,37 +718,48 @@ #- { key: W, mods: Shift, mode: Vi, action: WordRight } #- { key: E, mods: Shift, mode: Vi, action: WordRightEnd } #- { key: Key5, mods: Shift, mode: Vi, action: Bracket } + #- { key: Slash, mode: Vi, action: SearchForward } + #- { key: Slash, mods: Shift, mode: Vi, action: SearchBackward } + #- { key: N, mode: Vi, action: SearchNext } + #- { 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: 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: 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. diff --git a/.config/alacritty/base.ovl.yml b/.config/alacritty/base.ovl.yml index 3c94561..7e07dce 100644 --- a/.config/alacritty/base.ovl.yml +++ b/.config/alacritty/base.ovl.yml @@ -2,10 +2,9 @@ window: decorations: none font: - size: 13.0 + size: 12.0 normal: - family: Iosevka SS05 - # family: Cozette Vector + family: Iosevka SS14 style: Slim bold: @@ -15,11 +14,8 @@ font: bold_italic: style: Bold Italic -visual_bell: - duration: 0 - color: '#af005f' - -background_opacity: 0.99 +draw_bold_text_with_bright_colors: true +background_opacity: 0.95 mouse: url: @@ -27,8 +23,16 @@ mouse: program: url-launcher modifiers: Control +bell: + duration: 0 + color: '#af005f' key_bindings: - - { key: 'N', mods: 'Super|Shift', action: 'SpawnNewInstance' } - - { key: 'PageUp', mods: 'Alt', action: 'ScrollPageUp' } - - { key: 'PageDown', mods: 'Alt', action: 'ScrollPageDown' } + - { key: 'N', mods: 'Super|Shift', action: 'SpawnNewInstance' } + - { key: 'PageUp', mods: 'Alt', action: 'ScrollPageUp' } + - { key: 'PageDown', mods: 'Alt', action: 'ScrollPageDown' } + - { key: 'Space', mods: 'Alt|Control', action: 'ToggleViMode' } + - { key: 'I', action: 'ToggleViMode', mode: 'Vi' } + - { key: 'Escape', action: 'ToggleViMode', mode: 'Vi' } + - { key: 'Slash', mods: 'Alt', action: 'SearchForward', mode: 'Vi' } + - { key: 'Slash', action: 'SearchBackward', mode: 'Vi' } diff --git a/.config/alacritty/launcher.ovl.yml b/.config/alacritty/launcher.yml index 91b84db..2bb591e 100644 --- a/.config/alacritty/launcher.ovl.yml +++ b/.config/alacritty/launcher.yml @@ -1,3 +1,8 @@ + +import: + - ~/.config/alacritty/base.ovl.yml + - ~/.config/alacritty/papercolor_dark.color.yml + env: GUICALL: '1' @@ -11,10 +16,4 @@ window: font: size: 13.0 -background_opacity: 0.95 - -# shell: -# program: /usr/bin/env -# args: -# - LD_LIBRARY_PATH=/usr/local/lib64 -# - mrsh +background_opacity: 0.85 |