DEV Community

Cover image for Automate Mojave Dark mode configuration
Anthony Ciccarello
Anthony Ciccarello

Posted on • Originally published at ciccarello.me

1

Automate Mojave Dark mode configuration

If you like to automate your macOS configuration via bash scripts and have recently
setup Mojave, you may be wondering how to enable dark mode, the configuration
is called "AppleInterfaceStyle" and can be set using the following command.

defaults write "Apple Global Domain" "AppleInterfaceStyle" "Dark"

If you would like to revert back to the default (light) theme, delete the key.

defaults delete "Apple Global Domain" "AppleInterfaceStyle"

Both enabling and disabling will require a restart of your computer to take
affect. If you would like to try out the theme immediately, open the General
tab of the mac preferences.

open /System/Library/PreferencePanes/Appearance.prefPane

Originally published Sep 25, 2018

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay