| Crates.io | rsunset |
| lib.rs | rsunset |
| version | 0.2.2 |
| created_at | 2025-07-22 13:06:30.493446+00 |
| updated_at | 2025-08-04 09:29:58.249306+00 |
| description | A customizable filter that can adjust brightness based on accurate sun times |
| homepage | |
| repository | https://codeberg.org/mrfantome/rsunset |
| max_upload_size | |
| id | 1763508 |
| size | 124,018 |
rsunset delivers the following functionalities:
wlsunset on Hyrpland and NiriTo build this crate use cargo build --release.
Sun calculations are based on the NOAA Calculator.
Using default values:
rsunset -l 50 -L 0
Using a custom value for night temperature and brightness:
rsunset -l 50 -L 0 -t 3000 -b 50
Using custom sun angles for sunset and sunrise (set to 10 degrees) with time modifiers while overwriting night:
rsunset -l 50 -L 0 --sunrise-angle 80 --sunset-angle 80 --sunrise +0:10 --sunset -0:10 --night 23:59
You can also switch wlsunset to rsunset as it is a interchangeable. I would encourage you to look at the added options.
If you don't like on of the times being calculated for your location you can always overwrite it with --dawn 00:00 or --dawn -0:30 for example.
If you wish to adjust the time of sun events in a way that is relative to the position of the sun, you can use the option --(event)-angle. See --help for default values and wikipedia for an idea of what they translate to. Note that the sunset/sunrise is not exactly at 90 degrees but rather at 90.83 degrees due to light refraction. In relative terms it is at -0.83 degrees considering 90 degrees to be the horizon when the sun rises or set.
Brightness settings do not have to be higher in the day than in the night and the app will transition smoothly between them.
You can toggle the temperature on screen between 3 modes when force is not enabled:
--sunrise +00:30To wlsunset for a great gamma tool.
To the KDE project for showing how to compute sun events.