Skip to content

Toggle the macOS Dark Mode from the command-line

License

Notifications You must be signed in to change notification settings

gabrielduque/dark-mode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dark-mode

Toggle the macOS Dark Mode from the command-line

Requires macOS 10.10 or later.

Ensure System PreferencesGeneralUse dark menu bar and Dock is unchecked.

Install

$ brew install dark-mode
$ npm install --global dark-mode
Manually

Download the binary and put it in /usr/local/bin.

Usage

# 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

$ ./build

Related

License

MIT © Sindre Sorhus

About

Toggle the macOS Dark Mode from the command-line

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 91.9%
  • Shell 8.1%