Skip to content
A script that installs the Solarized theme for Gnome Terminal and changes between dark and light mode depending on the sunrise and sunset time for the given location
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
dircolors-solarized @ c1779cd
gnome-terminal-colors-solarized @ ceab3f6

#Solarized for Gnome complete installation script

A simple script that downloads all the repositories needed to install and correctly use the famous and excellent solarized colorscheme for the Gnome Terminal and vim, and sets up a cron job to automatically change between dark and light version of the solarized colorscheme depending on when the sunrise and sunset is on your indicated location and the time of the year.

Pretty cool huh? :)



git clone
cd Solarized_Gnome_Terminal/

[COUNTRY] and [CITY] are optional parameters. Default parameters of script are: Germany Kaiserslautern.

NOTE: If you're using a different location than the default one (and you probably are), give all TWO parameters as they are needed to disambiguate location and simplicity of script.


It's all taken care for in the background by crontab and the script Isn't that awesome?

The background colors theme as well as the color shown by the shell command ls can only change when .bashrc is sourced, therefore only after passing the sunset(to dark) or sunrise(to light) time when opening a new terminal do they change. The same applies for vim; the background can only change when opening a new vim session because .vimrc is reread with the new values of sunrise/sunset.

Future improvements

  • Work with submodules so that the downloaded repos can be updated when this one is updated
  • Use minutes for more precision (not sure how relevant as the switch is not necessarily made immediately after sunset but when opening or sourcing .bashrc)
  • Include vimrc code, as there's vimrc sunrise/sunset time update
  • Installation script should check if the .rc files already have the code added to them so that the code is not added appended more than once


This project is licensed under the GNU GPLv2


Copyright © 2014 Antonio Gutierrez


We stand on the shoulders of giants. Thanks to seebi, Anthony25 and of course altercation

You can’t perform that action at this time.