Skip to content

Simple CLI for controlling macOS Dark Mode via Apples private API

License

Notifications You must be signed in to change notification settings

mafredri/macos-darkmode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

macos-darkmode

Your friendly neighbordhood macOS Dark Mode CLI. Dark Mode is set via Apples private APIs instead of the usual Apple Script.

Tested on macOS Mojave (10.14).

Installing

$ go get -u github.com/mafredri/macos-darkmode/cmd/darkmode

Usage

Get current Dark Mode

$ darkmode
on

Set Dark Mode

$ darkmode on
$ darkmode off
$ darkmode toggle

Why?

Sometimes setting Dark Mode via Apple Script just doesn't work, I wanted a more reliable method.

See also

Thanks

Thanks to Saagar Jha for discovering the private APIs and sharing them in his post on Scheduling Dark Mode.

About

Simple CLI for controlling macOS Dark Mode via Apples private API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages