This solution requires F.lux to be installed (I assume it's at /Applications/Flux.app
).
Create a text file (let's call it flux-day-color
) and put it in /usr/local/bin
(usr
is under "Macintosh HD" and may be hidden).
#!/bin/bash
if [[ ! -z "$1" && "$1" -ge 2700 && "$1" -le 6500 ]]; then
defaults write org.herf.Flux dayColorTemp -int "$1"
killall Flux
open /Applications/Flux.app
else
echo "provide a temperature between 2700 and 6500 (rounded to nearest 100)"
fi
In Terminal, run chmod 755 /usr/local/bin/flux-day-color
Now you can run flux-day-color 2700
in Terminal (or in another script) to change the day temperature. Note that the script restarts F.lux so you may see the display jump to 6500 K for a split second before applying your requested temperature.
It's also possible to schedule this to run at predefined intervals, but that's beyond the scope of this answer (and the question).
If you'd rather have a launchable app that can toggle between 2 temperatures,
Open Terminal and run these commands:
bash
cd /Applications/
mkdir -p flux-day-toggle.app/Contents/MacOS
cd flux-day-toggle.app/Contents/MacOS
cat <<END > flux-day-toggle
Now you'll see a greater than sign. Paste this:
#!/bin/bash
DOMAIN=org.herf.Flux
KEY_NAME=dayColorTemp
LOW=2700
HIGH=6500
cur_val=`defaults read $DOMAIN $KEY_NAME 2>/dev/null`
if [[ -z "$cur_val" || "$cur_val" -eq "$HIGH" ]]; then
new_val=$LOW
else
new_val=$HIGH
fi
defaults write $DOMAIN $KEY_NAME -int $new_val
killall Flux
open /Applications/Flux.app
END
Wait for the prompt to appear, meaning the file was written.
Now the finishing touch:
chmod 755 flux-day-toggle
Now you can launch the new app. You can customize the LOW and HIGH settings to your liking.
I'd suggest tweaking the color balance on the monitor a bit. There should be a menu item to adjust color on the monitor itself. I suggest setting a custom color profile on the monitor rather then relying on the standard "warm"/"cool" type settings. (I have a Dell Ultra Sharp, and had to tweak this a few time before I got it right).
It's worth pointing out the calibration on most LCD/LED monitors can be very difficult since the color and contrast can change with the angle of view. While newer higher quality monitors minimize this, it's still evident.
Also if you really want everything well calibrated you can pick up a calibration system for ~$100. I have used a Huey Pro with great results for years, sadly it seems to no longer be sold, however this: http://www.pantone.com/pages/products/product.aspx?pid=1339&ca=2 seems to be similar (perhaps it's replacement).
Best Answer
This is normal.
When macOS is booting it will access your settings and see if you have specified the color temperature. Or enabled Night Shift.
If you have enabled FileVault this change will happen after you are logged in.
I think you need to put Color Temperature on Less Warm instead of in the center. And/Or turn off the Night Shift option.