A somewhat random interactive theme-generator that pulls from Color Names, generates a theme, and opens up Helix with that theme.
I wrote this because I wanted to make a color scheme but I needed to see it in my editor, not just on a pallete to know whether I liked it or not.
theme-generator-demo1.mp4
We utilize expect to wrap Helix and listen for keystrokes that trigger changing or saving the theme. You can move around and use Helix normally otherwise.
Clone the repository and run with either:
./presets/dracula_based.sh
Or:
./presets/gruvbox_based.sh
Make sure to have expect
installed. This should be installed by default on MacOS.
Running any of the two above commands will open up helix with a generated theme. From here you have three options:
- Press
tab
to change to the next generated theme. - Press
s
to save the theme in your helix themes directory. - Press
f
to freeze a color and randomly generate all other colors. After pressingf
press the corresponding number / letter of the color you want to freeze.
It should be pretty easy to add new editors. Just add a template and the corresponding expect script.
You can add your own template pretty easily. Checkout the presets directory for inspiration.