A set of files and a script to toggle solarized dark/light.
The script simply creates symliks, or copies files to the right places whenever one toggles from light to dark or vice versa. I use urxvt, vim, zathura and mutt, so that's what it changes; but extending it to other applications is, of course, as trivial as the script itself.
Xresources-light is simply the solarized Xresources, modified so as to have the light version of the colour scheme. It remains, thus, under the license that Ethan Schoonover has chosen for solarized. All the other files are public domain.
It works, although some things puzzle me:
- There is no need to change
colors.muttrcwhen one toggles. In fact, if you change it, it looks weird. - If urxvt is set to dark,
backgroundin.vimrchas to be set tolightand vice versa.
Now, things you need to do for this to work:
-
Delete all colour information from
.Xresourcesand add a line such as#include "/path/to/Xsolarized"
where Xsolarized is the symlink created in lines 11 and 17 of solarizedtoggle
-
Create a file
solarizedstatuswith the single string "dark" ("light"), and, if you solarizevim, a filesolarizedstatusforvimwith the string "light" ("dark") -
If you solarize
vim, substitute theset background = light/dark
line by
let &background = readfile('/home/manolo/Scripts/solarizedtoggle/solarizedstatus', '', 1)[0]
That's it, I think.