During the day I prefer a light theme, and during the evening a dark one. I’m currently using the Solarized theme, which has great light and dark variants. With the following setup, I can switch the theme for both vim and terminal with a single command.
I’ve named this script
setbg and can be used with
setbg dark and
I use Alacritty as my terminal, and for it to work I’ve setup yaml aliases for the light and dark solarized themes in my Alacritty config. Here is an excerpt:
Check out the full Alacritty config here.
Next up is writing a cron job that switches to dark in the afternoon and light in the morning :)