Add Window configuration

This commit is contained in:
Jake Runyan 2026-01-18 23:07:42 -08:00
parent 2d37ddb0d0
commit d76309c209
2 changed files with 59 additions and 6 deletions

View File

@ -3,28 +3,28 @@ A terminal that can handle a nerd font. Used alongside lazyvim.
## MacOS ## MacOS
1. Download a release from `https://github.com/alacritty/alacritty/releases` or get it using Homebrew 1. Download a release from `https://github.com/alacritty/alacritty/releases` or get it using Homebrew
``` ```bash
brew install --cask alacritty brew install --cask alacritty
``` ```
2. Install a nerd font. This is just some one suggested online. 2. Install a nerd font. This is just some one suggested online.
``` ```bash
brew install font-meslo-lg-nerd-font brew install font-meslo-lg-nerd-font
``` ```
3. Create an Alacritty config folder and link the alacritty config in this repo into there. 3. Create an Alacritty config folder and link the alacritty config in this repo into there.
``` ```bash
mkdir -p ~/.config/alacritty mkdir -p ~/.config/alacritty
ln -sfn /path/to/dotfiles/lazyvim/alacritty-macos.toml ~/.config/alacritty/alacritty.toml ln -sfn /path/to/dotfiles/lazyvim/alacritty-macos.toml ~/.config/alacritty/alacritty.toml
``` ```
## Ubuntu ## Ubuntu
1. Install Alacritty through a third-party PPA. 1. Install Alacritty through a third-party PPA.
``` ```bash
sudo add-apt-repository ppa:aslatter/ppa sudo add-apt-repository ppa:aslatter/ppa
sudo apt update sudo apt update
sudo apt install alacritty sudo apt install alacritty
``` ```
2. Install a nerd font (I am using "MesloLG Nerd Font" from `https://www.nerdfonts.com/font-downloads`) 2. Install a nerd font (I am using "MesloLG Nerd Font" from `https://www.nerdfonts.com/font-downloads`)
``` ```bash
unzip Meslo.zip -d Meslo unzip Meslo.zip -d Meslo
mkdir ~/.local/share/fonts mkdir ~/.local/share/fonts
cp Meslo/*.ttf ~/.local/share/fonts cp Meslo/*.ttf ~/.local/share/fonts
@ -32,7 +32,19 @@ fc-cache -fv
rm -r Meslo Meslo.zip rm -r Meslo Meslo.zip
``` ```
3. Create an Alacritty config folder and link the alacritty config in this repo into there. 3. Create an Alacritty config folder and link the alacritty config in this repo into there.
``` ```bash
mkdir -p ~/.config/alacritty mkdir -p ~/.config/alacritty
ln -sfn /path/to/dotfiles/alacritty/alacritty-ubuntu.toml ~/.config/alacritty/alacritty.toml ln -sfn /path/to/dotfiles/alacritty/alacritty-ubuntu.toml ~/.config/alacritty/alacritty.toml
``` ```
## Windows
1. Install [Alacritty](https://alacritty.org/).
2. Install a Nerd Font (
Download nerd font of choice. I am using [MesoLG Nerd Font](https://github.com/ryanoasis/nerd-fonts/releases/download/v3.4.0/Meslo.zip).
Right click and select "Install".
3. Windows will not follow WSL symlinks, so you have to do it their way:
```windows
mkdir C:\Users\username\AppData\Roaming\alacritty
New-Item -ItemType SymbolicLink -Path "C:\Users\YOURUSER\AppData\Roaming\alacritty\alacritty.toml" -Target "C:\path\to\dotfiles\alacritty\alacritty-windows.toml"
```

View File

@ -0,0 +1,41 @@
[env]
TERM = "xterm-256color"
[window]
padding.x = 10
padding.y = 10
opacity = 0.98
blur = true
option_as_alt = "Both"
[font.normal]
family = "JetBrainsMono NF"
style = "Regular"
[colors.primary]
background = "#0f111c"
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"