From 2e0d93287cf41a677c06521b056e4e2986df2992 Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Thu, 13 Oct 2022 17:59:30 -0400 Subject: refactor: updated to latest alacritty config conventions --- .config/alacritty.yml | 79 ++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 63 insertions(+), 16 deletions(-) (limited to '.config') diff --git a/.config/alacritty.yml b/.config/alacritty.yml index b20e3f4..d033ba6 100644 --- a/.config/alacritty.yml +++ b/.config/alacritty.yml @@ -33,7 +33,6 @@ window: dimensions: columns: 95 lines: 28 - opacity: 1.0 # Window position (changes require restart) # @@ -65,6 +64,12 @@ window: # - buttonless: Title bar, transparent background and no title bar buttons #decorations: full + # 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. + #opacity: 1.0 + # Startup Mode (changes require restart) # # Values for `startup_mode`: @@ -89,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: dark + # 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. @@ -168,11 +174,12 @@ font: # x: 0 # y: 0 - # Thin stroke font rendering (macOS only) + # Use built-in font for box drawing characters. # - # 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 + # If `true`, Alacritty will use a custom built-in font for box drawing + # characters (Unicode points 2500 - 259f). + # + #builtin_box_drawing: true # If `true`, bold text is drawn using the bright color variants. #draw_bold_text_with_bright_colors: false @@ -258,6 +265,15 @@ font: # 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. @@ -314,6 +330,13 @@ font: # #indexed_colors: [] + # Transparent cell backgrounds + # + # Whether or not `window.opacity` applies to all cell backgrounds or only to + # the default background. When set to `true` all cells will be transparent + # regardless of their background color. + #transparent_background_colors: false + # Bell # # The bell is rung every time the BEL control character is received. @@ -394,6 +417,11 @@ font: # 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 @@ -429,6 +457,9 @@ live_config_reload: true # Send ESC (\x1b) before characters when alt is pressed. #alt_send_esc: true +# Offer IPC using `alacritty msg` (unix only) +#ipc_socket: true + #mouse: # Click settings # @@ -441,18 +472,22 @@ live_config_reload: true # 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. @@ -462,7 +497,8 @@ live_config_reload: true # # 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 @@ -476,6 +512,7 @@ live_config_reload: true #enabled: # - 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: @@ -503,7 +540,12 @@ live_config_reload: true # - Right # - Numeric identifier such as `5` # -# - `action` (see key bindings) +# - `action` (see key bindings for actions not exclusive to mouse mode) +# +# - Mouse exclusive actions: +# +# - ExpandSelection +# Expand the selection to the current mouse cursor location. # # And optionally: # @@ -578,6 +620,8 @@ mouse_bindings: # - ToggleFullscreen # - SpawnNewInstance # Spawn a new instance of Alacritty. +# - CreateNewWindow +# Create a new Alacritty window from the current process. # - ClearLogNotice # Clear Alacritty's UI warning and error notice. # - ClearSelection @@ -595,6 +639,8 @@ mouse_bindings: # - ToggleBlockSelection # - ToggleSemanticSelection # Toggle semantic selection based on `selection.semantic_escape_chars`. +# - CenterAroundViCursor +# Center view around vi mode cursor # # - Vi mode exclusive cursor motion actions: # @@ -751,6 +797,7 @@ key_bindings: #- { 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 } -- cgit v1.2.3