Can’t f.lux be controlled from the command line? I seem to recall it can.
If so, you should be able to cron it to do whatever you want.
I was using redshift on Linux for a while and had some aliases set to trigger various settings.