Alac-pretty
alac-pretty.mp4
If you're like me in that you constantly need to change the colors of your dev environment because visual stagnation really bothers you, then get on Alacritty and download this BlAZiNgLy FAsT color-scheme shuffler. This only works for POSIX-compliant systems... sorry Windows peeps.
Installation
Unfortunately I am too lazy to do releases and compile this for various systems so you'll have to do this manually for now.
- Make sure you have Rust and its toolchain installed.
$ cargo install --git https://github.com/solidiquis/alac-pretty
- Stick the resultant binary somewhere in your path.
Essential pre-requisites before using
The official Alacritty docs requires that you have your Alacritty config at one of the following locations:
- $XDG_CONFIG_HOME/alacritty/alacritty.yml
- $XDG_CONFIG_HOME/alacritty.yml
- $HOME/.config/alacritty/alacritty.yml
- $HOME/.alacritty.yml
To use this program, you'll need to stick this additional file in one of the following locations as well:
- $XDG_CONFIG_HOME/alacritty/alacritty_color_schemes.yml
- $XDG_CONFIG_HOME/alacritty_color_schemes.yml
- $HOME/.config/alacritty/alacritty_color_schemes.yml
- $HOME/.alacritty_color_schemes.yml
Lastly, your alacritty.yml
file's scheme
and colors
settings will need to be formatted exactly like this file.
How to use
- Scrolling up:
k
orโ
- Scrolling down:
j
orโ
- Exiting:
Ctrl-c
To-do
- Better test coverage.
- Incorporate Github workflows + do releases
- Handle
SIGWINCH
signal.
Acknowledgements
Thanks to eendroroy for putting together all the colorschemes which I used to put together this bad boy.
Author notes
I made another version of this project in Go but wasn't very happy with it. Decided to make a skinnier version in Rust for fun that only handled colorschemes and didn't leverage any Terminal UI libs.