X

Create a keyboard shortcut for Yosemite's Dark Mode

With a simple Terminal command, you can create a keyboard shortcut to toggle Dark Mode on and off.

Matt Elliott Senior Editor
Matt Elliott is a senior editor at CNET with a focus on laptops and streaming services. Matt has more than 20 years of experience testing and reviewing laptops. He has worked for CNET in New York and San Francisco and now lives in New Hampshire. When he's not writing about laptops, Matt likes to play and watch sports. He loves to play tennis and hates the number of streaming services he has to subscribe to in order to watch the various sports he wants to watch.
Expertise Laptops, desktops, all-in-one PCs, streaming devices, streaming platforms
Matt Elliott

yosemite-dark-mode.jpg
Matt Elliott/CNET

OS X 10.10 Yosemite introduced Dark Mode, which replaces the bright colors of the menu bar, Dock, and application's submenus with black. You can enable Dark Mode via System Preferences, but if you find yourself frequently toggling Dark Mode on and off, then you might find that jumping in and out of System Preferences becomes a drag. Thankfully, an enterprising Reddit user found a way to create a keyboard shortcut for enabling and disabling Dark Mode.

Open Terminal and copy and paste this command:

sudo defaults write /Library/Preferences/.GlobalPreferences.plist _HIEnableThemeSwitchHotKey -bool true

You will need to log out and log back in for the change to take effect.

After logging back in, you can enable and disable Dark Mode with this keyboard shortcut:

Control-Option-Command-T

For more Yosemite tips, please see CNET How To's guide to Mac OS X 10.10 Yosemite.

(Via Cult of Mac)