From 6ec966cacf9eadaaf7ed6006c3a3c8a33ebfefd9 Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Thu, 17 Jun 2021 09:48:22 +0200 Subject: [PATCH] Update alacritty to black on white color scheme --- .config/alacritty/alacritty.yml | 388 ++++++++++++++++++++++---------- 1 file changed, 269 insertions(+), 119 deletions(-) diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index 1699963..0568914 100644 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -121,110 +121,225 @@ font: # If `true`, bold text is drawn using the bright color variants. draw_bold_text_with_bright_colors: false -# Colors (Tomorrow Night) -colors: - # Default colors - primary: - background: '#1d1f21' - foreground: '#c5c8c6' +schemes: + default_base: &light + # Default colors + primary: + background: '0xefece4' + foreground: '0x484245' - # Bright and dim foreground colors + # Colors the cursor will use if `custom_cursor_colors` is true + cursor: + text: '0xefecf4' + cursor: '0x585260' + + # Normal colors + normal: + black: '0xefecf4' + red: '0xbe4638' + green: '0x2a9292' + yellow: '0xa06e3b' + blue: '0x576ddb' + magenta: '0x955ae7' + cyan: '0x398bc6' + white: '0x585260' + + # Bright colors + bright: + black: '0x7e7887' + red: '0xbe3648' + green: '0x2a9292' + yellow: '0xa06e3b' + blue: '0x576ddb' + magenta: '0x955ae7' + cyan: '0x398bc6' + white: '0x19171c' + + indexed_colors: + - { index: 16, color: '0xaa573c' } + - { index: 17, color: '0xbf40bf' } + - { index: 18, color: '0xe2dfe7' } + - { index: 19, color: '0x8b8792' } + - { index: 20, color: '0x655f6d' } + - { index: 21, color: '0x26232a' } + + alt_light: &alt_light + primary: + background: '0xf8f8f8' + foreground: '0x383838' + + # Colors the cursor will use if `custom_cursor_colors` is true + cursor: + text: '0xf8f8f8' + cursor: '0x383838' + + # Normal colors + normal: + black: '0xf8f8f8' + red: '0xab4642' + green: '0x538947' + yellow: '0xf79a0e' + blue: '0x7cafc2' + magenta: '0x96609e' + cyan: '0x4b8093' + white: '0x383838' + + # Bright colors + bright: + black: '0xb8b8b8' + red: '0xab4642' + green: '0x538947' + yellow: '0xf79a0e' + blue: '0x7cafc2' + magenta: '0x96609e' + cyan: '0x4b8093' + white: '0x181818' + + indexed_colors: + - { index: 16, color: '0xdc9656' } + - { index: 17, color: '0xa16946' } + - { index: 18, color: '0xe8e8e8' } + - { index: 19, color: '0xd8d8d8' } + - { index: 20, color: '0x585858' } + - { index: 21, color: '0x282828' } + + tomorrow: &tomorrow + # Default colors + primary: + background: '0xffffff' + foreground: '0x242424' + + # Colors the cursor will use if `custom_cursor_colors` is true + cursor: + text: '0xffffff' + cursor: '0x242424' + + # Normal colors + normal: + black: '0xffffff' + red: '0xc82829' + green: '0x718c00' + yellow: '0xf79a0e' + blue: '0x4271ae' + magenta: '0x8959a8' + cyan: '0x3e999f' + white: '0x242424' + + # Bright colors + bright: + black: '0x8e908c' + red: '0xc82829' + green: '0x718c00' + yellow: '0xf79a0e' + blue: '0x4271ae' + magenta: '0x8959a8' + cyan: '0x3e999f' + white: '0x1d1f21' + + indexed_colors: + - { index: 16, color: '0xf5871f' } + - { index: 17, color: '0xa3685a' } + - { index: 18, color: '0xe0e0e0' } + - { index: 19, color: '0xd6d6d6' } + - { index: 20, color: '0x969896' } + - { index: 21, color: '0x282a2e' } + + # Colors (Tomorrow Night) + tomorrow_night: &tomorrow_night + # Default colors + primary: + background: '#171717' + foreground: '#c5c8c6' + + # 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. + dim_foreground: '#828482' + bright_foreground: '#eaeaea' + + # Cursor colors + # + # Colors which should be used to draw the terminal cursor. # - # 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. - # - # Allowed values are CellForeground and CellBackground, which reference the - # affected cell, or hexadecimal colors like #ff00ff. - cursor: - text: CellBackground - cursor: CellForeground - - # Vi mode cursor colors - # - # 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: CellBackground - cursor: CellForeground - - # Selection colors - # - # 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: 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: '#ddee00' + cursor: + text: CellBackground + cursor: CellForeground - bar: - background: '#c5c8c6' - foreground: '#1d1f21' + # Vi mode cursor colors + # + # 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: CellBackground + cursor: CellForeground - # Normal colors - normal: - black: '#1d1f21' - red: '#cc6666' - green: '#b5bd68' - yellow: '#f0c674' - blue: '#81a2be' - magenta: '#b294bb' - cyan: '#8abeb7' - white: '#c5c8c6' + # Selection colors + # + # 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: CellBackground + background: CellForeground - # Bright colors - bright: - black: '#666666' - red: '#d54e53' - green: '#b9ca4a' - yellow: '#e7c547' - blue: '#7aa6da' - magenta: '#c397d8' - cyan: '#70c0b1' - white: '#eaeaea' + # 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: '#ddee00' - # 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' + bar: + background: '#c5c8c6' + foreground: '#1d1f21' - # Indexed Colors - # - # The indexed colors include all colors from 16 to 256. - # When these are not set, they're filled with sensible defaults. - # - # Example: - # `- { index: 16, color: '#ff00ff' }` - # - #indexed_colors: [] + # Normal colors + 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' + + # 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' + +colors: *tomorrow # Bell # @@ -287,7 +402,23 @@ cursor: # - ▇ Block # - _ Underline # - | Beam - style: Block + style: Beam + #style: + # # Cursor shape + # # + # # Values for `shape`: + # # - ▇ Block + # # - _ Underline + # # - | Beam + # shape: Beam + # # 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: On # Vi mode cursor style # @@ -295,7 +426,7 @@ cursor: # the style of the active value of the normal cursor. # # See `cursor.style` for available options. - vi_mode_style: Underline + vi_mode_style: Block # If this is `true`, the cursor will be rendered as a hollow box when the # window is not focused. @@ -303,7 +434,7 @@ cursor: # Thickness of the cursor relative to the cell width as floating point number # from `0.0` to `1.0`. - thickness: 0.1 + thickness: 0.2 # Live config reload (changes require restart) live_config_reload: true @@ -343,27 +474,46 @@ mouse: # If this is `true`, the cursor is temporarily hidden when typing. hide_when_typing: false - 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. - # - # When set to `launcher: None`, URL launching will be disabled completely. - # - # Default: - # - (macOS) open - # - (Linux/BSD) xdg-open - # - (Windows) explorer - launcher: - program: xdg-open - # args: [] +# Regex hints +# +# Terminal hints can be used to find text in the visible part of the terminal +# and pipe it to other applications. +hints: + # Keys used for the hint labels. + #alphabet: "jfkdls;ahgurieowpq" - # 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. - modifiers: None + # 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. + # + # The fields `command`, `binding.key`, `binding.mods` and `mouse.mods` accept + # the same values as they do in the `key_bindings` section. + # + # The `mouse.enabled` field controls if the hint should be underlined while + # the mouse with all `mouse.mods` keys held or the vi mode cursor is above it. + # + # 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. + # + # Values for `action`: + # - Copy + # Copy the hint's text to the clipboard. + # - Paste + # Paste the hint's text to the terminal or search. + # - Select + # 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{-}\\^⟨⟩`]+" + command: xdg-open + post_processing: true + mouse: + enabled: true + mods: None # Mouse bindings # @@ -639,7 +789,7 @@ key_bindings: - { 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: Plus, mods: Control, action: IncreaseFontSize } - { key: Minus, mods: Control, action: DecreaseFontSize } #debug: