Toggle the macOS Dark Mode from the command-line
Requires macOS 10.10 or later.
Ensure System Preferences
→ General
→ Use dark menu bar and Dock
is unchecked.
$ brew install dark-mode
$ npm install --global dark-mode
Download the binary and put it in /usr/local/bin
.
# toggle between dark and light mode
dark-mode
# force a specific mode
dark-mode --mode Dark
dark-mode --mode Light
# get the current mode
dark-mode --mode
> Light
$ ./build
- node-dark-mode - Node.js wrapper
MIT © Sindre Sorhus