Simple application to switch desktop theme:
- from light to dark during sunset
- from dark to light during sunrise
The only limitations is that you have to provide command that actually switches the theme in config file.
In general the thsw can execute any provided command on sunset and sunrise.
Build the thsw with:
cargo buildRun the thsw with:
cargo runOr alternatively you should start thsw directly:
./thswExample of config file is provided in config.ini
You should place the config file to the location thsw give you at the first run.
Normally, it is $HOME/.config/thsw/config.ini
It was quite difficult for find and implement algorithm that takes geo coordinates with time zone and returns the time of sunset and sunrise for current day. Many thanks to resources and authors listed below.