Skip to content

Instantly share code, notes, and snippets.

@yochem
Created January 4, 2019 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yochem/2a6d395e713a60f3010273d5921f4117 to your computer and use it in GitHub Desktop.
Save yochem/2a6d395e713a60f3010273d5921f4117 to your computer and use it in GitHub Desktop.
Switch darkmode / lightmode from the command line
#!/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