Prepare for easy swapping of alacritty font and theme

This commit is contained in:
David Heinemeier Hansson 2024-05-30 20:21:41 -07:00
parent 3f6dcf760f
commit 17e19847d5
6 changed files with 15 additions and 5 deletions

View File

@ -1,8 +1,4 @@
import = [
"~/.local/share/omakub/defaults/alacritty.toml",
"~/.local/share/omakub/themes/alacritty/tokyo-night.toml"
]
import = [ "~/.config/alacritty/theme.toml", "~/.config/alacritty/font.toml", "~/.local/share/omakub/defaults/alacritty.toml" ]
[font]
normal = { family = "CaskaydiaMono Nerd Font", style = "Regular" }
size = 7

View File

@ -0,0 +1,2 @@
# Leave this file as-is to allow omakub to swap fonts system wide
import = [ "~/.local/share/omakub/fonts/alacritty/cascadia-mono.toml" ]

View File

@ -0,0 +1,2 @@
# Leave this file as-is to allow omakub to swap themes system wide
import = [ "~/.local/share/omakub/themes/alacritty/tokyo-night.toml" ]

View File

@ -0,0 +1,4 @@
[font]
normal = { family = "CaskaydiaMono Nerd Font", style = "Regular" }
bold = { family = "CaskaydiaMono Nerd Font", style = "Bold" }
italic = { family = "CaskaydiaMono Nerd Font", style = "Italic" }

View File

@ -0,0 +1,4 @@
[font]
normal = { family = "FiraMono Nerd Font", style = "Regular" }
bold = { family = "FiraMono Nerd Font", style = "Bold" }
italic = { family = "FiraMono Nerd Font", style = "Italic" }

View File

@ -2,4 +2,6 @@ if ! command -v alacritty &>/dev/null; then
sudo apt install -y alacritty
mkdir -p ~/.config/alacritty
cp ~/.local/share/omakub/configs/alacritty.toml ~/.config/alacritty/alacritty.toml
cp ~/.local/share/omakub/configs/alacritty/theme.toml ~/.config/alacritty/theme.toml
cp ~/.local/share/omakub/configs/alacritty/font.toml ~/.config/alacritty/font.toml
fi