i3status-rust
i3status-rust copied to clipboard
Add latitude and longitude options in the hueshift block
A number of the color shifters have options for setting latitude and longitude for setting color shifting on time of day. It would be nice to have some config options in the hueshift block to set them. There could also be an option to enable/disable automatic color adjustment. When automatic color adjustment is enabled, scrolling can adjust min/max temp based on time of day. During day, have scroll adjust the max temp. During night, have scroll adjust the min temp. Otherwise, there could be an option to disable scroll adjustments and/or click temp, and just let auto color adjustment do its thing.
The hueshift block will need to do some extra things to get this to work:
- Keep track of when sunset is (wlsunset outputs dawn, sunrise, sunset, and dusk times to the terminal at start)
- Get current temp as auto adjustment is occurring (wlsunset outputs current temp to terminal during shift)
@Nukesor, @AkechiShiro Sorry to bother you two again, but what do you think? I don't currently use a colour shifter so input is limited...
Hi, I think that this feature would be a nice upgrade to the Hueshift block however I didn't really need that fine control/auto adjustment based on longitude and latitude, but this feature should be doable by either having redshift
trying to determine the longitude and latitude when the option auto adjustment is true.
But there will be another issue, at the moment the block does not run redshift
as a "daemon" (or as a systemctl service), it just runs a single command which exits, as such to keep auto adjusting you would need to keep running redshift
, this implies a different behavior on how the Hueshift block works at the moment for this option.
We can also accept to have the longitude
and latitude
input as options and feed them to redshift in order to auto adjust accordingly using redshift -l LATITUDE:LONGITUDE
.