dotfiles

andersuno dotfiles
git clone git://git.andersuno.nu/dotfiles.git
Log | Files | Refs | README

alacritty.yml (18100B)


      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: xterm-256color
     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 # Spaces per Tab (changes require restart)
     91 #
     92 # This setting defines the width of a tab in cells.
     93 #
     94 # Some applications, like Emacs, rely on knowing about the width of a tab.
     95 # To prevent unexpected behavior in these applications, it's also required to
     96 # change the `it` value in terminfo when altering this setting.
     97 #tabspaces: 8
     98 
     99 # Font configuration
    100 font:
    101   # Normal (roman) font face
    102   #normal:
    103     # Font family
    104     #
    105     # Default:
    106     #   - (macOS) Menlo
    107     #   - (Linux/BSD) monospace
    108     #   - (Windows) Consolas
    109     #family: monospace
    110 
    111     # The `style` can be specified to pick a specific face.
    112     #style: Regular
    113 
    114   # Bold font face
    115   #bold:
    116     # Font family
    117     #
    118     # If the bold family is not specified, it will fall back to the
    119     # value specified for the normal font.
    120     #family: monospace
    121 
    122     # The `style` can be specified to pick a specific face.
    123     #style: Bold
    124 
    125   # Italic font face
    126   #italic:
    127     # Font family
    128     #
    129     # If the italic family is not specified, it will fall back to the
    130     # value specified for the normal font.
    131     #family: monospace
    132 
    133     # The `style` can be specified to pick a specific face.
    134     #style: Italic
    135 
    136   # Bold italic font face
    137   #bold_italic:
    138     # Font family
    139     #
    140     # If the bold italic family is not specified, it will fall back to the
    141     # value specified for the normal font.
    142     #family: monospace
    143 
    144     # The `style` can be specified to pick a specific face.
    145     #style: Bold Italic
    146 
    147   # Point size
    148   size: 8.0
    149 
    150   # Offset is the extra space around each character. `offset.y` can be thought of
    151   # as modifying the line spacing, and `offset.x` as modifying the letter spacing.
    152   #offset:
    153   #  x: 0
    154   #  y: 0
    155 
    156   # Glyph offset determines the locations of the glyphs within their cells with
    157   # the default being at the bottom. Increasing `x` moves the glyph to the right,
    158   # increasing `y` moves the glyph upwards.
    159   #glyph_offset:
    160   #  x: 0
    161   #  y: 0
    162 
    163   # Thin stroke font rendering (macOS only)
    164   #
    165   # Thin strokes are suitable for retina displays, but for non-retina screens
    166   # it is recommended to set `use_thin_strokes` to `false`
    167   #
    168   # macOS >= 10.14.x:
    169   #
    170   # If the font quality on non-retina display looks bad then set
    171   # `use_thin_strokes` to `true` and enable font smoothing by running the
    172   # following command:
    173   #   `defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO`
    174   #
    175   # This is a global setting and will require a log out or restart to take
    176   # effect.
    177   #use_thin_strokes: true
    178 
    179 # If `true`, bold text is drawn using the bright color variants.
    180 #draw_bold_text_with_bright_colors: false
    181 
    182 # Colors (Tomorrow Night Bright)
    183 #colors:
    184   # Default colors
    185   #primary:
    186   #  background: '0x000000'
    187   #  foreground: '0xeaeaea'
    188 
    189     # Bright and dim foreground colors
    190     #
    191     # The dimmed foreground color is calculated automatically if it is not present.
    192     # If the bright foreground color is not set, or `draw_bold_text_with_bright_colors`
    193     # is `false`, the normal foreground color will be used.
    194     #dim_foreground: '0x9a9a9a'
    195     #bright_foreground: '0xffffff'
    196 
    197   # Cursor colors
    198   #
    199   # Colors which should be used to draw the terminal cursor. If these are unset,
    200   # the cursor color will be the inverse of the cell color.
    201   #cursor:
    202   #  text: '0x000000'
    203   #  cursor: '0xffffff'
    204 
    205   # Selection colors
    206   #
    207   # Colors which should be used to draw the selection area. If selection
    208   # background is unset, selection color will be the inverse of the cell colors.
    209   # If only text is unset the cell text color will remain the same.
    210   #selection:
    211   #  text: '0xeaeaea'
    212   #  background: '0x404040'
    213 
    214   # Normal colors
    215   #normal:
    216   #  black:   '0x000000'
    217   #  red:     '0xd54e53'
    218   #  green:   '0xb9ca4a'
    219   #  yellow:  '0xe6c547'
    220   #  blue:    '0x7aa6da'
    221   #  magenta: '0xc397d8'
    222   #  cyan:    '0x70c0ba'
    223   #  white:   '0xeaeaea'
    224 
    225   # Bright colors
    226   #bright:
    227   #  black:   '0x666666'
    228   #  red:     '0xff3334'
    229   #  green:   '0x9ec400'
    230   #  yellow:  '0xe7c547'
    231   #  blue:    '0x7aa6da'
    232   #  magenta: '0xb77ee0'
    233   #  cyan:    '0x54ced6'
    234   #  white:   '0xffffff'
    235 
    236   # Dim colors
    237   #
    238   # If the dim colors are not set, they will be calculated automatically based
    239   # on the `normal` colors.
    240   #dim:
    241   #  black:   '0x000000'
    242   #  red:     '0x8c3336'
    243   #  green:   '0x7a8530'
    244   #  yellow:  '0x97822e'
    245   #  blue:    '0x506d8f'
    246   #  magenta: '0x80638e'
    247   #  cyan:    '0x497e7a'
    248   #  white:   '0x9a9a9a'
    249 
    250   # Indexed Colors
    251   #
    252   # The indexed colors include all colors from 16 to 256.
    253   # When these are not set, they're filled with sensible defaults.
    254   #
    255   # Example:
    256   #   `- { index: 16, color: '0xff00ff' }`
    257   #
    258   #indexed_colors: []
    259 
    260 # Gnometerm colors
    261 #colors:
    262 #  # Default colors
    263 #  primary:
    264 #    background: '0x000000'
    265 #    foreground: '0xffffff'
    266 #
    267 #  # Normal colors
    268 #  normal:
    269 #    black:   '0x000000'
    270 #    red:     '0xcc0000'
    271 #    green:   '0x4e9a06'
    272 #    yellow:  '0xc4a000'
    273 #    blue:    '0x3465a4'
    274 #    magenta: '0x75507b'
    275 #    cyan:    '0x06989a'
    276 #    white:   '0xd3d7cf'
    277 #
    278 #  # Bright colors
    279 #  bright:
    280 #    black:   '0x555753'
    281 #    red:     '0xef2929'
    282 #    green:   '0x8ae234'
    283 #    yellow:  '0xfce94f'
    284 #    blue:    '0x729fcf'
    285 #    magenta: '0xad7fa8'
    286 #    cyan:    '0x34e2e2'
    287 #    white:   '0xeeeeec'
    288 
    289 # XTerm's default colors
    290 colors:
    291    # Default colors
    292    primary:
    293      background: '0x000000'
    294      foreground: '0xffffff'
    295    # Normal colors
    296    normal:
    297      black:   '0x000000'
    298      red:     '0xcd0000'
    299      green:   '0x00cd00'
    300      yellow:  '0xcdcd00'
    301      blue:    '0x0000ee'
    302      magenta: '0xcd00cd'
    303      cyan:    '0x00cdcd'
    304      white:   '0xe5e5e5'
    305 
    306    # Bright colors
    307    bright:
    308      black:   '0x7f7f7f'
    309      red:     '0xff0000'
    310      green:   '0x00ff00'
    311      yellow:  '0xffff00'
    312      blue:    '0x5c5cff'
    313      magenta: '0xff00ff'
    314      cyan:    '0x00ffff'
    315      white:   '0xffffff'
    316 
    317 # Visual Bell
    318 #
    319 # Any time the BEL code is received, Alacritty "rings" the visual bell. Once
    320 # rung, the terminal background will be set to white and transition back to the
    321 # default background color. You can control the rate of this transition by
    322 # setting the `duration` property (represented in milliseconds). You can also
    323 # configure the transition function by setting the `animation` property.
    324 #
    325 # Values for `animation`:
    326 #   - Ease
    327 #   - EaseOut
    328 #   - EaseOutSine
    329 #   - EaseOutQuad
    330 #   - EaseOutCubic
    331 #   - EaseOutQuart
    332 #   - EaseOutQuint
    333 #   - EaseOutExpo
    334 #   - EaseOutCirc
    335 #   - Linear
    336 #
    337 # Specifying a `duration` of `0` will disable the visual bell.
    338 #visual_bell:
    339 #  animation: EaseOutExpo
    340 #  duration: 0
    341 #  color: '0xffffff'
    342 
    343 # Background opacity
    344 #
    345 # Window opacity as a floating point number from `0.0` to `1.0`.
    346 # The value `0.0` is completely transparent and `1.0` is opaque.
    347 background_opacity: 0.7
    348 
    349 #selection:
    350   #semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
    351 
    352   # When set to `true`, selected text will be copied to the primary clipboard.
    353   #save_to_clipboard: false
    354 
    355 # Allow terminal applications to change Alacritty's window title.
    356 #dynamic_title: true
    357 
    358 #cursor:
    359   # Cursor style
    360   #
    361   # Values for `style`:
    362   #   - ▇ Block
    363   #   - _ Underline
    364   #   - | Beam
    365   #style: Block
    366 
    367   # If this is `true`, the cursor will be rendered as a hollow box when the
    368   # window is not focused.
    369   #unfocused_hollow: true
    370 
    371 # Live config reload (changes require restart)
    372 #live_config_reload: true
    373 
    374 # Shell
    375 #
    376 # You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`.
    377 # Entries in `shell.args` are passed unmodified as arguments to the shell.
    378 #
    379 # Default:
    380 #   - (macOS) /bin/bash --login
    381 #   - (Linux/BSD) user login shell
    382 #   - (Windows) powershell
    383 #shell:
    384 #  program: /bin/bash
    385 #  args:
    386 #    - --login
    387 
    388 # Startup directory
    389 #
    390 # Directory the shell is started in. If this is unset, or `None`, the working
    391 # directory of the parent process will be used.
    392 #working_directory: None
    393 
    394 # WinPTY backend (Windows only)
    395 #
    396 # Alacritty defaults to using the newer ConPTY backend if it is available,
    397 # since it resolves a lot of bugs and is quite a bit faster. If it is not
    398 # available, the the WinPTY backend will be used instead.
    399 #
    400 # Setting this option to `true` makes Alacritty use the legacy WinPTY backend,
    401 # even if the ConPTY backend is available.
    402 #winpty_backend: false
    403 
    404 # Send ESC (\x1b) before characters when alt is pressed.
    405 #alt_send_esc: true
    406 
    407 #debug:
    408   # Display the time it takes to redraw each frame.
    409   #render_timer: false
    410 
    411   # Keep the log file after quitting Alacritty.
    412   #persistent_logging: false
    413 
    414   # Log level
    415   #
    416   # Values for `log_level`:
    417   #   - None
    418   #   - Error
    419   #   - Warn
    420   #   - Info
    421   #   - Debug
    422   #   - Trace
    423   #log_level: Warn
    424 
    425   # Print all received window events.
    426   #print_events: false
    427 
    428   # Record all characters and escape sequences as test data.
    429   #ref_test: false
    430 
    431 #mouse:
    432   # Click settings
    433   #
    434   # The `double_click` and `triple_click` settings control the time
    435   # alacritty should wait for accepting multiple clicks as one double
    436   # or triple click.
    437   #double_click: { threshold: 300 }
    438   #triple_click: { threshold: 300 }
    439 
    440   # If this is `true`, the cursor is temporarily hidden when typing.
    441   #hide_when_typing: false
    442 
    443   #url:
    444     # URL launcher
    445     #
    446     # This program is executed when clicking on a text which is recognized as a URL.
    447     # The URL is always added to the command as the last parameter.
    448     #
    449     # When set to `None`, URL launching will be disabled completely.
    450     #
    451     # Default:
    452     #   - (macOS) open
    453     #   - (Linux/BSD) xdg-open
    454     #   - (Windows) explorer
    455     #launcher:
    456     #  program: xdg-open
    457     #  args: []
    458 
    459     # URL modifiers
    460     #
    461     # These are the modifiers that need to be held down for opening URLs when clicking
    462     # on them. The available modifiers are documented in the key binding section.
    463     #modifiers: None
    464 
    465 # Mouse bindings
    466 #
    467 # Mouse bindings are specified as a list of objects, much like the key
    468 # bindings further below.
    469 #
    470 # To trigger mouse bindings when an application running within Alacritty captures the mouse, the
    471 # `Shift` modifier is automatically added as a requirement.
    472 #
    473 # Each mouse binding will specify a:
    474 #
    475 # - `mouse`:
    476 #
    477 #   - Middle
    478 #   - Left
    479 #   - Right
    480 #   - Numeric identifier such as `5`
    481 #
    482 # - `action` (see key bindings)
    483 #
    484 # And optionally:
    485 #
    486 # - `mods` (see key bindings)
    487 #mouse_bindings:
    488 #  - { mouse: Middle, action: PasteSelection }
    489 
    490 # Key bindings
    491 #
    492 # Key bindings are specified as a list of objects. For example, this is the
    493 # default paste binding:
    494 #
    495 # `- { key: V, mods: Control|Shift, action: Paste }`
    496 #
    497 # Each key binding will specify a:
    498 #
    499 # - `key`: Identifier of the key pressed
    500 #
    501 #    - A-Z
    502 #    - F1-F24
    503 #    - Key0-Key9
    504 #
    505 #    A full list with available key codes can be found here:
    506 #    https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants
    507 #
    508 #    Instead of using the name of the keys, the `key` field also supports using
    509 #    the scancode of the desired key. Scancodes have to be specified as a
    510 #    decimal number. This command will allow you to display the hex scancodes
    511 #    for certain keys:
    512 #
    513 #       `showkey --scancodes`.
    514 #
    515 # Then exactly one of:
    516 #
    517 # - `chars`: Send a byte sequence to the running application
    518 #
    519 #    The `chars` field writes the specified string to the terminal. This makes
    520 #    it possible to pass escape sequences. To find escape codes for bindings
    521 #    like `PageUp` (`"\x1b[5~"`), you can run the command `showkey -a` outside
    522 #    of tmux. Note that applications use terminfo to map escape sequences back
    523 #    to keys. It is therefore required to update the terminfo when changing an
    524 #    escape sequence.
    525 #
    526 # - `action`: Execute a predefined action
    527 #
    528 #   - Copy
    529 #   - Paste
    530 #   - PasteSelection
    531 #   - IncreaseFontSize
    532 #   - DecreaseFontSize
    533 #   - ResetFontSize
    534 #   - ScrollPageUp
    535 #   - ScrollPageDown
    536 #   - ScrollLineUp
    537 #   - ScrollLineDown
    538 #   - ScrollToTop
    539 #   - ScrollToBottom
    540 #   - ClearHistory
    541 #   - Hide
    542 #   - Minimize
    543 #   - Quit
    544 #   - ToggleFullscreen
    545 #   - SpawnNewInstance
    546 #   - ClearLogNotice
    547 #   - ReceiveChar
    548 #   - None
    549 #
    550 #   (macOS only):
    551 #   - ToggleSimpleFullscreen: Enters fullscreen without occupying another space
    552 #
    553 # - `command`: Fork and execute a specified command plus arguments
    554 #
    555 #    The `command` field must be a map containing a `program` string and an
    556 #    `args` array of command line parameter strings. For example:
    557 #       `{ program: "alacritty", args: ["-e", "vttest"] }`
    558 #
    559 # And optionally:
    560 #
    561 # - `mods`: Key modifiers to filter binding actions
    562 #
    563 #    - Command
    564 #    - Control
    565 #    - Option
    566 #    - Super
    567 #    - Shift
    568 #    - Alt
    569 #
    570 #    Multiple `mods` can be combined using `|` like this:
    571 #       `mods: Control|Shift`.
    572 #    Whitespace and capitalization are relevant and must match the example.
    573 #
    574 # - `mode`: Indicate a binding for only specific terminal reported modes
    575 #
    576 #    This is mainly used to send applications the correct escape sequences
    577 #    when in different modes.
    578 #
    579 #    - AppCursor
    580 #    - AppKeypad
    581 #    - Alt
    582 #
    583 #    A `~` operator can be used before a mode to apply the binding whenever
    584 #    the mode is *not* active, e.g. `~Alt`.
    585 #
    586 # Bindings are always filled by default, but will be replaced when a new
    587 # binding with the same triggers is defined. To unset a default binding, it can
    588 # be mapped to the `ReceiveChar` action. Alternatively, you can use `None` for
    589 # a no-op if you do not wish to receive input characters for that binding.
    590 #key_bindings:
    591   # (Windows, Linux, and BSD only)
    592   #- { key: V,        mods: Control|Shift, action: Paste            }
    593   #- { key: C,        mods: Control|Shift, action: Copy             }
    594   #- { key: Insert,   mods: Shift,         action: PasteSelection   }
    595   #- { key: Key0,     mods: Control,       action: ResetFontSize    }
    596   #- { key: Equals,   mods: Control,       action: IncreaseFontSize }
    597   #- { key: Add,      mods: Control,       action: IncreaseFontSize }
    598   #- { key: Subtract, mods: Control,       action: DecreaseFontSize }
    599   #- { key: Minus,    mods: Control,       action: DecreaseFontSize }
    600 
    601   # (Windows only)
    602   #- { key: Return,   mods: Alt,           action: ToggleFullscreen }
    603 
    604   # (macOS only)
    605   #- { key: Key0,   mods: Command,         action: ResetFontSize    }
    606   #- { key: Equals, mods: Command,         action: IncreaseFontSize }
    607   #- { key: Add,    mods: Command,         action: IncreaseFontSize }
    608   #- { key: Minus,  mods: Command,         action: DecreaseFontSize }
    609   #- { key: K,      mods: Command,         action: ClearHistory     }
    610   #- { key: K,      mods: Command,         chars: "\x0c"            }
    611   #- { key: V,      mods: Command,         action: Paste            }
    612   #- { key: C,      mods: Command,         action: Copy             }
    613   #- { key: H,      mods: Command,         action: Hide             }
    614   #- { key: M,      mods: Command,         action: Minimize         }
    615   #- { key: Q,      mods: Command,         action: Quit             }
    616   #- { key: W,      mods: Command,         action: Quit             }
    617   #- { key: F,      mods: Command|Control, action: ToggleFullscreen }
    618 
    619   #- { key: Paste,                    action: Paste                            }
    620   #- { key: Copy,                     action: Copy                             }
    621   #- { key: L,         mods: Control, action: ClearLogNotice                   }
    622   #- { key: L,         mods: Control, chars: "\x0c"                            }
    623   #- { key: PageUp,    mods: Shift,   action: ScrollPageUp,   mode: ~Alt       }
    624   #- { key: PageDown,  mods: Shift,   action: ScrollPageDown, mode: ~Alt       }
    625   #- { key: Home,      mods: Shift,   action: ScrollToTop,    mode: ~Alt       }
    626   #- { key: End,       mods: Shift,   action: ScrollToBottom, mode: ~Alt       }