Automatic light/dark mode transitions based on location
Project description
Blueblack
Automatically change to light and dark mode depending on your location.
Set up a simple config.yaml
under your $XDG_CONFIG_HOME/blueblack
file with
# Get your lattitude and longtitude through e.g. gmaps (https://support.google.com/maps/answer/18539?hl=en&co=GENIE.Platform%3DDesktop)
"lat": 23.2003
"lng": 31.1233
"update_days": 1
and change the update_days to something appropriate (e.g. 10 days).
When it's slightly past sunrise or sunset time (around 5 seconds), executable scripts inside XDG_CONFIG_HOME/blueblack/{dark,light}_mode
will run automatically.
Some examples are provided in the source code page
Internally, Blueblack will use the Sunrise-sunset API which is currently free. Please use this responsibly so we can have free things.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
blueblack-1.0.1.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for blueblack-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 688d9ba19bbd91105242c37cec3d73d55fff52e086a91434afc828a09ac2c8d7 |
|
MD5 | 5884bd4174e7f72c81fdf2ddb9ff31b6 |
|
BLAKE2b-256 | 5523654fb81835ee6fa10236eb4ad15cb1f328cee66ff6a83c06e32b62ec2d4f |