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
Built Distribution
File details
Details for the file blueblack-1.0.2.tar.gz
.
File metadata
- Download URL: blueblack-1.0.2.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.8.9-zen1-2-zen
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5446b4908552c9ca642e50d388724f807454112f5f040e604c42360439021042 |
|
MD5 | 0c24dff30bab31622a392112f238ace4 |
|
BLAKE2b-256 | ca9b49b167d617fc3ae243327a1fbcca169ba6fd3e0a78cca20885fc91432628 |
File details
Details for the file blueblack-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: blueblack-1.0.2-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.8.9-zen1-2-zen
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e63bd0aa8d53e7baf872a5e0a85e7152996cdca3eca8518cce3fe9280de159b0 |
|
MD5 | 9e5cb599ca0520246cd76bde0d6de5e7 |
|
BLAKE2b-256 | 474b832f5a4e662ee78ff1da0b60c2fd126ffcdf474b7af98a0fbfba334935af |