config

betoissues' dotfiles
git clone git://git.betoissues.com/config.git
Historial | Archivos | Refs | Submódulos | README

alacritty.yml (17330B)


      1 env:
      2   TERM: xterm-256color
      3 
      4 window:
      5   dynamic_title: true
      6   dimensions:
      7     columns: 80
      8     lines: 24
      9 
     10   padding:
     11     x: 2
     12     y: 2
     13   dynamic_padding: false
     14   decorations: none
     15 
     16 scrolling:
     17   history: 10000
     18   multiplier: 3
     19 
     20 font:
     21   normal:
     22     family: Fira Code
     23     style: Regular
     24   bold:
     25     family: Fira Code
     26     style: Bold
     27   italic:
     28     family: Hack
     29     style: Italic
     30   size: 12
     31   offset:
     32     x: 0
     33     y: 0
     34 
     35   glyph_offset:
     36     x: 0
     37     y: 0
     38   use_thin_strokes: true
     39 
     40 draw_bold_text_with_bright_colors: true
     41 
     42 bell:
     43   animation: EaseOutExpo
     44   duration: 0
     45   color: '0xffffff'
     46 
     47 background_opacity: 1.0
     48 
     49 mouse_bindings:
     50   - { mouse: Middle, action: PasteSelection }
     51 
     52 mouse:
     53   double_click: { threshold: 300 }
     54   triple_click: { threshold: 300 }
     55   hide_when_typing: false
     56   url:
     57     launcher:
     58       program: xdg-open
     59       args: []
     60     modifiers: None
     61 
     62 selection:
     63   semantic_escape_chars: ",│`|:\"' ()[]{}<>"
     64   save_to_clipboard: true
     65 
     66 cursor:
     67   style: Underline
     68   unfocused_hollow: true
     69   vi_mode_style: Block
     70 
     71 live_config_reload: true
     72 
     73 enable_experimental_conpty_backend: false
     74 
     75 # Send ESC (\x1b) before characters when alt is pressed.
     76 alt_send_esc: true
     77 
     78 # Key bindings
     79 #
     80 # Key bindings are specified as a list of objects. Each binding will specify a
     81 # key and modifiers required to trigger it, terminal modes where the binding is
     82 # applicable, and what should be done when the key binding fires. It can either
     83 # send a byte sequence to the running application (`chars`), execute a
     84 # predefined action (`action`) or fork and execute a specified command plus
     85 # arguments (`command`).
     86 #
     87 # Bindings are always filled by default, but will be replaced when a new binding
     88 # with the same triggers is defined. To unset a default binding, it can be
     89 # mapped to the `None` action.
     90 #
     91 # Example:
     92 #   `- { key: V, mods: Control|Shift, action: Paste }`
     93 #
     94 # Available fields:
     95 #   - key
     96 #   - mods (optional)
     97 #   - chars | action | command (exactly one required)
     98 #   - mode (optional)
     99 #
    100 # Values for `key`:
    101 #   - `A` -> `Z`
    102 #   - `F1` -> `F12`
    103 #   - `Key1` -> `Key0`
    104 #
    105 #   A full list with available key codes can be found here:
    106 #   https://docs.rs/glutin/*/glutin/enum.VirtualKeyCode.html#variants
    107 #
    108 #   Instead of using the name of the keys, the `key` field also supports using
    109 #   the scancode of the desired key. Scancodes have to be specified as a
    110 #   decimal number.
    111 #   This command will allow you to display the hex scancodes for certain keys:
    112 #     `showkey --scancodes`
    113 #
    114 # Values for `mods`:
    115 #   - Command
    116 #   - Control
    117 #   - Super
    118 #   - Shift
    119 #   - Alt
    120 #
    121 #   Multiple `mods` can be combined using `|` like this: `mods: Control|Shift`.
    122 #   Whitespace and capitalization is relevant and must match the example.
    123 #
    124 # Values for `chars`:
    125 #   The `chars` field writes the specified string to the terminal. This makes
    126 #   it possible to pass escape sequences.
    127 #   To find escape codes for bindings like `PageUp` ("\x1b[5~"), you can run
    128 #   the command `showkey -a` outside of tmux.
    129 #   Note that applications use terminfo to map escape sequences back to
    130 #   keys. It is therefore required to update the terminfo when
    131 #   changing an escape sequence.
    132 #
    133 # Values for `action`:
    134 #   - Paste
    135 #   - PasteSelection
    136 #   - Copy
    137 #   - IncreaseFontSize
    138 #   - DecreaseFontSize
    139 #   - ResetFontSize
    140 #   - ScrollPageUp
    141 #   - ScrollPageDown
    142 #   - ScrollLineUp
    143 #   - ScrollLineDown
    144 #   - ScrollToTop
    145 #   - ScrollToBottom
    146 #   - ClearHistory
    147 #   - Hide
    148 #   - Quit
    149 #   - ClearLogNotice
    150 #   - SpawnNewInstance
    151 #   - None
    152 #
    153 # Values for `command`:
    154 #   The `command` field must be a map containing a `program` string and
    155 #   an `args` array of command line parameter strings.
    156 #
    157 #   Example:
    158 #       `command: { program: "alacritty", args: ["-e", "vttest"] }`
    159 #
    160 # Values for `mode`:
    161 #   - ~AppCursor
    162 #   - AppCursor
    163 #   - ~AppKeypad
    164 #   - AppKeypad
    165 key_bindings:
    166     # Vi Mode
    167   - { key: Space,  mods: Shift|Control, mode: Vi, action: ScrollToBottom          }
    168   - { key: Space,  mods: Shift|Control,           action: ToggleViMode            }
    169   - { key: Escape,                      mode: Vi, action: ClearSelection          }
    170   - { key: I,                           mode: Vi, action: ScrollToBottom          }
    171   - { key: I,                           mode: Vi, action: ToggleViMode            }
    172   - { key: Y,      mods: Control,       mode: Vi, action: ScrollLineUp            }
    173   - { key: E,      mods: Control,       mode: Vi, action: ScrollLineDown          }
    174   - { key: G,                           mode: Vi, action: ScrollToTop             }
    175   - { key: G,      mods: Shift,         mode: Vi, action: ScrollToBottom          }
    176   - { key: B,      mods: Control,       mode: Vi, action: ScrollPageUp            }
    177   - { key: F,      mods: Control,       mode: Vi, action: ScrollPageDown          }
    178   - { key: U,      mods: Control,       mode: Vi, action: ScrollHalfPageUp        }
    179   - { key: D,      mods: Control,       mode: Vi, action: ScrollHalfPageDown      }
    180   - { key: Y,                           mode: Vi, action: Copy                    }
    181   - { key: Y,                           mode: Vi, action: ClearSelection          }
    182   - { key: Copy,                        mode: Vi, action: ClearSelection          }
    183   - { key: V,                           mode: Vi, action: ToggleNormalSelection   }
    184   - { key: V,      mods: Shift,         mode: Vi, action: ToggleLineSelection     }
    185   - { key: V,      mods: Control,       mode: Vi, action: ToggleBlockSelection    }
    186   - { key: V,      mods: Alt,           mode: Vi, action: ToggleSemanticSelection }
    187   - { key: Return,                      mode: Vi, action: Open                    }
    188   - { key: K,                           mode: Vi, action: Up                      }
    189   - { key: J,                           mode: Vi, action: Down                    }
    190   - { key: H,                           mode: Vi, action: Left                    }
    191   - { key: L,                           mode: Vi, action: Right                   }
    192   - { key: Up,                          mode: Vi, action: Up                      }
    193   - { key: Down,                        mode: Vi, action: Down                    }
    194   - { key: Left,                        mode: Vi, action: Left                    }
    195   - { key: Right,                       mode: Vi, action: Right                   }
    196   - { key: Key0,                        mode: Vi, action: First                   }
    197   - { key: Key4,   mods: Shift,         mode: Vi, action: Last                    }
    198   - { key: Key6,   mods: Shift,         mode: Vi, action: FirstOccupied           }
    199   - { key: H,      mods: Shift,         mode: Vi, action: High                    }
    200   - { key: M,      mods: Shift,         mode: Vi, action: Middle                  }
    201   - { key: L,      mods: Shift,         mode: Vi, action: Low                     }
    202   - { key: B,                           mode: Vi, action: SemanticLeft            }
    203   - { key: W,                           mode: Vi, action: SemanticRight           }
    204   - { key: E,                           mode: Vi, action: SemanticRightEnd        }
    205   - { key: B,      mods: Shift,         mode: Vi, action: WordLeft                }
    206   - { key: W,      mods: Shift,         mode: Vi, action: WordRight               }
    207   - { key: E,      mods: Shift,         mode: Vi, action: WordRightEnd            }
    208   - { key: Key5,   mods: Shift,         mode: Vi, action: Bracket                 }
    209   - { key: Slash,                       mode: Vi, action: SearchForward           }
    210   - { key: Slash,  mods: Shift,         mode: Vi, action: SearchBackward          }
    211   - { key: N,                           mode: Vi, action: SearchNext              }
    212   - { key: N,      mods: Shift,         mode: Vi, action: SearchPrevious          }
    213 
    214   # (Windows/Linux only)
    215   - { key: V,        mods: Control|Shift, action: Paste            }
    216   - { key: C,        mods: Control|Shift, action: Copy             }
    217   - { key: Insert,   mods: Shift,         action: PasteSelection   }
    218   - { key: Key0,     mods: Control,       action: ResetFontSize    }
    219   - { key: Equals,   mods: Control,       action: IncreaseFontSize }
    220   - { key: Add,      mods: Control,       action: IncreaseFontSize }
    221   - { key: Subtract, mods: Control,       action: DecreaseFontSize }
    222   - { key: Minus,    mods: Control,       action: DecreaseFontSize }
    223 
    224   - { key: Paste,                   action: Paste                            }
    225   - { key: Copy,                    action: Copy                             }
    226   - { key: L,        mods: Control, action: ClearLogNotice                   }
    227   - { key: L,        mods: Control, chars: "\x0c"                            }
    228   - { key: Home,     mods: Alt,     chars: "\x1b[1;3H"                       }
    229   - { key: Home,                    chars: "\x1bOH",        mode: AppCursor  }
    230   - { key: Home,                    chars: "\x1b[H",        mode: ~AppCursor }
    231   - { key: End,      mods: Alt,     chars: "\x1b[1;3F"                       }
    232   - { key: End,                     chars: "\x1bOF",        mode: AppCursor  }
    233   - { key: End,                     chars: "\x1b[F",        mode: ~AppCursor }
    234   - { key: PageUp,   mods: Shift,   action: ScrollPageUp,   mode: ~Alt       }
    235   - { key: PageUp,   mods: Shift,   chars: "\x1b[5;2~",     mode: Alt        }
    236   - { key: PageUp,   mods: Control, chars: "\x1b[5;5~"                       }
    237   - { key: PageUp,   mods: Alt,     chars: "\x1b[5;3~"                       }
    238   - { key: PageUp,                  chars: "\x1b[5~"                         }
    239   - { key: PageDown, mods: Shift,   action: ScrollPageDown, mode: ~Alt       }
    240   - { key: PageDown, mods: Shift,   chars: "\x1b[6;2~",     mode: Alt        }
    241   - { key: PageDown, mods: Control, chars: "\x1b[6;5~"                       }
    242   - { key: PageDown, mods: Alt,     chars: "\x1b[6;3~"                       }
    243   - { key: PageDown,                chars: "\x1b[6~"                         }
    244   - { key: Tab,      mods: Shift,   chars: "\x1b[Z"                          }
    245   - { key: Back,                    chars: "\x7f"                            }
    246   - { key: Back,     mods: Alt,     chars: "\x1b\x7f"                        }
    247   - { key: Insert,                  chars: "\x1b[2~"                         }
    248   - { key: Delete,                  chars: "\x1b[3~"                         }
    249   - { key: Left,     mods: Shift,   chars: "\x1b[1;2D"                       }
    250   - { key: Left,     mods: Control, chars: "\x1b[1;5D"                       }
    251   - { key: Left,     mods: Alt,     chars: "\x1b[1;3D"                       }
    252   - { key: Left,                    chars: "\x1b[D",        mode: ~AppCursor }
    253   - { key: Left,                    chars: "\x1bOD",        mode: AppCursor  }
    254   - { key: Right,    mods: Shift,   chars: "\x1b[1;2C"                       }
    255   - { key: Right,    mods: Control, chars: "\x1b[1;5C"                       }
    256   - { key: Right,    mods: Alt,     chars: "\x1b[1;3C"                       }
    257   - { key: Right,                   chars: "\x1b[C",        mode: ~AppCursor }
    258   - { key: Right,                   chars: "\x1bOC",        mode: AppCursor  }
    259   - { key: Up,       mods: Shift,   chars: "\x1b[1;2A"                       }
    260   - { key: Up,       mods: Control, chars: "\x1b[1;5A"                       }
    261   - { key: Up,       mods: Alt,     chars: "\x1b[1;3A"                       }
    262   - { key: Up,                      chars: "\x1b[A",        mode: ~AppCursor }
    263   - { key: Up,                      chars: "\x1bOA",        mode: AppCursor  }
    264   - { key: Down,     mods: Shift,   chars: "\x1b[1;2B"                       }
    265   - { key: Down,     mods: Control, chars: "\x1b[1;5B"                       }
    266   - { key: Down,     mods: Alt,     chars: "\x1b[1;3B"                       }
    267   - { key: Down,                    chars: "\x1b[B",        mode: ~AppCursor }
    268   - { key: Down,                    chars: "\x1bOB",        mode: AppCursor  }
    269   - { key: F1,                      chars: "\x1bOP"                          }
    270   - { key: F2,                      chars: "\x1bOQ"                          }
    271   - { key: F3,                      chars: "\x1bOR"                          }
    272   - { key: F4,                      chars: "\x1bOS"                          }
    273   - { key: F5,                      chars: "\x1b[15~"                        }
    274   - { key: F6,                      chars: "\x1b[17~"                        }
    275   - { key: F7,                      chars: "\x1b[18~"                        }
    276   - { key: F8,                      chars: "\x1b[19~"                        }
    277   - { key: F9,                      chars: "\x1b[20~"                        }
    278   - { key: F10,                     chars: "\x1b[21~"                        }
    279   - { key: F11,                     chars: "\x1b[23~"                        }
    280   - { key: F12,                     chars: "\x1b[24~"                        }
    281   - { key: F1,       mods: Shift,   chars: "\x1b[1;2P"                       }
    282   - { key: F2,       mods: Shift,   chars: "\x1b[1;2Q"                       }
    283   - { key: F3,       mods: Shift,   chars: "\x1b[1;2R"                       }
    284   - { key: F4,       mods: Shift,   chars: "\x1b[1;2S"                       }
    285   - { key: F5,       mods: Shift,   chars: "\x1b[15;2~"                      }
    286   - { key: F6,       mods: Shift,   chars: "\x1b[17;2~"                      }
    287   - { key: F7,       mods: Shift,   chars: "\x1b[18;2~"                      }
    288   - { key: F8,       mods: Shift,   chars: "\x1b[19;2~"                      }
    289   - { key: F9,       mods: Shift,   chars: "\x1b[20;2~"                      }
    290   - { key: F10,      mods: Shift,   chars: "\x1b[21;2~"                      }
    291   - { key: F11,      mods: Shift,   chars: "\x1b[23;2~"                      }
    292   - { key: F12,      mods: Shift,   chars: "\x1b[24;2~"                      }
    293   - { key: F1,       mods: Control, chars: "\x1b[1;5P"                       }
    294   - { key: F2,       mods: Control, chars: "\x1b[1;5Q"                       }
    295   - { key: F3,       mods: Control, chars: "\x1b[1;5R"                       }
    296   - { key: F4,       mods: Control, chars: "\x1b[1;5S"                       }
    297   - { key: F5,       mods: Control, chars: "\x1b[15;5~"                      }
    298   - { key: F6,       mods: Control, chars: "\x1b[17;5~"                      }
    299   - { key: F7,       mods: Control, chars: "\x1b[18;5~"                      }
    300   - { key: F8,       mods: Control, chars: "\x1b[19;5~"                      }
    301   - { key: F9,       mods: Control, chars: "\x1b[20;5~"                      }
    302   - { key: F10,      mods: Control, chars: "\x1b[21;5~"                      }
    303   - { key: F11,      mods: Control, chars: "\x1b[23;5~"                      }
    304   - { key: F12,      mods: Control, chars: "\x1b[24;5~"                      }
    305   - { key: F1,       mods: Alt,     chars: "\x1b[1;6P"                       }
    306   - { key: F2,       mods: Alt,     chars: "\x1b[1;6Q"                       }
    307   - { key: F3,       mods: Alt,     chars: "\x1b[1;6R"                       }
    308   - { key: F4,       mods: Alt,     chars: "\x1b[1;6S"                       }
    309   - { key: F5,       mods: Alt,     chars: "\x1b[15;6~"                      }
    310   - { key: F6,       mods: Alt,     chars: "\x1b[17;6~"                      }
    311   - { key: F7,       mods: Alt,     chars: "\x1b[18;6~"                      }
    312   - { key: F8,       mods: Alt,     chars: "\x1b[19;6~"                      }
    313   - { key: F9,       mods: Alt,     chars: "\x1b[20;6~"                      }
    314   - { key: F10,      mods: Alt,     chars: "\x1b[21;6~"                      }
    315   - { key: F11,      mods: Alt,     chars: "\x1b[23;6~"                      }
    316   - { key: F12,      mods: Alt,     chars: "\x1b[24;6~"                      }
    317   - { key: F1,       mods: Super,   chars: "\x1b[1;3P"                       }
    318   - { key: F2,       mods: Super,   chars: "\x1b[1;3Q"                       }
    319   - { key: F3,       mods: Super,   chars: "\x1b[1;3R"                       }
    320   - { key: F4,       mods: Super,   chars: "\x1b[1;3S"                       }
    321   - { key: F5,       mods: Super,   chars: "\x1b[15;3~"                      }
    322   - { key: F6,       mods: Super,   chars: "\x1b[17;3~"                      }
    323   - { key: F7,       mods: Super,   chars: "\x1b[18;3~"                      }
    324   - { key: F8,       mods: Super,   chars: "\x1b[19;3~"                      }
    325   - { key: F9,       mods: Super,   chars: "\x1b[20;3~"                      }
    326   - { key: F10,      mods: Super,   chars: "\x1b[21;3~"                      }
    327   - { key: F11,      mods: Super,   chars: "\x1b[23;3~"                      }
    328   - { key: F12,      mods: Super,   chars: "\x1b[24;3~"                      }
    329   - { key: NumpadEnter,             chars: "\n"                              }
    330 
    331 # Colors (Base16 Default Dark)
    332 colors:
    333   # Default colors
    334   primary:
    335     background: '#181818'
    336     foreground: '#d8d8d8'
    337 
    338   # Colors the cursor will use if `custom_cursor_colors` is true
    339   cursor:
    340     text: '#d8d8d8'
    341     cursor: '#d8d8d8'
    342 
    343   # Normal colors
    344   normal:
    345     black:   '#181818'
    346     red:     '#ab4642'
    347     green:   '#a1b56c'
    348     yellow:  '#f7ca88'
    349     blue:    '#7cafc2'
    350     magenta: '#ba8baf'
    351     cyan:    '#86c1b9'
    352     white:   '#d8d8d8'
    353 
    354   # Bright colors
    355   bright:
    356     black:   '#585858'
    357     red:     '#ab4642'
    358     green:   '#a1b56c'
    359     yellow:  '#f7ca88'
    360     blue:    '#7cafc2'
    361     magenta: '#ba8baf'
    362     cyan:    '#86c1b9'
    363     white:   '#f8f8f8'