Skip to content

Instantly share code, notes, and snippets.

@pouyakary
Created September 28, 2018 11:18
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 pouyakary/67b2aeba4c69915e1c93628812a2cda5 to your computer and use it in GitHub Desktop.
Save pouyakary/67b2aeba4c69915e1c93628812a2cda5 to your computer and use it in GitHub Desktop.
Mac Dark/Light Changers in Terminal
alias light="osascript -e'tell application \"System Events\"' -e 'set dark mode of appearance preferences to false' -e 'end tell'"
alias dark="osascript -e'tell application \"System Events\"' -e 'set dark mode of appearance preferences to true' -e 'end tell'"
@pouyakary
Copy link
Author

Copy them to your bash profile / fish config / whatever and have the dark / light commands in the terminal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment