This repository has been archived by the owner on Oct 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |