Configure alacritty

This commit is contained in:
Cyryl Płotnicki 2019-05-02 14:56:08 +01:00
parent 8d0791935b
commit 39d71f6e25
2 changed files with 175 additions and 160 deletions

View file

@ -4,13 +4,13 @@
# environment variables. Some entries may override variables # environment variables. Some entries may override variables
# set by alacritty itself. # set by alacritty itself.
#env: #env:
# TERM variable # TERM variable
# #
# This value is used to set the `$TERM` environment variable for # This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will # each instance of Alacritty. If it is not present, alacritty will
# check the local terminfo database and use `alacritty` if it is # check the local terminfo database and use `alacritty` if it is
# available, otherwise `xterm-256color` is used. # available, otherwise `xterm-256color` is used.
#TERM: xterm-256color #TERM: xterm-256color
window: window:
# Window dimensions (changes require restart) # Window dimensions (changes require restart)
@ -51,8 +51,16 @@ window:
# - buttonless: Title bar, transparent background, but no title bar buttons # - buttonless: Title bar, transparent background, but no title bar buttons
decorations: none decorations: none
# When true, alacritty starts maximized. # Startup Mode (changes require restart)
start_maximized: true #
# Values for `startup_mode`:
# - Windowed
# - Maximized
# - Fullscreen
#
# Values for `startup_mode` (macOS only):
# - SimpleFullscreen
startup_mode: Maximized
scrolling: scrolling:
# Maximum number of lines in the scrollback buffer. # Maximum number of lines in the scrollback buffer.
@ -86,6 +94,7 @@ tabspaces: 4
# Font configuration (changes require restart) # Font configuration (changes require restart)
font: font:
family: DejaVu Sans Mono for Powerline
# Normal (roman) font face # Normal (roman) font face
#normal: #normal:
# Font family # Font family
@ -94,7 +103,7 @@ font:
# - (macOS) Menlo # - (macOS) Menlo
# - (Linux) monospace # - (Linux) monospace
# - (Windows) Consolas # - (Windows) Consolas
family: DejaVu Sans Mono for Powerline #family: monospace
# The `style` can be specified to pick a specific face. # The `style` can be specified to pick a specific face.
#style: Regular #style: Regular
@ -122,7 +131,7 @@ font:
#style: Italic #style: Italic
# Point size # Point size
size: 8.0 size: 12.0
# Offset is the extra space around each character. `offset.y` can be thought of # Offset is the extra space around each character. `offset.y` can be thought of
# as modifying the line spacing, and `offset.x` as modifying the letter spacing. # as modifying the line spacing, and `offset.x` as modifying the letter spacing.
@ -166,8 +175,8 @@ draw_bold_text_with_bright_colors: true
colors: colors:
# Default colors # Default colors
primary: primary:
background: "0x000000" background: '0x000000'
foreground: "0xeaeaea" foreground: '0xeaeaea'
# Bright and dim foreground colors # Bright and dim foreground colors
# #
@ -196,25 +205,25 @@ colors:
# Normal colors # Normal colors
normal: normal:
black: "0x000000" black: '0x000000'
red: "0xd54e53" red: '0xd54e53'
green: "0xb9ca4a" green: '0xb9ca4a'
yellow: "0xe6c547" yellow: '0xe6c547'
blue: "0x7aa6da" blue: '0x7aa6da'
magenta: "0xc397d8" magenta: '0xc397d8'
cyan: "0x70c0ba" cyan: '0x70c0ba'
white: "0xeaeaea" white: '0xeaeaea'
# Bright colors # Bright colors
bright: bright:
black: "0x666666" black: '0x666666'
red: "0xff3334" red: '0xff3334'
green: "0x9ec400" green: '0x9ec400'
yellow: "0xe7c547" yellow: '0xe7c547'
blue: "0x7aa6da" blue: '0x7aa6da'
magenta: "0xb77ee0" magenta: '0xb77ee0'
cyan: "0x54ced6" cyan: '0x54ced6'
white: "0xffffff" white: '0xffffff'
# Dim colors # Dim colors
# #
@ -264,7 +273,7 @@ colors:
visual_bell: visual_bell:
animation: EaseOutExpo animation: EaseOutExpo
duration: 0 duration: 0
color: "0xffffff" color: '0xffffff'
# Background opacity # Background opacity
# #
@ -325,7 +334,7 @@ mouse:
modifiers: None modifiers: None
selection: selection:
semantic_escape_chars: ',│`|:"'' ()[]{}<>' semantic_escape_chars: ",│`|:\"' ()[]{}<>"
# When set to `true`, selected text will be copied to the primary clipboard. # When set to `true`, selected text will be copied to the primary clipboard.
save_to_clipboard: false save_to_clipboard: false
@ -449,8 +458,12 @@ alt_send_esc: true
# - Quit # - Quit
# - ClearLogNotice # - ClearLogNotice
# - SpawnNewInstance # - SpawnNewInstance
# - ToggleFullscreen
# - None # - None
# #
# Values for `action` (macOS only):
# - ToggleSimpleFullscreen: Enters fullscreen without occupying another space
#
# Values for `command`: # Values for `command`:
# The `command` field must be a map containing a `program` string and # The `command` field must be a map containing a `program` string and
# an `args` array of command line parameter strings. # an `args` array of command line parameter strings.

View file

@ -70,6 +70,8 @@ ln -vfs "$DIR/tools" ~/
mkdir -vp ~/.config/terminator mkdir -vp ~/.config/terminator
rm -f ~/.config/terminator/config rm -f ~/.config/terminator/config
ln "$DIR/.config/terminator/config" ~/.config/terminator/config ln "$DIR/.config/terminator/config" ~/.config/terminator/config
mkdir -vp "$HOME/.config/alacritty/"
ln -vfs "$DIR/.alacritty.yml" "$HOME/.config/alacritty/alacritty.yml"
mkdir -p ~/.cargo/ mkdir -p ~/.cargo/
echo "all links done" echo "all links done"