From 13c56c4d9b7377c0d76c6a212ca8556d1d355a64 Mon Sep 17 00:00:00 2001 From: Jake Runyan Date: Mon, 9 Sep 2024 16:57:39 -0700 Subject: [PATCH] Add alacritty --- alacritty/README.md | 38 +++++++++++++++++++++++++++++ alacritty/alacritty-macos.toml | 42 +++++++++++++++++++++++++++++++++ alacritty/alacritty-ubuntu.toml | 42 +++++++++++++++++++++++++++++++++ 3 files changed, 122 insertions(+) create mode 100644 alacritty/README.md create mode 100644 alacritty/alacritty-macos.toml create mode 100644 alacritty/alacritty-ubuntu.toml diff --git a/alacritty/README.md b/alacritty/README.md new file mode 100644 index 0000000..e1207c0 --- /dev/null +++ b/alacritty/README.md @@ -0,0 +1,38 @@ +# Alacritty +A terminal that can handle a nerd font. + +## MacOS +1. Download a release from `https://github.com/alacritty/alacritty/releases` or get it using Homebrew +``` +brew install --cask alacritty +``` +2. Install a nerd font. This is just some one suggested online. +``` +brew install font-meslo-lg-nerd-font +``` +3. Create an Alacritty config folder and link the alacritty config in this repo into there. +``` +mkdir -p ~/.config/alacritty +ln -sfn /path/to/dotfiles/lazyvim/alacritty-macos.toml ~/.config/alacritty/alacritty.toml +``` + +## Ubuntu +1. Install Alacritty through a third-party PPA. +``` +sudo add-apt-repository ppa:aslatter/ppa +sudo apt update +sudo apt install alacritty +``` +2. Install a nerd font (I am using "MesloLG Nerd Font" from `https://www.nerdfonts.com/font-downloads`) +``` +unzip Meslo.zip -d Meslo +mkdir ~/.local/share/fonts +cp Meslo/*.ttf ~/.local/share/fonts +fc-cache -fv +rm -r Meslo Meslo.zip +``` +3. Create an Alacritty config folder and link the alacritty config in this repo into there. +``` +mkdir -p ~/.config/alacritty +ln -sfn /path/to/dotfiles/lazyvim/alacritty-ubuntu.toml ~/.config/alacritty/alacritty.toml +``` diff --git a/alacritty/alacritty-macos.toml b/alacritty/alacritty-macos.toml new file mode 100644 index 0000000..3e2db3d --- /dev/null +++ b/alacritty/alacritty-macos.toml @@ -0,0 +1,42 @@ +[env] +TERM = "xterm-256color" + +[window] +padding.x = 10 +padding.y = 10 + +opacity = 0.9 +blur = true + +option_as_alt = "Both" + +[font] +normal.family = "MesloLGS Nerd Font Mono" + +size = 14 + +[colors.primary] +background = "#1b1f32" +foreground = "#9094a7" + +[colors.normal] +black = "#1b1f32" +red = "#627af4" +green = "#67c9e4" +yellow = "#99e9ff" +blue = "#7289fd" +magenta = "#67c9e4" +cyan = "#8b9efd" +white = "#9094a7" + +[colors.bright] +black = "#51587b" +red = "#75d5f0" +green = "#252a41" +yellow = "#444b6f" +blue = "#5e6587" +magenta = "#c3cdfe" +cyan = "#5cbcd6" +white = "#9094a7" + + diff --git a/alacritty/alacritty-ubuntu.toml b/alacritty/alacritty-ubuntu.toml new file mode 100644 index 0000000..cfb2958 --- /dev/null +++ b/alacritty/alacritty-ubuntu.toml @@ -0,0 +1,42 @@ +[env] +TERM = "xterm-256color" + +[window] +padding.x = 10 +padding.y = 10 + +opacity = 0.9 +blur = true + +option_as_alt = "Both" + +[font] +normal.family = "MesloLGS Nerd Font" + +size = 12 + +[colors.primary] +background = "#1b1f32" +foreground = "#9094a7" + +[colors.normal] +black = "#1b1f32" +red = "#627af4" +green = "#67c9e4" +yellow = "#99e9ff" +blue = "#7289fd" +magenta = "#67c9e4" +cyan = "#8b9efd" +white = "#9094a7" + +[colors.bright] +black = "#51587b" +red = "#75d5f0" +green = "#252a41" +yellow = "#444b6f" +blue = "#5e6587" +magenta = "#c3cdfe" +cyan = "#5cbcd6" +white = "#9094a7" + +