Skip to content

Instantly share code, notes, and snippets.

@lvaylet
Last active August 3, 2021 07:36
Show Gist options
  • Save lvaylet/1071c23a6c5f0d68c8731fe12997d909 to your computer and use it in GitHub Desktop.
Save lvaylet/1071c23a6c5f0d68c8731fe12997d909 to your computer and use it in GitHub Desktop.
Install Alacritty system-wide on Ubuntu with DistroTube's config

10 - Alacritty

Install the dependencies with:

sudo apt install -y cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev python3

Create the config directory with

mkdir -p ~/.config/alacritty

Download Derek's config file with:

cd ~/.config/alacritty
curl -fLo alacritty.yml https://gitlab.com/dwt1/dotfiles/-/raw/master/.config/alacritty/alacritty.yml

At the time of writing (2021-08-03), Derek uses the Source Code Pro font. Adjust the fonts in ~/.config.alacritty/alacritty.yml depending on your local fonts.

Build the Alacritty binary with:

sudo apt install -y cargo
cargo install alacritty

Add /home/laurent/.cargo/bin to your PATH with:

export PATH=$PATH:/home/laurent/.cargo/bin

and add this line to ~/.bashrc to make the change permament.

Alternatively, copy the binary to /usr/local/bin so dmenu and xmobar can see it:

sudo cp /home/laurent/.cargo/bin/alacritty /usr/local/bin/

Finally, run Alacritty with alacritty from dmenu or anywhere else.

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment