Generate an Alacritty compatible colorscheme from the Mayccoll/Gogh or mbadolato/iTerm2-Color-Schemes repositories. Simple Bash scripts built with curl.
Because I wanted to try out a couple of themes without having an external tool mess with my configs directly.
$ gogh.alacritty -h
Usage: gogh.alacritty [OPTIONS] THEME
gogh.alacritty 0.3.0
Generate an Alacritty compatible colorscheme from the Mayccoll/Gogh repository.
Options:
-h, --help Show this message and exit.
$ gogh.alacritty panda
colors:
primary:
background: '#1d1e20'
foreground: '#f0f0f0'
normal:
black: '#1f1f20'
red: '#fb055a'
green: '#26ffd4'
yellow: '#fdaa5a'
blue: '#5c9fff'
magenta: '#fc59a6'
cyan: '#26ffd4'
white: '#f0f0f0'
bright:
black: '#5c6370'
red: '#fb055a'
green: '#26ffd4'
yellow: '#febe7e'
blue: '#55adff'
magenta: '#fd95d0'
cyan: '#26ffd4'
white: '#f0f0f0'
$ colortable.alacritty
┌────────┬─────────────────┐
│ 01..08 │ ● ● ● ● ● ● ● ● │
│ 09..16 │ ● ● ● ● ● ● ● ● │
└────────┴─────────────────┘
If you're importing your colorscheme from an external file, e.g. colorscheme.yml
,
you can quickly switch themes:
$ iterm2.alacritty 'Material' > ~/.config/alacritty/colorscheme.yml \
&& touch ~/.config/alacritty/alacritty.yml