From 736d32e48f1c69521b6d65e2d64261a544d63afe Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 11 Oct 2023 11:26:28 +0100 Subject: Alacritty - a new config file format Includes the use of terminus font which needs to be installed --- alacritty.yml | 200 ++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 110 insertions(+), 90 deletions(-) diff --git a/alacritty.yml b/alacritty.yml index 313be4b..62a4759 100644 --- a/alacritty.yml +++ b/alacritty.yml @@ -8,8 +8,8 @@ # # All imports must either be absolute paths starting with `/`, or paths relative # to the user's home directory starting with `~/`. -# import: -# - ~/.config/alacritty/themes/themes/afterglow.yaml +#import: +# - /path/to/alacritty.yml # Any items in the `env` entry below will be added as # environment variables. Some entries may override variables @@ -23,7 +23,7 @@ # available, otherwise `xterm-256color` is used. #TERM: alacritty -window: +#window: # Window dimensions (changes require restart) # # Number of lines/columns (not pixels) in the terminal. Both lines and columns @@ -62,13 +62,13 @@ window: # Values for `decorations` (macOS only): # - transparent: Title bar, transparent background and title bar buttons # - buttonless: Title bar, transparent background and no title bar buttons - decorations: none + #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 + #opacity: 1.0 # Startup Mode (changes require restart) # @@ -94,16 +94,24 @@ window: # General application class #general: Alacritty - # Decorations theme variant (Linux/BSD only) + # Decorations theme variant # - # 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. + # Override the variant of the System theme/GTK theme/Wayland client side + # decorations. Commonly supported values are `Dark`, `Light`, and `None` for + # auto pick-up. Set this to `None` to use the default theme variant. #decorations_theme_variant: None -# themes - get from https://github.com/alacritty/alacritty-theme -import: - - ~/.config/alacritty/themes/themes/rose-pine.yaml + # Resize increments + # + # Prefer resizing window by discrete steps equal to cell dimensions. + #resize_increments: false + + # Make `Option` key behave as `Alt` (macOS only): + # - OnlyLeft + # - OnlyRight + # - Both + # - None (default) + #option_as_alt: None #scrolling: # Maximum number of lines in the scrollback buffer. @@ -115,20 +123,17 @@ import: # Font configuration font: - normal: - family: Iosevka - style: Regular - size: 12.0 -#font: # Normal (roman) font face - #normal: + normal: # Font family # # Default: # - (macOS) Menlo # - (Linux/BSD) monospace # - (Windows) Consolas - #family: Iovsevka Regular + #family: Iosevka Nerd Font + #family: Hack Nerd Font Mono + family: Terminus # The `style` can be specified to pick a specific face. #style: Regular @@ -139,10 +144,10 @@ font: # # If the bold family is not specified, it will fall back to the # value specified for the normal font. - #family: Classic Console Neue + #family: monospace # The `style` can be specified to pick a specific face. - #style: Regular + #style: Bold # Italic font face #italic: @@ -167,7 +172,7 @@ font: #style: Bold Italic # Point size - #size: 12.0 + size: 9 # 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 @@ -191,16 +196,16 @@ font: #builtin_box_drawing: true # If `true`, bold text is drawn using the bright color variants. -draw_bold_text_with_bright_colors: true +#draw_bold_text_with_bright_colors: false # Colors (Tomorrow Night) colors: # Default colors primary: - #background: '#1d1f21' - # background: '0x151718' - # # foreground: '0xd6d6d6' - # foreground: '0xffffff' + # background: '#1d1f21' + background: '#000000' + # foreground: '#c5c8c6' + foreground: '#ffffff' # Bright and dim foreground colors # @@ -217,10 +222,9 @@ colors: # # Allowed values are CellForeground/CellBackground, which reference the # affected cell, or hexadecimal colors like #ff00ff. - cursor: - text: CellBackground + #cursor: + # text: CellBackground # cursor: CellForeground - cursor: '#fc55bf' # Vi mode cursor colors # @@ -228,9 +232,9 @@ colors: # # Allowed values are CellForeground/CellBackground, which reference the # affected cell, or hexadecimal colors like #ff00ff. - vi_mode_cursor: - text: CellBackground - cursor: CellForeground + #vi_mode_cursor: + # text: CellBackground + # cursor: CellForeground # Search colors # @@ -247,6 +251,18 @@ colors: # Keyboard hints #hints: + # hints stuff from Documents/Notes/Technotes/Linux/Git_commit_hash_hints_with_Alacritty.txt +hints: + enabled: + - regex: "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\ + [^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+" + mouse: + enabled: true + post_processing: true + action: Copy + binding: + key: U + mods: Control|Shift # First character in the hint label # # Allowed values are CellForeground/CellBackground, which reference the @@ -288,45 +304,45 @@ colors: # # Allowed values are CellForeground/CellBackground, which reference the # affected cell, or hexadecimal colors like #ff00ff. - selection: - text: CellBackground - background: CellForeground + #selection: + # text: CellBackground + # background: CellForeground # Normal colors - normal: - black: '#1d1f21' - red: '#cc6666' - green: '#b5bd68' - yellow: '#f0c674' - blue: '#81a2be' - magenta: '#b294bb' - cyan: '#8abeb7' - white: '#c5c8c6' + #normal: + # black: '#1d1f21' + # red: '#cc6666' + # green: '#b5bd68' + # yellow: '#f0c674' + # blue: '#81a2be' + # magenta: '#b294bb' + # cyan: '#8abeb7' + # white: '#c5c8c6' # Bright colors - bright: - black: '#666666' - red: '#d54e53' - green: '#b9ca4a' - yellow: '#e7c547' - blue: '#7aa6da' - magenta: '#c397d8' - cyan: '#70c0b1' - white: '#eaeaea' + #bright: + # black: '#666666' + # red: '#d54e53' + # green: '#b9ca4a' + # yellow: '#e7c547' + # blue: '#7aa6da' + # magenta: '#c397d8' + # cyan: '#70c0b1' + # white: '#eaeaea' # Dim colors # # If the dim colors are not set, they will be calculated automatically based # on the `normal` colors. - dim: - black: '#131415' - red: '#864343' - green: '#777c44' - yellow: '#9e824c' - blue: '#556a7d' - magenta: '#75617b' - cyan: '#5b7d78' - white: '#828482' + #dim: + # black: '#131415' + # red: '#864343' + # green: '#777c44' + # yellow: '#9e824c' + # blue: '#556a7d' + # magenta: '#75617b' + # cyan: '#5b7d78' + # white: '#828482' # Indexed Colors # @@ -348,7 +364,7 @@ colors: # Bell # # The bell is rung every time the BEL control character is received. -bell: +#bell: # Visual Bell Animation # # Animation effect for flashing the screen when the visual bell is rung. @@ -364,7 +380,7 @@ bell: # - EaseOutExpo # - EaseOutCirc # - Linear - animation: EaseOutExpo + #animation: EaseOutExpo # Duration of the visual bell flash in milliseconds. A `duration` of `0` will # disable the visual bell animation. @@ -386,24 +402,24 @@ bell: # #command: None -selection: +#selection: # This string contains all characters that are used as separators for # "semantic words" in Alacritty. - semantic_escape_chars: ",│`|:\"' ()[]{}<>\t" + #semantic_escape_chars: ",│`|:\"' ()[]{}<>\t" # When set to `true`, selected text will be copied to the primary clipboard. - save_to_clipboard: true + #save_to_clipboard: false -cursor: +#cursor: # Cursor style - style: + #style: # Cursor shape # # Values for `shape`: # - ▇ Block # - _ Underline # - | Beam - shape: Block + #shape: Block # Cursor blinking state # @@ -451,7 +467,7 @@ cursor: # - (Linux/BSD/macOS) `$SHELL` or the user's login shell, if `$SHELL` is unset # - (Windows) powershell #shell: -# program: /usr/bin/fish +# program: /bin/bash # args: # - --login @@ -461,9 +477,6 @@ cursor: # directory of the parent process will be used. #working_directory: None -# Send ESC (\x1b) before characters when alt is pressed. -#alt_send_esc: true - # Offer IPC using `alacritty msg` (unix only) #ipc_socket: true @@ -483,7 +496,7 @@ cursor: # # Terminal hints can be used to find text or hyperlink in the visible part of # the terminal and pipe it to other applications. -hints: +#hints: # Keys used for the hint labels. #alphabet: "jfkdls;ahgurieowpq" @@ -516,18 +529,18 @@ hints: # Select the hint's text. # - MoveViModeCursor # Move the vi mode cursor to the beginning of the hint. - 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: - enabled: true - mods: None - binding: - key: U - mods: Control|Shift + #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: + # enabled: true + # mods: None + # binding: + # key: U + # mods: Control|Shift # Mouse bindings # @@ -578,7 +591,7 @@ hints: # - Key0-Key9 # # A full list with available key codes can be found here: -# https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants +# https://docs.rs/winit/*/winit/event/enum.VirtualKeyCode.html#variants # # Instead of using the name of the keys, the `key` field also supports using # the scancode of the desired key. Scancodes have to be specified as a @@ -627,6 +640,7 @@ hints: # - Quit # Quit Alacritty. # - ToggleFullscreen +# - ToggleMaximized # - SpawnNewInstance # Spawn a new instance of Alacritty. # - CreateNewWindow @@ -877,7 +891,7 @@ hints: #- { 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: N, mods: Command, action: CreateNewWindow } #- { key: F, mods: Command|Control, action: ToggleFullscreen } #- { key: F, mods: Command, mode: ~Search, action: SearchForward } #- { key: B, mods: Command, mode: ~Search, action: SearchBackward } @@ -900,6 +914,12 @@ hints: # - Trace #log_level: Warn + # Renderer override. + # - glsl3 + # - gles2 + # - gles2_pure + #renderer: None + # Print all received window events. #print_events: false -- cgit v1.2.3