dotfiles

Dash Eclipse's dotfiles
git clone git://ezup.dev/dotfiles.git
Log | Files | Refs | README | LICENSE

alacritty.yml (17990B)


      1# Configuration for Alacritty, the GPU enhanced terminal emulator.
      2
      3# Any items in the `env` entry below will be added as
      4# environment variables. Some entries may override variables
      5# set by alacritty itself.
      6#env:
      7  # TERM variable
      8  #
      9  # This value is used to set the `$TERM` environment variable for
     10  # each instance of Alacritty. If it is not present, alacritty will
     11  # check the local terminfo database and use `alacritty` if it is
     12  # available, otherwise `xterm-256color` is used.
     13  #TERM: alacritty
     14
     15#window:
     16  # Window dimensions (changes require restart)
     17  #
     18  # Specified in number of columns/lines, not pixels.
     19  # If both are `0`, this setting is ignored.
     20  #dimensions:
     21  #  columns: 0
     22  #  lines: 0
     23
     24  # Window position (changes require restart)
     25  #
     26  # Specified in number of pixels.
     27  # If the position is not set, the window manager will handle the placement.
     28  #position:
     29  #  x: 0
     30  #  y: 0
     31
     32  # Window padding (changes require restart)
     33  #
     34  # Blank space added around the window in pixels. This padding is scaled
     35  # by DPI and the specified value is always added at both opposing sides.
     36  #padding:
     37  #  x: 0
     38  #  y: 0
     39
     40  # Spread additional padding evenly around the terminal content.
     41  #dynamic_padding: false
     42
     43  # Window decorations
     44  #
     45  # Values for `decorations`:
     46  #     - full: Borders and title bar
     47  #     - none: Neither borders nor title bar
     48  #
     49  # Values for `decorations` (macOS only):
     50  #     - transparent: Title bar, transparent background and title bar buttons
     51  #     - buttonless: Title bar, transparent background, but no title bar buttons
     52  #decorations: full
     53
     54  # Startup Mode (changes require restart)
     55  #
     56  # Values for `startup_mode`:
     57  #   - Windowed
     58  #   - Maximized
     59  #   - Fullscreen
     60  #
     61  # Values for `startup_mode` (macOS only):
     62  #   - SimpleFullscreen
     63  #startup_mode: Windowed
     64
     65  # Window title
     66  #title: Alacritty
     67
     68  # Window class (Linux/BSD only):
     69  #class:
     70    # Application instance name
     71    #instance: Alacritty
     72    # General application class
     73    #general: Alacritty
     74
     75  # GTK theme variant (Linux/BSD only)
     76  #
     77  # Override the variant of the GTK theme. Commonly supported values are `dark` and `light`.
     78  # Set this to `None` to use the default theme variant.
     79  #gtk_theme_variant: None
     80
     81#scrolling:
     82  # Maximum number of lines in the scrollback buffer.
     83  # Specifying '0' will disable scrolling.
     84  #history: 10000
     85
     86  # Number of lines the viewport will move for every line scrolled when
     87  # scrollback is enabled (history > 0).
     88  #multiplier: 3
     89
     90# Font configuration
     91font:
     92  # Normal (roman) font face
     93  normal:
     94    # Font family
     95    #
     96    # Default:
     97    #   - (macOS) Menlo
     98    #   - (Linux/BSD) monospace
     99    #   - (Windows) Consolas
    100    #family: monospace
    101    family: "Codemoji"
    102
    103    # The `style` can be specified to pick a specific face.
    104    #style: Regular
    105
    106  # Bold font face
    107  bold:
    108    # Font family
    109    #
    110    # If the bold family is not specified, it will fall back to the
    111    # value specified for the normal font.
    112    #family: monospace
    113    family: "Codemoji"
    114
    115    # The `style` can be specified to pick a specific face.
    116    #style: Bold
    117
    118  # Italic font face
    119  italic:
    120    # Font family
    121    #
    122    # If the italic family is not specified, it will fall back to the
    123    # value specified for the normal font.
    124    #family: monospace
    125    family: "Codemoji"
    126
    127    # The `style` can be specified to pick a specific face.
    128    #style: Italic
    129
    130  # Bold italic font face
    131  bold_italic:
    132    # Font family
    133    #
    134    # If the bold italic family is not specified, it will fall back to the
    135    # value specified for the normal font.
    136    #family: monospace
    137    family: "Codemoji"
    138
    139    # The `style` can be specified to pick a specific face.
    140    #style: Bold Italic
    141
    142  # Point size
    143  size: 10.0
    144
    145  # Offset is the extra space around each character. `offset.y` can be thought of
    146  # as modifying the line spacing, and `offset.x` as modifying the letter spacing.
    147  #offset:
    148  #  x: 0
    149  #  y: 0
    150
    151  # Glyph offset determines the locations of the glyphs within their cells with
    152  # the default being at the bottom. Increasing `x` moves the glyph to the right,
    153  # increasing `y` moves the glyph upwards.
    154  #glyph_offset:
    155  #  x: 0
    156  #  y: 0
    157
    158  # Thin stroke font rendering (macOS only)
    159  #
    160  # Thin strokes are suitable for retina displays, but for non-retina screens
    161  # it is recommended to set `use_thin_strokes` to `false`
    162  #
    163  # macOS >= 10.14.x:
    164  #
    165  # If the font quality on non-retina display looks bad then set
    166  # `use_thin_strokes` to `true` and enable font smoothing by running the
    167  # following command:
    168  #   `defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO`
    169  #
    170  # This is a global setting and will require a log out or restart to take
    171  # effect.
    172  #use_thin_strokes: true
    173
    174# If `true`, bold text is drawn using the bright color variants.
    175#draw_bold_text_with_bright_colors: false
    176
    177# Colors (Tomorrow Night Bright)
    178#colors:
    179  # Default colors
    180  #primary:
    181  #  background: '#000000'
    182  #  foreground: '#eaeaea'
    183
    184    # Bright and dim foreground colors
    185    #
    186    # The dimmed foreground color is calculated automatically if it is not present.
    187    # If the bright foreground color is not set, or `draw_bold_text_with_bright_colors`
    188    # is `false`, the normal foreground color will be used.
    189    #dim_foreground: '#9a9a9a'
    190    #bright_foreground: '#ffffff'
    191
    192  # Cursor colors
    193  #
    194  # Colors which should be used to draw the terminal cursor. If these are unset,
    195  # the cursor color will be the inverse of the cell color.
    196  #cursor:
    197  #  text: '#000000'
    198  #  cursor: '#ffffff'
    199
    200  # Selection colors
    201  #
    202  # Colors which should be used to draw the selection area. If selection
    203  # background is unset, selection color will be the inverse of the cell colors.
    204  # If only text is unset the cell text color will remain the same.
    205  #selection:
    206  #  text: '#eaeaea'
    207  #  background: '#404040'
    208
    209  # Normal colors
    210  #normal:
    211  #  black:   '#000000'
    212  #  red:     '#d54e53'
    213  #  green:   '#b9ca4a'
    214  #  yellow:  '#e6c547'
    215  #  blue:    '#7aa6da'
    216  #  magenta: '#c397d8'
    217  #  cyan:    '#70c0ba'
    218  #  white:   '#eaeaea'
    219
    220  # Bright colors
    221  #bright:
    222  #  black:   '#666666'
    223  #  red:     '#ff3334'
    224  #  green:   '#9ec400'
    225  #  yellow:  '#e7c547'
    226  #  blue:    '#7aa6da'
    227  #  magenta: '#b77ee0'
    228  #  cyan:    '#54ced6'
    229  #  white:   '#ffffff'
    230
    231  # Dim colors
    232  #
    233  # If the dim colors are not set, they will be calculated automatically based
    234  # on the `normal` colors.
    235  #dim:
    236  #  black:   '#000000'
    237  #  red:     '#8c3336'
    238  #  green:   '#7a8530'
    239  #  yellow:  '#97822e'
    240  #  blue:    '#506d8f'
    241  #  magenta: '#80638e'
    242  #  cyan:    '#497e7a'
    243  #  white:   '#9a9a9a'
    244
    245  # Indexed Colors
    246  #
    247  # The indexed colors include all colors from 16 to 256.
    248  # When these are not set, they're filled with sensible defaults.
    249  #
    250  # Example:
    251  #   `- { index: 16, color: '#ff00ff' }`
    252  #
    253  #indexed_colors: []
    254
    255# Colors (Nord)
    256colors:
    257   # Default colors
    258   primary:
    259     background: '#2E3440'
    260     foreground: '#D8DEE9'
    261
    262   # Normal colors
    263   normal:
    264     black:   '#3B4252'
    265     red:     '#BF616A'
    266     green:   '#A3BE8C'
    267     yellow:  '#EBCB8B'
    268     blue:    '#81A1C1'
    269     magenta: '#B48EAD'
    270     cyan:    '#88C0D0'
    271     white:   '#E5E9F0'
    272
    273   # Bright colors
    274   bright:
    275     black:   '#4C566A'
    276     red:     '#BF616A'
    277     green:   '#A3BE8C'
    278     yellow:  '#EBCB8B'
    279     blue:    '#81A1C1'
    280     magenta: '#B48EAD'
    281     cyan:    '#8FBCBB'
    282     white:   '#ECEFF4'
    283
    284# Base16 Google Dark - alacritty color config
    285# Seth Wright (http://sethawright.com)
    286#colors:
    287  # Default colors
    288  #primary:
    289    #background: '0x1d1f21'
    290    #foreground: '0xc5c8c6'
    291
    292  # Colors the cursor will use if `custom_cursor_colors` is true
    293  #cursor:
    294    #text: '0x1d1f21'
    295    #cursor: '0xc5c8c6'
    296
    297  # Normal colors
    298  #normal:
    299    #black:   '0x1d1f21'
    300    #red:     '0xcc342b'
    301    #green:   '0x198844'
    302    #yellow:  '0xfba922'
    303    #blue:    '0x3971ed'
    304    #magenta: '0xa36ac7'
    305    #cyan:    '0x3971ed'
    306    #white:   '0xc5c8c6'
    307
    308  # Bright colors
    309  #bright:
    310    #black:   '0x969896'
    311    #red:     '0xf96a38'
    312    #green:   '0x282a2e'
    313    #yellow:  '0x373b41'
    314    #blue:    '0xb4b7b4'
    315    #magenta: '0xe0e0e0'
    316    #cyan:    '0x3971ed'
    317    #white:   '0xffffff'
    318
    319# Visual Bell
    320#
    321# Any time the BEL code is received, Alacritty "rings" the visual bell. Once
    322# rung, the terminal background will be set to white and transition back to the
    323# default background color. You can control the rate of this transition by
    324# setting the `duration` property (represented in milliseconds). You can also
    325# configure the transition function by setting the `animation` property.
    326#
    327# Values for `animation`:
    328#   - Ease
    329#   - EaseOut
    330#   - EaseOutSine
    331#   - EaseOutQuad
    332#   - EaseOutCubic
    333#   - EaseOutQuart
    334#   - EaseOutQuint
    335#   - EaseOutExpo
    336#   - EaseOutCirc
    337#   - Linear
    338#
    339# Specifying a `duration` of `0` will disable the visual bell.
    340#visual_bell:
    341#  animation: EaseOutExpo
    342#  duration: 0
    343#  color: '#ffffff'
    344
    345# Background opacity
    346#
    347# Window opacity as a floating point number from `0.0` to `1.0`.
    348# The value `0.0` is completely transparent and `1.0` is opaque.
    349#background_opacity: 1.0
    350
    351#selection:
    352  #semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
    353
    354  # When set to `true`, selected text will be copied to the primary clipboard.
    355  #save_to_clipboard: false
    356
    357# Allow terminal applications to change Alacritty's window title.
    358#dynamic_title: true
    359
    360#cursor:
    361  # Cursor style
    362  #
    363  # Values for `style`:
    364  #   - ▇ Block
    365  #   - _ Underline
    366  #   - | Beam
    367  #style: Block
    368
    369  # If this is `true`, the cursor will be rendered as a hollow box when the
    370  # window is not focused.
    371  #unfocused_hollow: true
    372
    373# Live config reload (changes require restart)
    374#live_config_reload: true
    375
    376# Shell
    377#
    378# You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`.
    379# Entries in `shell.args` are passed unmodified as arguments to the shell.
    380#
    381# Default:
    382#   - (macOS) /bin/bash --login
    383#   - (Linux/BSD) user login shell
    384#   - (Windows) powershell
    385#shell:
    386#  program: /bin/bash
    387#  args:
    388#    - --login
    389
    390# Startup directory
    391#
    392# Directory the shell is started in. If this is unset, or `None`, the working
    393# directory of the parent process will be used.
    394#working_directory: None
    395
    396# WinPTY backend (Windows only)
    397#
    398# Alacritty defaults to using the newer ConPTY backend if it is available,
    399# since it resolves a lot of bugs and is quite a bit faster. If it is not
    400# available, the the WinPTY backend will be used instead.
    401#
    402# Setting this option to `true` makes Alacritty use the legacy WinPTY backend,
    403# even if the ConPTY backend is available.
    404#winpty_backend: false
    405
    406# Send ESC (\x1b) before characters when alt is pressed.
    407#alt_send_esc: true
    408
    409#mouse:
    410  # Click settings
    411  #
    412  # The `double_click` and `triple_click` settings control the time
    413  # alacritty should wait for accepting multiple clicks as one double
    414  # or triple click.
    415  #double_click: { threshold: 300 }
    416  #triple_click: { threshold: 300 }
    417
    418  # If this is `true`, the cursor is temporarily hidden when typing.
    419  #hide_when_typing: false
    420
    421  #url:
    422    # URL launcher
    423    #
    424    # This program is executed when clicking on a text which is recognized as a URL.
    425    # The URL is always added to the command as the last parameter.
    426    #
    427    # When set to `None`, URL launching will be disabled completely.
    428    #
    429    # Default:
    430    #   - (macOS) open
    431    #   - (Linux/BSD) xdg-open
    432    #   - (Windows) explorer
    433    #launcher:
    434    #  program: xdg-open
    435    #  args: []
    436
    437    # URL modifiers
    438    #
    439    # These are the modifiers that need to be held down for opening URLs when clicking
    440    # on them. The available modifiers are documented in the key binding section.
    441    #modifiers: None
    442
    443# Mouse bindings
    444#
    445# Mouse bindings are specified as a list of objects, much like the key
    446# bindings further below.
    447#
    448# To trigger mouse bindings when an application running within Alacritty captures the mouse, the
    449# `Shift` modifier is automatically added as a requirement.
    450#
    451# Each mouse binding will specify a:
    452#
    453# - `mouse`:
    454#
    455#   - Middle
    456#   - Left
    457#   - Right
    458#   - Numeric identifier such as `5`
    459#
    460# - `action` (see key bindings)
    461#
    462# And optionally:
    463#
    464# - `mods` (see key bindings)
    465#mouse_bindings:
    466#  - { mouse: Middle, action: PasteSelection }
    467
    468# Key bindings
    469#
    470# Key bindings are specified as a list of objects. For example, this is the
    471# default paste binding:
    472#
    473# `- { key: V, mods: Control|Shift, action: Paste }`
    474#
    475# Each key binding will specify a:
    476#
    477# - `key`: Identifier of the key pressed
    478#
    479#    - A-Z
    480#    - F1-F24
    481#    - Key0-Key9
    482#
    483#    A full list with available key codes can be found here:
    484#    https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants
    485#
    486#    Instead of using the name of the keys, the `key` field also supports using
    487#    the scancode of the desired key. Scancodes have to be specified as a
    488#    decimal number. This command will allow you to display the hex scancodes
    489#    for certain keys:
    490#
    491#       `showkey --scancodes`.
    492#
    493# Then exactly one of:
    494#
    495# - `chars`: Send a byte sequence to the running application
    496#
    497#    The `chars` field writes the specified string to the terminal. This makes
    498#    it possible to pass escape sequences. To find escape codes for bindings
    499#    like `PageUp` (`"\x1b[5~"`), you can run the command `showkey -a` outside
    500#    of tmux. Note that applications use terminfo to map escape sequences back
    501#    to keys. It is therefore required to update the terminfo when changing an
    502#    escape sequence.
    503#
    504# - `action`: Execute a predefined action
    505#
    506#   - Copy
    507#   - Paste
    508#   - PasteSelection
    509#   - IncreaseFontSize
    510#   - DecreaseFontSize
    511#   - ResetFontSize
    512#   - ScrollPageUp
    513#   - ScrollPageDown
    514#   - ScrollLineUp
    515#   - ScrollLineDown
    516#   - ScrollToTop
    517#   - ScrollToBottom
    518#   - ClearHistory
    519#   - Hide
    520#   - Minimize
    521#   - Quit
    522#   - ToggleFullscreen
    523#   - SpawnNewInstance
    524#   - ClearLogNotice
    525#   - ReceiveChar
    526#   - None
    527#
    528#   (macOS only):
    529#   - ToggleSimpleFullscreen: Enters fullscreen without occupying another space
    530#
    531# - `command`: Fork and execute a specified command plus arguments
    532#
    533#    The `command` field must be a map containing a `program` string and an
    534#    `args` array of command line parameter strings. For example:
    535#       `{ program: "alacritty", args: ["-e", "vttest"] }`
    536#
    537# And optionally:
    538#
    539# - `mods`: Key modifiers to filter binding actions
    540#
    541#    - Command
    542#    - Control
    543#    - Option
    544#    - Super
    545#    - Shift
    546#    - Alt
    547#
    548#    Multiple `mods` can be combined using `|` like this:
    549#       `mods: Control|Shift`.
    550#    Whitespace and capitalization are relevant and must match the example.
    551#
    552# - `mode`: Indicate a binding for only specific terminal reported modes
    553#
    554#    This is mainly used to send applications the correct escape sequences
    555#    when in different modes.
    556#
    557#    - AppCursor
    558#    - AppKeypad
    559#    - Alt
    560#
    561#    A `~` operator can be used before a mode to apply the binding whenever
    562#    the mode is *not* active, e.g. `~Alt`.
    563#
    564# Bindings are always filled by default, but will be replaced when a new
    565# binding with the same triggers is defined. To unset a default binding, it can
    566# be mapped to the `ReceiveChar` action. Alternatively, you can use `None` for
    567# a no-op if you do not wish to receive input characters for that binding.
    568#
    569# If the same trigger is assigned to multiple actions, all of them are executed
    570# at once.
    571#key_bindings:
    572  # (Windows, Linux, and BSD only)
    573  #- { key: V,        mods: Control|Shift, action: Paste            }
    574  #- { key: C,        mods: Control|Shift, action: Copy             }
    575  #- { key: Insert,   mods: Shift,         action: PasteSelection   }
    576  #- { key: Key0,     mods: Control,       action: ResetFontSize    }
    577  #- { key: Equals,   mods: Control,       action: IncreaseFontSize }
    578  #- { key: Add,      mods: Control,       action: IncreaseFontSize }
    579  #- { key: Subtract, mods: Control,       action: DecreaseFontSize }
    580  #- { key: Minus,    mods: Control,       action: DecreaseFontSize }
    581
    582  # (Windows only)
    583  #- { key: Return,   mods: Alt,           action: ToggleFullscreen }
    584
    585  # (macOS only)
    586  #- { key: Key0,   mods: Command,         action: ResetFontSize    }
    587  #- { key: Equals, mods: Command,         action: IncreaseFontSize }
    588  #- { key: Add,    mods: Command,         action: IncreaseFontSize }
    589  #- { key: Minus,  mods: Command,         action: DecreaseFontSize }
    590  #- { key: K,      mods: Command,         action: ClearHistory     }
    591  #- { key: K,      mods: Command,         chars: "\x0c"            }
    592  #- { key: V,      mods: Command,         action: Paste            }
    593  #- { key: C,      mods: Command,         action: Copy             }
    594  #- { key: H,      mods: Command,         action: Hide             }
    595  #- { key: M,      mods: Command,         action: Minimize         }
    596  #- { key: Q,      mods: Command,         action: Quit             }
    597  #- { key: W,      mods: Command,         action: Quit             }
    598  #- { key: F,      mods: Command|Control, action: ToggleFullscreen }
    599
    600  #- { key: Paste,                    action: Paste                            }
    601  #- { key: Copy,                     action: Copy                             }
    602  #- { key: L,         mods: Control, action: ClearLogNotice                   }
    603  #- { key: L,         mods: Control, chars: "\x0c"                            }
    604  #- { key: PageUp,    mods: Shift,   action: ScrollPageUp,   mode: ~Alt       }
    605  #- { key: PageDown,  mods: Shift,   action: ScrollPageDown, mode: ~Alt       }
    606  #- { key: Home,      mods: Shift,   action: ScrollToTop,    mode: ~Alt       }
    607  #- { key: End,       mods: Shift,   action: ScrollToBottom, mode: ~Alt       }
    608
    609#debug:
    610  # Display the time it takes to redraw each frame.
    611  #render_timer: false
    612
    613  # Keep the log file after quitting Alacritty.
    614  #persistent_logging: false
    615
    616  # Log level
    617  #
    618  # Values for `log_level`:
    619  #   - None
    620  #   - Error
    621  #   - Warn
    622  #   - Info
    623  #   - Debug
    624  #   - Trace
    625  #log_level: Warn
    626
    627  # Print all received window events.
    628  #print_events: false