Created
January 4, 2019 12:49
-
-
Save yochem/2a6d395e713a60f3010273d5921f4117 to your computer and use it in GitHub Desktop.
Switch darkmode / lightmode from the command line
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
#!/usr/bin/env osascript | |
- place this script in your $PATH | |
tell application "System Events" | |
tell appearance preferences | |
set dark mode to not dark mode | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment