a replacement for redshift built with POSIX shell, core utilities, and sct
© 2019 Matthew Graybosch email@example.com
released under the 2-clause BSD license
You should consider using
blueshift if you want to run a periodic cron job
and/or a acpi wakeup script (like
/etc/apm/resume) to check the current
time, compare it against a set of
sunset times, and set your
display's color temperature to a reasonable value to help reduce eyestrain.
You can also do this with greater precision using
redshift, but that app
is heavier in terms of dependencies. It also requires a set of ICBM targeting
coordinates (latitude/longitude) or permission to geolocate your external IP
At the moment, you'll need to manually install
blueshift by copying it to
convenient location in your
$PATH. I suggest
blueshift with four arguments.
The script will make the following sanity checks:
sctis installed and executable
If everything looks good,
blueshift will get the current time from your
system clock, compare it against the sunrise and sunset times, and run
with the appropriate color temperature value.
To set daytime color temperature to 6500K at 6am, and nighttime color temperature to 4500K at 6pm.
$ blueshift 0600 1800 6500 4500
blueshiftwith a nighttime color temperature that's greater than the daytime color temperature. The script will check for this and issue a warning, but you can still do this if you want to. I figure that you know what you're doing and have your reasons.