Jump to content

Welcome to AppCake Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!

How to quickly toggle dark mode using a keyboard shortcut on Mac


  • You cannot start a new topic
  • Please log in to reply
No replies to this topic



    Error 404: Member Title Not Found

  • IC Trusted User
  • 460 posts
    • Time Online: 18d 4h 20m 16s
  • Twitter:https://twitter.com/EnderXZ
  • LocationMaldives
  • iDevices Owned:iPhone 6+, iHave a PC



Dark mode is one of the more popular features of OS X Yosemite, because it allows you to add a dark tint to both the dock and the menu bar on Mac. The standard way to enable dark mode involves venturing to System Preferences, opening the General section, and clicking on the enable dark mode option. But wouldn’t it be cool if you could toggle dark mode using a simple keyboard shortcut?


To enable the dark mode keyboard shortcut, do the following:


Step 1: open Terminal


Step 2: paste the following command in the Terminal window:


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




Step 3: press Return on your keyboard and you’ll be asked to enter your administrator password


Step 4: log out of your Mac by going to the Apple menu and clicking Log Out (you can restart if you prefer)


Step 5: log back in and press Control+Option+Command+T to toggle dark mode on or off


Once you enable the dark mode keyboard shortcut, you can use the shortcut permanently going forward. If you ever want to disable the shortcut, simply follow steps 1-4, but replace the word true in step 2 with the word false. So your command would look as follows:


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


I think you’ll find that it’s much easier to use a keyboard shortcut to toggle dark mode on and off than it is to go to System Preferences → General

every time you wish to switch. What do you think?


Credit: iDB Feb 27, 2015