feat(alacritty): theme changing improvements

This commit is contained in:
2024-06-20 00:36:01 +03:00
parent 636ea749ac
commit 074c169e3c
4 changed files with 5 additions and 42 deletions

1
.gitignore vendored
View File

@@ -10,6 +10,7 @@ config/cheat/cheatsheets/tldr/*
config/git/credentials
config/npm/npmrc
config/zsh/.zcompdump
config/alacritty/theme-active.toml
ssh/local.d/*
!ssh/local.d/.gitkeep
!.gitkeep

View File

@@ -1,5 +1,7 @@
import = [
"~/.dotfiles/config/alacritty/theme-active.toml"
# Default to night if the copied one doesn't exist.
"~/.dotfiles/config/alacritty/theme-night.toml",
"~/.config/alacritty/theme-active.toml"
]
[env]

View File

@@ -1,40 +0,0 @@
# TokyoNight Alacritty Colors: Day
# Default colors
[colors.primary]
background = '#e1e2e7'
foreground = '#3760bf'
#[colors.cursor]
#cursor = '#3760bf'
#text = '#e1e2e7'
# Normal colors
[colors.normal]
black = '#e9e9ed'
red = '#f52a65'
green = '#587539'
yellow = '#8c6c3e'
blue = '#2e7de9'
magenta = '#9854f1'
cyan = '#007197'
white = '#6172b0'
# Bright colors
[colors.bright]
black = '#a1a6c5'
red = '#f52a65'
green = '#587539'
yellow = '#8c6c3e'
blue = '#2e7de9'
magenta = '#9854f1'
cyan = '#007197'
white = '#3760bf'
# Indexed Colors
[[colors.indexed_colors]]
index = 16
color = '#b15c00'
[[colors.indexed_colors]]
index = 17
color = '#c64343'

View File

@@ -2,7 +2,7 @@
# Adapted from https://gist.github.com/xqm32/17777d035930d622d0ff7530bfab61fd
#
A_DIR="$HOME/.dotfiles/config/alacritty"
A_DIR="$HOME/.config/alacritty"
set_alacritty_theme() {
cp -f "$A_DIR/theme-$1.toml" "$A_DIR/theme-active.toml"