Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
Add version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ravicious committed Mar 28, 2017
1 parent adcb0db commit 0be3ad8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
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!
15 changes: 15 additions & 0 deletions Toggle Night Shift.applescript
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

0 comments on commit 0be3ad8

Please sign in to comment.