Does anyone know of a Terminal command to control Night Shift in the 10.12.4 beta? I've been looking through plist files but can't find anything related to night shift.
Turned out the way Ctrl-c works is quite simple — it's just a shortcut key for sending the interrupt (terminate) signal SIGINT to the current process running in the foreground.
I was looking for the same thing and didn't have any luck, so I threw together some code for a simple command line tool to control the feature. You can find it here.
It works by making calls to the CoreBrightness
private framework. Specifically, it creates an instance of CBBlueLightClient
and calls the instance methods setStrength:commit:
and setEnabled:
.
Usage is nshift strength
where strength is a value from 0 to 100. A higher value shifts the color temperature of the display to more warm. A value of 0 disables Night Shift altogether.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With