From 7055be8c0ea47f932075a043a157b7024f38220d Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Mon, 19 May 2025 20:48:56 -0700 Subject: [PATCH] Update alacritty config to include a theme and blink the cursor --- alacritty.toml | 9 ------- alacritty/alacritty.toml | 20 ++++++++++++++ alacritty/github_dark_high_contrast.toml | 33 ++++++++++++++++++++++++ setup | 4 +++ 4 files changed, 57 insertions(+), 9 deletions(-) delete mode 100644 alacritty.toml create mode 100644 alacritty/alacritty.toml create mode 100644 alacritty/github_dark_high_contrast.toml diff --git a/alacritty.toml b/alacritty.toml deleted file mode 100644 index 90e1b78..0000000 --- a/alacritty.toml +++ /dev/null @@ -1,9 +0,0 @@ -[colors.primary] -background = "#111111" - -[colors.normal] -cyan = '#008b8b' - -[font.normal] -family = 'JetBrainsMono Nerd Font Mono' -style = 'Regular' diff --git a/alacritty/alacritty.toml b/alacritty/alacritty.toml new file mode 100644 index 0000000..160e657 --- /dev/null +++ b/alacritty/alacritty.toml @@ -0,0 +1,20 @@ +[general] +import = ["./github_dark_high_contrast.toml" ] + +[colors.primary] +background = "#111111" + +[colors.normal] +cyan = '#008b8b' + +[font.normal] +family = 'JetBrainsMono Nerd Font Mono' +style = 'Regular' + +[cursor] +blink_interval = 500 +blink_timeout = 0 + +[cursor.style] +blinking = "Always" +#shape = "Underline" diff --git a/alacritty/github_dark_high_contrast.toml b/alacritty/github_dark_high_contrast.toml new file mode 100644 index 0000000..e1b1b3e --- /dev/null +++ b/alacritty/github_dark_high_contrast.toml @@ -0,0 +1,33 @@ +# (Github Dark High Contrast) Colors for Alacritty + +# Default colors +[colors.primary] +background = '#0a0c10' +foreground = '#f0f3f6' + +# Cursor colors +[colors.cursor] +text = '#0a0c10' +cursor = '#f0f3f6' + +# Normal colors +[colors.normal] +black = '#7a828e' +red = '#ff9492' +green = '#26cd4d' +yellow = '#f0b72f' +blue = '#71b7ff' +magenta = '#cb9eff' +cyan = '#39c5cf' +white = '#d9dee3' + +# Bright colors +[colors.bright] +black = '#9ea7b3' +red = '#ffb1af' +green = '#4ae168' +yellow = '#f7c843' +blue = '#91cbff' +magenta = '#cb9eff' +cyan = '#39c5cf' +white = '#d9dee3' diff --git a/setup b/setup index d376586..aeb6f6a 100644 --- a/setup +++ b/setup @@ -23,6 +23,10 @@ [ -d ~/.config/nvim ] && [ ! -L ~/.config/nvim ] && mv ~/.config/nvim ~/.config/nvim.old [ -e ~/.config/nvim ] || ln -s ~/.dotfiles/nvim ~/.config/nvim +# Alacritty only if directory exists +[ -d ~/.config/alacritty ] && [ ! -L ~/.config/alacritty ] && mv ~/.config/alacritty ~/.config/alacritty.old +[ -e ~/.config/alacritty ] || ln -s ~/.dotfiles/alacritty ~/.config/alacritty + # k9s only if directory exists if [ -d ~/.config/k9s ]; then [ -e ~/.config/k9s/config.yml ] || ln -s ~/.dotfiles/k9s_config.yml ~/.config/k9s/config.yml