From 98c01457df48e6bada23e4ac864e52ec0fa02d75 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Fri, 10 Feb 2017 09:15:36 -0800 Subject: [PATCH] Improvements to default config * Dimensions default to 80x24 which is standard for terminals * Remove commented out Solarized color scheme * Enable visual bell by default * Add visual bell config to macos defaults * Fix default keybindings to match xterm terminfo on Ubuntu 16.04 --- alacritty.yml | 49 ++++++++--------------------------- alacritty_macos.yml | 62 ++++++++++++++++++++++----------------------- 2 files changed, 42 insertions(+), 69 deletions(-) diff --git a/alacritty.yml b/alacritty.yml index 28ddf365..a9df242a 100644 --- a/alacritty.yml +++ b/alacritty.yml @@ -3,7 +3,7 @@ # (changes require restart) dimensions: columns: 80 - lines: 40 + lines: 24 # The FreeType rasterizer needs to know the device DPI for best results # (changes require restart) @@ -63,6 +63,8 @@ colors: primary: background: '0x000000' foreground: '0xeaeaea' + + # Colors the cursor will use if `custom_cursor_colors` is true cursor: background: '0xffffff' foreground: '0x000000' @@ -89,35 +91,6 @@ colors: cyan: '0x54ced6' white: '0x2a2a2a' -# Colors (Solarized Dark) -# colors: -# # Default colors -# primary: -# background: '0x002b36' -# foreground: '0x839496' -# -# # Normal colors -# normal: -# black: '0x073642' -# red: '0xdc322f' -# green: '0x859900' -# yellow: '0xb58900' -# blue: '0x268bd2' -# magenta: '0xd33682' -# cyan: '0x2aa198' -# white: '0xeee8d5' -# -# # Bright colors -# bright: -# black: '0x002b36' -# red: '0xcb4b16' -# green: '0x586e75' -# yellow: '0x657b83' -# blue: '0x839496' -# magenta: '0x6c71c4' -# cyan: '0x93a1a1' -# white: '0xfdf6e3' - # Visual Bell # # Any time the BEL code is received, Alacritty "rings" the visual bell. Once @@ -140,9 +113,9 @@ colors: # # To completely disable the visual bell, set its duration to 0. # -#visual_bell: -# animation: EaseOutExpo -# duration: 150 +visual_bell: + animation: EaseOutExpo + duration: 150 # Key bindings # @@ -177,10 +150,10 @@ key_bindings: - { key: C, mods: Command, action: Copy } - { key: Q, mods: Command, action: Quit } - { key: W, mods: Command, action: Quit } - - { key: Home, chars: "\x1b[H", mode: ~AppCursor } - - { key: Home, chars: "\x1b[1~", mode: AppCursor } - - { key: End, chars: "\x1b[F", mode: ~AppCursor } - - { key: End, chars: "\x1b[4~", mode: AppCursor } + - { key: Home, chars: "\x1bOH", mode: AppCursor } + - { key: Home, chars: "\x1b[1~", mode: ~AppCursor } + - { key: End, chars: "\x1bOF", mode: AppCursor } + - { key: End, chars: "\x1b[4~", mode: ~AppCursor } - { key: PageUp, chars: "\x1b[5~" } - { key: PageDown, chars: "\x1b[6~" } - { key: Left, mods: Shift, chars: "\x1b[1;2D" } @@ -217,6 +190,7 @@ key_bindings: - { key: F11, chars: "\x1b[23~" } - { key: F12, chars: "\x1b[24~" } - { key: Back, chars: "\x7f" } + - { key: Insert, chars: "\x1b[2~" } - { key: Delete, chars: "\x1b[3~", mode: AppKeypad } - { key: Delete, chars: "\x1b[P", mode: ~AppKeypad } @@ -249,7 +223,6 @@ selection: # # You can set shell.program to the path of your favorite shell, e.g. /bin/fish. # Entries in shell.args are passed unmodified as arguments to the shell. -# #shell: # program: /bin/bash # args: diff --git a/alacritty_macos.yml b/alacritty_macos.yml index 160b85a0..ceec0aae 100644 --- a/alacritty_macos.yml +++ b/alacritty_macos.yml @@ -3,7 +3,7 @@ # (changes require restart) dimensions: columns: 80 - lines: 40 + lines: 24 # The FreeType rasterizer needs to know the device DPI for best results # (changes require restart) @@ -63,6 +63,8 @@ colors: primary: background: '0x000000' foreground: '0xeaeaea' + + # Colors the cursor will use if `custom_cursor_colors` is true cursor: background: '0xffffff' foreground: '0x000000' @@ -89,34 +91,31 @@ colors: cyan: '0x54ced6' white: '0x2a2a2a' -# Colors (Solarized Dark) -# colors: -# # Default colors -# primary: -# background: '0x002b36' -# foreground: '0x839496' +# Visual Bell # -# # Normal colors -# normal: -# black: '0x073642' -# red: '0xdc322f' -# green: '0x859900' -# yellow: '0xb58900' -# blue: '0x268bd2' -# magenta: '0xd33682' -# cyan: '0x2aa198' -# white: '0xeee8d5' +# Any time the BEL code is received, Alacritty "rings" the visual bell. Once +# rung, the terminal background will be set to white and transition back to the +# default background color. You can control the rate of this transition by +# setting the `duration` property (represented in milliseconds). You can also +# configure the transition function by setting the `animation` property. # -# # Bright colors -# bright: -# black: '0x002b36' -# red: '0xcb4b16' -# green: '0x586e75' -# yellow: '0x657b83' -# blue: '0x839496' -# magenta: '0x6c71c4' -# cyan: '0x93a1a1' -# white: '0xfdf6e3' +# Possible values for `animation` +# `Ease` +# `EaseOut` +# `EaseOutSine` +# `EaseOutQuad` +# `EaseOutCubic` +# `EaseOutQuart` +# `EaseOutQuint` +# `EaseOutExpo` +# `EaseOutCirc` +# `Linear` +# +# To completely disable the visual bell, set its duration to 0. +# +visual_bell: + animation: EaseOutExpo + duration: 150 # Key bindings # @@ -151,10 +150,10 @@ key_bindings: - { key: C, mods: Command, action: Copy } - { key: Q, mods: Command, action: Quit } - { key: W, mods: Command, action: Quit } - - { key: Home, chars: "\x1b[H", mode: ~AppCursor } - - { key: Home, chars: "\x1b[1~", mode: AppCursor } - - { key: End, chars: "\x1b[F", mode: ~AppCursor } - - { key: End, chars: "\x1b[4~", mode: AppCursor } + - { key: Home, chars: "\x1bOH", mode: AppCursor } + - { key: Home, chars: "\x1b[1~", mode: ~AppCursor } + - { key: End, chars: "\x1bOF", mode: AppCursor } + - { key: End, chars: "\x1b[4~", mode: ~AppCursor } - { key: PageUp, chars: "\x1b[5~" } - { key: PageDown, chars: "\x1b[6~" } - { key: Left, mods: Shift, chars: "\x1b[1;2D" } @@ -191,6 +190,7 @@ key_bindings: - { key: F11, chars: "\x1b[23~" } - { key: F12, chars: "\x1b[24~" } - { key: Back, chars: "\x7f" } + - { key: Insert, chars: "\x1b[2~" } - { key: Delete, chars: "\x1b[3~", mode: AppKeypad } - { key: Delete, chars: "\x1b[P", mode: ~AppKeypad }