[MEMO] [TERMINAL] Alacritty

Introduction

Made by cross-platform Rust and GPU-accelerated and customizable with dotfile, it's an advanced terminal with 20,000 git stars

Development environment

Ubuntu

Install

https://github.com/alacritty/alacritty

sudo add-apt-repository ppa:mmstick76/alacritty
sudo apt install alacritty

Setting

https://github.com/alacritty/alacritty/wiki

Window size

Know the resolution and DPI

xdpyinfo G -B 2 resolution

screen #0:
  dimensions:    2560x1440 pixels (677x381 millimeters)
  resolution:    96x96 dots per inch

Set in yml

Small

:~/.config/alacritty/alacritty.yml


window:
  dimensions:
    columns: 80 #Width(The unit is DPI)
    lines: 30 #Vertical width

Large

:~/.config/alacritty/alacritty.yml


window:
  dimensions:
    columns: 115 #Width(The unit is DPI)
    lines: 100 #Vertical width

Set by CLI

alacritty -d 80 30

Window display position

Below, the setting for left justification

:~/.config/alacritty/alacritty.yml


window: 
  dimensions:
    columns: ...
    lines: ...
  #Left justified
  position:
    x: 0  
    y: 0

Font style

:~/.config/alacritty/alacritty.yml


# Font configuration (changes require restart)
font:
  # The normal (roman) font face to use.
  normal:
    family: Ubuntu Mono
    # Style can be specified to pick a specific face.
    style: Regular

  # The bold font face
  bold:
    family: Ubuntu Mono
    # Style can be specified to pick a specific face.
    # style: Bold

  # The italic font face
  italic:
    family: Ubuntu Mono
    # Style can be specified to pick a specific face.
    # style: Italic

  size: 14.0

Theme

Dark system

:~/.config/alacritty/alacritty.yml


# Colors (Monokai Dark)
colors:
  # Default colors
  primary:
    background: '0x272822'
    foreground: '0xF8F8F2'

  # Normal colors
  normal:
   black:   '0x272822'
   red:     '0xF92672'
   green:   '0xA6E22E'
   yellow:  '0xF4BF75'
   blue:    '0x66D9EF'
   magenta: '0xAE81FF'
   cyan:    '0xA1EFE4'
   white:   '0xF8F8F2'

  # Bright colors
  bright:
   black:   '0x75715E'
   red:     '0xF92672'
   green:   '0xA6E22E'
   yellow:  '0xF4BF75'
   blue:    '0x66D9EF'
   magenta: '0xAE81FF'
   cyan:    '0xA1EFE4'
   white:   '0xF9F8F5'

Light system

:~/.config/alacritty/alacritty.yml


# Colors (Pencil Light)
colors:
 # Default Colors
 primary:
   background: '#f1f1f1'
   foreground: '#424242'
 # Normal colors
 normal:
   black:   '#212121'
   red:     '#c30771'
   green:   '#10a778'
   yellow:  '#a89c14'
   blue:    '#008ec4'
   magenta: '#523c79'
   cyan:    '#20a5ba'
   white:   '#e0e0e0'
 # Bright colors
 bright:
   black:   '#212121'
   red:     '#fb007a'
   green:   '#5fd7af'
   yellow:  '#f3e430'
   blue:    '#20bbfc'
   magenta: '#6855de'
   cyan:    '#4fb8cc'
   white:   '#f1f1f1'

Recommended Posts

[MEMO] [TERMINAL] Alacritty
[Memo] [terminal] xfce-terminal
[MEMO] [TERMINAL] HYPER + FiraCode
gzip memo
Raspberry-pi memo
Pandas memo
HackerRank memo
Python memo
python memo
graphene memo
Flask memo
pyenv memo
Matplotlib memo
pytest memo
sed memo
Python memo
BeautifulSoup4 memo
networkx memo
python memo
tomcat memo
command memo
Generator memo.
psycopg2 memo
Python memo
SSH memo
Command memo
Memo: rtl8812
pandas memo
Shell memo
Python memo
Pycharm memo
Python memo