diff options
| -rw-r--r-- | .config/alacritty/alacritty.yml | 72 |
1 files changed, 43 insertions, 29 deletions
diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index 90b18d8..510a63d 100644 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -26,9 +26,10 @@ import: window: # Window dimensions (changes require restart) # - # 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. + # Number of lines/columns (not pixels) in the terminal. Both lines and columns + # must be non-zero for this to take effect. 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 @@ -93,11 +94,12 @@ window: # General application class #general: Alacritty - # GTK theme variant (Linux/BSD only) + # Decorations 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. - #gtk_theme_variant: None + # Override the variant of the GTK theme/Wayland client side decorations. + # Commonly supported values are `dark` and `light`. Set this to `None` to use + # the default theme variant. + #decorations_theme_variant: None scrolling: # Maximum number of lines in the scrollback buffer. @@ -172,12 +174,6 @@ font: # x: 0 # y: 0 - # Thin stroke font rendering (macOS only) - # - # Thin strokes are suitable for retina displays, but for non-retina screens - # it is recommended to set `use_thin_strokes` to `false`. - #use_thin_strokes: true - # Use built-in font for box drawing characters. # # If `true`, Alacritty will use a custom built-in font for box drawing @@ -237,11 +233,7 @@ colors: # foreground: '#ffffff' # background: '#000000' - #bar: - # background: '#c5c8c6' - # foreground: '#1d1f21' - - # Keyboard regex hints + # Keyboard hints #hints: # First character in the hint label # @@ -269,6 +261,15 @@ colors: # foreground: None # background: None + # Footer bar + # + # Color used for the footer bar on the bottom, used by search regex input, + # hyperlink URI preview, etc. + # + #footer_bar: + # background: '#c5c8c6' + # foreground: '#1d1f21' + # Selection colors # # Colors which should be used to draw the selection area. @@ -412,6 +413,11 @@ colors: # Cursor blinking interval in milliseconds. #blink_interval: 750 + # Time after which cursor stops blinking, in seconds. + # + # Specifying '0' will disable timeout for blinking. + #blink_timeout: 5 + # If this is `true`, the cursor will be rendered as a hollow box when the # window is not focused. #unfocused_hollow: true @@ -430,8 +436,7 @@ colors: # shell. # # Default: -# - (macOS) /bin/bash --login -# - (Linux/BSD) user login shell +# - (Linux/BSD/macOS) `$SHELL` or the user's login shell, if `$SHELL` is unset # - (Windows) powershell shell: program: /bin/bash @@ -470,18 +475,22 @@ shell: # If this is `true`, the cursor is temporarily hidden when typing. #hide_when_typing: false -# Regex hints +# Hints # -# Terminal hints can be used to find text in the visible part of the terminal -# and pipe it to other applications. +# Terminal hints can be used to find text or hyperlink in the visible part of +# the terminal and pipe it to other applications. #hints: # Keys used for the hint labels. #alphabet: "jfkdls;ahgurieowpq" # List with all available hints # - # Each hint must have a `regex` and either an `action` or a `command` field. - # The fields `mouse`, `binding` and `post_processing` are optional. + # Each hint must have any of `regex` or `hyperlinks` field and either an + # `action` or a `command` field. The fields `mouse`, `binding` and + # `post_processing` are optional. + # + # The `hyperlinks` option will cause OSC 8 escape sequence hyperlinks to be + # highlighted. # # The fields `command`, `binding.key`, `binding.mods`, `binding.mode` and # `mouse.mods` accept the same values as they do in the `key_bindings` section. @@ -491,7 +500,8 @@ shell: # # If the `post_processing` field is set to `true`, heuristics will be used to # shorten the match if there are characters likely not to be part of the hint - # (e.g. a trailing `.`). This is most useful for URIs. + # (e.g. a trailing `.`). This is most useful for URIs and applies only to + # `regex` matches. # # Values for `action`: # - Copy @@ -503,8 +513,9 @@ shell: # - MoveViModeCursor # Move the vi mode cursor to the beginning of the hint. #enabled: - # - regex: "(mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\ + # - regex: "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\ # [^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+" + # hyperlinks: true # command: xdg-open # post_processing: true # mouse: @@ -633,6 +644,8 @@ shell: # - ToggleBlockSelection # - ToggleSemanticSelection # Toggle semantic selection based on `selection.semantic_escape_chars`. +# - CenterAroundViCursor +# Center view around vi mode cursor # # - Vi mode exclusive cursor motion actions: # @@ -758,9 +771,9 @@ shell: #- { key: Copy, action: Copy } #- { key: L, mods: Control, action: ClearLogNotice } #- { key: L, mods: Control, mode: ~Vi|~Search, chars: "\x0c" } - #- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, } + #- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp } #- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown } - #- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, } + #- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop } #- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom } # Vi Mode @@ -786,6 +799,7 @@ shell: #- { key: V, mods: Control, mode: Vi|~Search, action: ToggleBlockSelection } #- { key: V, mods: Alt, mode: Vi|~Search, action: ToggleSemanticSelection } #- { key: Return, mode: Vi|~Search, action: Open } + #- { key: Z, mode: Vi|~Search, action: CenterAroundViCursor } #- { key: K, mode: Vi|~Search, action: Up } #- { key: J, mode: Vi|~Search, action: Down } #- { key: H, mode: Vi|~Search, action: Left } |
