Settings

Theme

Switch macOS Dark Mode in One Click

github.com

1 points by ariestiyansyah 7 years ago · 1 comment

Reader

latexr 7 years ago

If you want to do the same from the command line, AppleScript makes it straightforward to do from your shell in a single line:

  osascript -e 'tell application "System Events" to tell appearance preferences to get dark mode' # Get current mode
  osascript -e 'tell application "System Events" to tell appearance preferences to set dark mode to true' # Set dark mode
  osascript -e 'tell application "System Events" to tell appearance preferences to set dark mode to false' # Set light mode

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection