Alacritty Terminal Emulator Configuration

Installation

Install Alacritty using your package manager:

sudo pacman -S alacritty

Configuration

Change to the /home/<username> directory:

cd ~

Inside ~/.config, create an alacritty directory to store the Alacritty configuration file:

mkdir .config/alacritty

Copy the example Alacritty configuration file from /usr/share/doc/alacritty/example/alacritty.yml to the directory created prior:

cp /usr/share/doc/alacritty/example/alacritty.yml .config/alacritty/alacritty.yml

Edit the alacritty.yml configuration file:

nvim .config/alacritty/alacritty.yml

Adjust Font Size

Uncomment the lines containing font: and size: and then set the font size to your preference.

Allow Dynamic Window Titling

Uncomment the lines containing window: and dynamic_title: true to allow terminal applications to change Alacritty's window title.

Change the Theme

Create a folder for themes:

mkdir .config/alacritty/themes

Within this folder, you can add various .yml themes such as the ones provided in the themes directory of the Alacritty theme repository.

As a simple example, create a theme.yml file:

nvim .config/alacritty/themes/theme.yml

Find a theme you like and copy its contents into the theme.yml file. For example, the contents from this vim-moonfly-colors blob.

Edit the main Alacritty configuration file:

nvim .config/alacritty/alacritty.yml

Uncomment/replace the import section with the following lines:

import:
 - ~/.config/alacritty/themes/theme.yml

Note that there is only one space before the - in the above line. .yml files are white-space sensitive and will not be parsed correctly if erroneous white-space is added or removed.

Once you save the alacritty.yml file, Alacritty should automatically load the new theme. Additional .yml themes can be added to the themes folder and enabled by changing the import statement to select the desired theme.