1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

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
This commit is contained in:
Joe Wilm 2017-02-10 09:15:36 -08:00
parent fbc7b72271
commit 98c01457df
2 changed files with 42 additions and 69 deletions

View file

@ -3,7 +3,7 @@
# (changes require restart) # (changes require restart)
dimensions: dimensions:
columns: 80 columns: 80
lines: 40 lines: 24
# The FreeType rasterizer needs to know the device DPI for best results # The FreeType rasterizer needs to know the device DPI for best results
# (changes require restart) # (changes require restart)
@ -63,6 +63,8 @@ colors:
primary: primary:
background: '0x000000' background: '0x000000'
foreground: '0xeaeaea' foreground: '0xeaeaea'
# Colors the cursor will use if `custom_cursor_colors` is true
cursor: cursor:
background: '0xffffff' background: '0xffffff'
foreground: '0x000000' foreground: '0x000000'
@ -89,35 +91,6 @@ colors:
cyan: '0x54ced6' cyan: '0x54ced6'
white: '0x2a2a2a' 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 # Visual Bell
# #
# Any time the BEL code is received, Alacritty "rings" the visual bell. Once # 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. # To completely disable the visual bell, set its duration to 0.
# #
#visual_bell: visual_bell:
# animation: EaseOutExpo animation: EaseOutExpo
# duration: 150 duration: 150
# Key bindings # Key bindings
# #
@ -177,10 +150,10 @@ key_bindings:
- { key: C, mods: Command, action: Copy } - { key: C, mods: Command, action: Copy }
- { key: Q, mods: Command, action: Quit } - { key: Q, mods: Command, action: Quit }
- { key: W, mods: Command, action: Quit } - { key: W, mods: Command, action: Quit }
- { key: Home, chars: "\x1b[H", mode: ~AppCursor } - { key: Home, chars: "\x1bOH", mode: AppCursor }
- { key: Home, chars: "\x1b[1~", mode: AppCursor } - { key: Home, chars: "\x1b[1~", mode: ~AppCursor }
- { key: End, chars: "\x1b[F", mode: ~AppCursor } - { key: End, chars: "\x1bOF", mode: AppCursor }
- { key: End, chars: "\x1b[4~", mode: AppCursor } - { key: End, chars: "\x1b[4~", mode: ~AppCursor }
- { key: PageUp, chars: "\x1b[5~" } - { key: PageUp, chars: "\x1b[5~" }
- { key: PageDown, chars: "\x1b[6~" } - { key: PageDown, chars: "\x1b[6~" }
- { key: Left, mods: Shift, chars: "\x1b[1;2D" } - { key: Left, mods: Shift, chars: "\x1b[1;2D" }
@ -217,6 +190,7 @@ key_bindings:
- { key: F11, chars: "\x1b[23~" } - { key: F11, chars: "\x1b[23~" }
- { key: F12, chars: "\x1b[24~" } - { key: F12, chars: "\x1b[24~" }
- { key: Back, chars: "\x7f" } - { key: Back, chars: "\x7f" }
- { key: Insert, chars: "\x1b[2~" }
- { key: Delete, chars: "\x1b[3~", mode: AppKeypad } - { key: Delete, chars: "\x1b[3~", mode: AppKeypad }
- { key: Delete, chars: "\x1b[P", 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. # 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. # Entries in shell.args are passed unmodified as arguments to the shell.
#
#shell: #shell:
# program: /bin/bash # program: /bin/bash
# args: # args:

View file

@ -3,7 +3,7 @@
# (changes require restart) # (changes require restart)
dimensions: dimensions:
columns: 80 columns: 80
lines: 40 lines: 24
# The FreeType rasterizer needs to know the device DPI for best results # The FreeType rasterizer needs to know the device DPI for best results
# (changes require restart) # (changes require restart)
@ -63,6 +63,8 @@ colors:
primary: primary:
background: '0x000000' background: '0x000000'
foreground: '0xeaeaea' foreground: '0xeaeaea'
# Colors the cursor will use if `custom_cursor_colors` is true
cursor: cursor:
background: '0xffffff' background: '0xffffff'
foreground: '0x000000' foreground: '0x000000'
@ -89,34 +91,31 @@ colors:
cyan: '0x54ced6' cyan: '0x54ced6'
white: '0x2a2a2a' white: '0x2a2a2a'
# Colors (Solarized Dark) # Visual Bell
# colors:
# # Default colors
# primary:
# background: '0x002b36'
# foreground: '0x839496'
# #
# # Normal colors # Any time the BEL code is received, Alacritty "rings" the visual bell. Once
# normal: # rung, the terminal background will be set to white and transition back to the
# black: '0x073642' # default background color. You can control the rate of this transition by
# red: '0xdc322f' # setting the `duration` property (represented in milliseconds). You can also
# green: '0x859900' # configure the transition function by setting the `animation` property.
# yellow: '0xb58900'
# blue: '0x268bd2'
# magenta: '0xd33682'
# cyan: '0x2aa198'
# white: '0xeee8d5'
# #
# # Bright colors # Possible values for `animation`
# bright: # `Ease`
# black: '0x002b36' # `EaseOut`
# red: '0xcb4b16' # `EaseOutSine`
# green: '0x586e75' # `EaseOutQuad`
# yellow: '0x657b83' # `EaseOutCubic`
# blue: '0x839496' # `EaseOutQuart`
# magenta: '0x6c71c4' # `EaseOutQuint`
# cyan: '0x93a1a1' # `EaseOutExpo`
# white: '0xfdf6e3' # `EaseOutCirc`
# `Linear`
#
# To completely disable the visual bell, set its duration to 0.
#
visual_bell:
animation: EaseOutExpo
duration: 150
# Key bindings # Key bindings
# #
@ -151,10 +150,10 @@ key_bindings:
- { key: C, mods: Command, action: Copy } - { key: C, mods: Command, action: Copy }
- { key: Q, mods: Command, action: Quit } - { key: Q, mods: Command, action: Quit }
- { key: W, mods: Command, action: Quit } - { key: W, mods: Command, action: Quit }
- { key: Home, chars: "\x1b[H", mode: ~AppCursor } - { key: Home, chars: "\x1bOH", mode: AppCursor }
- { key: Home, chars: "\x1b[1~", mode: AppCursor } - { key: Home, chars: "\x1b[1~", mode: ~AppCursor }
- { key: End, chars: "\x1b[F", mode: ~AppCursor } - { key: End, chars: "\x1bOF", mode: AppCursor }
- { key: End, chars: "\x1b[4~", mode: AppCursor } - { key: End, chars: "\x1b[4~", mode: ~AppCursor }
- { key: PageUp, chars: "\x1b[5~" } - { key: PageUp, chars: "\x1b[5~" }
- { key: PageDown, chars: "\x1b[6~" } - { key: PageDown, chars: "\x1b[6~" }
- { key: Left, mods: Shift, chars: "\x1b[1;2D" } - { key: Left, mods: Shift, chars: "\x1b[1;2D" }
@ -191,6 +190,7 @@ key_bindings:
- { key: F11, chars: "\x1b[23~" } - { key: F11, chars: "\x1b[23~" }
- { key: F12, chars: "\x1b[24~" } - { key: F12, chars: "\x1b[24~" }
- { key: Back, chars: "\x7f" } - { key: Back, chars: "\x7f" }
- { key: Insert, chars: "\x1b[2~" }
- { key: Delete, chars: "\x1b[3~", mode: AppKeypad } - { key: Delete, chars: "\x1b[3~", mode: AppKeypad }
- { key: Delete, chars: "\x1b[P", mode: ~AppKeypad } - { key: Delete, chars: "\x1b[P", mode: ~AppKeypad }