Last active
November 29, 2018 01:10
-
-
Save ascarter/3158ca4f346aabbf3d241ea19cc5c38e to your computer and use it in GitHub Desktop.
macOS AppleScript for dark mode
This file contains hidden or 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
# macOS display mode | |
alias darkmode='osascript -e "tell application \"System Events\" to tell appearance preferences to set dark mode to true"' | |
alias lightmode='osascript -e "tell application \"System Events\" to tell appearance preferences to set dark mode to false"' | |
alias togglemode='osascript -e "tell application \"System Events\" to tell appearance preferences to set dark mode to not dark mode"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment