mirror of
https://github.com/runyanjake/dotfiles.git
synced 2025-10-04 21:57:30 -07:00
Add alacritty
This commit is contained in:
parent
e64aed2685
commit
13c56c4d9b
38
alacritty/README.md
Normal file
38
alacritty/README.md
Normal file
@ -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
|
||||
```
|
42
alacritty/alacritty-macos.toml
Normal file
42
alacritty/alacritty-macos.toml
Normal file
@ -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"
|
||||
|
||||
|
42
alacritty/alacritty-ubuntu.toml
Normal file
42
alacritty/alacritty-ubuntu.toml
Normal file
@ -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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user