add alacritty.toml with theme switching

This commit is contained in:
Łukasz Pankowski 2024-01-21 01:08:09 +01:00
parent a46fd42e1e
commit e566a44c56
4 changed files with 105 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import = ["~/.config/alacritty/dark.toml"]
[colors]
draw_bold_text_with_bright_colors = false
[env]
TERM = "xterm-256color"
[font]
size = 10.5
[font.bold]
family = "GoMono Nerd Font"
[font.normal]
family = "GoMono Nerd Font"

View File

@ -0,0 +1,43 @@
[colors.bright]
black = "#4C566A"
blue = "#81A1C1"
cyan = "#8FBCBB"
green = "#A3BE8C"
magenta = "#B988B0"
red = "#BF616A"
white = "#ECEFF4"
yellow = "#EBCB8B"
[colors.hints.end]
background = "#4C566A"
foreground = "#81A1C1"
[colors.hints.start]
background = "#4C566A"
foreground = "#B988B0"
[colors.normal]
black = "#3B4252"
blue = "#81A1C1"
cyan = "#88C0D0"
green = "#A3BE8C"
magenta = "#B988B0"
red = "#BF616A"
white = "#E5E9F0"
yellow = "#EBCB8B"
[colors.primary]
background = "#2E3440"
foreground = "#C8D0E0"
[colors.search.focused_match]
background = "#4C566A"
foreground = "#EBCB8B"
[colors.search.matches]
background = "#4C566A"
foreground = "#81A1C1"
[colors.selection]
background = "#3F4758"
text = "CellForeground"

View File

@ -0,0 +1,43 @@
[colors.bright]
black = "#646A76"
blue = "#1B40A6"
cyan = "#8FBCBB"
green = "#5F9E9D"
magenta = "#9665AF"
red = "#D16366"
white = "#ECEFF4"
yellow = "#BA793E"
[colors.hints.end]
background = "#646A76"
foreground = "#3879C5"
[colors.hints.start]
background = "#646A76"
foreground = "#9665AF"
[colors.normal]
black = "#2E3440"
blue = "#3879C5"
cyan = "#3EA1AD"
green = "#48A53D"
magenta = "#9F4ACA"
red = "#CB4F53"
white = "#E5E9F0"
yellow = "#EE5E25"
[colors.primary]
background = "#F7F8FA"
foreground = "#2E3440"
[colors.search.focused_match]
background = "#646A76"
foreground = "#EE5E25"
[colors.search.matches]
background = "#646A76"
foreground = "#3879C5"
[colors.selection]
background = "#EAEBED"
text = "CellForeground"

View File

@ -23,6 +23,9 @@ fi
if [ -f ~/.config/alacritty/alacritty.yml ]; then
sed -i "s/^colors: [*].*/colors: *$THEME/" ~/.config/alacritty/alacritty.yml
fi
if [ -f ~/.config/alacritty/alacritty.toml ]; then
sed -i "s#^import =.*#import = [\"~/.config/alacritty/$THEME.toml\"]#" ~/.config/alacritty/alacritty.toml
fi
# GTK
if [ -f ~/.config/xsettingsd/xsettingsd.conf ]; then