diff --git a/README.md b/README.md new file mode 100644 index 0000000..124ea53 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# Toggle Night Shift + +Toggle Night Shift toggles Night Shift, duh! + +## Installation + +1. Download [the latest release](https://github.com/ravicious/toggle-night-shift/releases). +2. Put it into the Applications folder. +3. Go to System Preferences -> Security & Privacy -> Privacy -> Accessibility. +4. Add the Toggle Night Shift app. Otherwise the app won't be able to change the system settings. + +And you're ready to go! diff --git a/Toggle Night Shift.applescript b/Toggle Night Shift.applescript new file mode 100644 index 0000000..de71b2e --- /dev/null +++ b/Toggle Night Shift.applescript @@ -0,0 +1,15 @@ +tell application "System Preferences" + activate + reveal anchor "displaysNightShiftTab" of pane id "com.apple.preference.displays" + delay 1 +end tell + +tell application "System Events" + tell process "System Preferences" + click checkbox 1 of tab group 1 of window 1 + end tell +end tell + +tell application "System Preferences" + quit +end tell \ No newline at end of file