SunSwitch is an application that changes the system appearance (light or dark) of macOS. At sunrise, the appearance is set to light. At sunset, the appearance is set to dark.
CoreBrightness is part of macOS that uses your location to determine when sunrise and sunset is for Night Shift. By using CoreBrightness, SunSwitch does not directly need to ask your location to know when the next sunrise and sunset in your location will be.
You can test that CoreBrightness is working on your Mac by running the following command in a terminal window:
corebrightnessdiag sunschedule
If it works correctly, it should output something like this:
Night Shift Sunset/Sunrise
{
isDaylight = 0;
nextSunrise = "2019-05-30 10:22:37 +0000";
nextSunset = "2019-05-30 01:11:09 +0000";
previousSunrise = "2019-05-28 10:23:44 +0000";
previousSunset = "2019-05-28 01:09:30 +0000";
sunrise = "2019-05-29 10:23:10 +0000";
sunset = "2019-05-29 01:10:20 +0000";
}
- git clone
https://github.com/jhwiig/SunSwitch.git
- Move
SunSwitch.app
to your Applications folder. - Double click to launch SunSwitch.
- Add
SunSwitch.app
to the list of startup programs.- Open
System Preferences
->Users & Groups
- Select your user and navigate to
Login Items
. - Add
SunSwitch.app
as a login item.
- Open
At this point, SunSwitch will run in the background. It has no significant effect on the battery life of your computer.
Decide you don't like SunSwitch, but don't know how to get rid of it?
-
First, remove the current running version.
- Open Activity Monitor
- Search for
SunSwitch
- Select Quit Process.
-
To keep it from running on startup, remove it from the
Login Items
list.- Open
System Preferences
→Users & Groups
- Select your user and navigate to
Login Items
. - Remove
SunSwitch.app
as a login item.
- Open