Install and Configure Alacritty on Ubuntu 22.04
Install
Install dependencies:
apt install cmake g++ pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev python3 -y
Clone, compile and install:
git clone https://github.com/jwilm/alacrittycd alacrittycargo build --release
Customization
sudo mkdir /$HOME/.config/alacritty
vim /$HOME/.config/alacritty/alacritty.toml
Add theme:
import = [ "~/.config/alacritty/themes/themes/gruvbox_dark.toml"]
Or select default theme by using alacritty-themes
command:
Set default shell:
[shell]args = ['--login']program = "/usr/bin/zsh"
Configure cursor, font size, font scheme and window size:
[cursor]style = "Beam"
[font]size = 16.0
[font.normal]family = "RobotoMono Nerd Font"
[window]startup_mode = "Windowed"dynamic_padding = trueopacity = 1.0
[window.padding]x = 6y = 0
Color scheme:
[colors.normal]black = "#21222c"red = "#ff5555"green = "#50fa7b"yellow = "#f1fa8c"blue = "#bd93f9"magenta = "#ff79c6"cyan = "#8be9fd"white = "#f8f8f2"
[colors.primary]background = "#282a36"foreground = "#f8f8f2"
[colors.cursor]text = "CellBackground"cursor = "CellForeground"
Full config:
import = [ "~/.config/alacritty/themes/themes/gruvbox_dark.toml"]
[shell]args = ['--login']program = "/usr/bin/zsh"
[cursor]style = "Beam"
[font]size = 16.0
[font.normal]family = "RobotoMono Nerd Font"
[window]startup_mode = "Windowed"dynamic_padding = trueopacity = 1.0
[window.padding]x = 6y = 0
[colors.normal]black = "#21222c"red = "#ff5555"green = "#50fa7b"yellow = "#f1fa8c"blue = "#bd93f9"magenta = "#ff79c6"cyan = "#8be9fd"white = "#f8f8f2"
[colors.primary]background = "#282a36"foreground = "#f8f8f2"
[colors.cursor]text = "CellBackground"cursor = "CellForeground"