How to Enable Dark Mode on Mac Keyboard Shortcut

Tired of Toggling Dark Mode on MacBook, Mac, set up keyboard shortcut to Enable and Disable Dark Mode on MacOS Sonoma, Ventura.

Apple Mac Computer Operating system macOS Mojave Preview is super cool. Everyone is excited to use the new abilities of macOS 10.14. If we inspect the features of macOS Mojave, each and every function were the basic need of the users, and few functions are requested by the users, and yes there demand has been fulfilled with the new release.

One of the appeals to the Apple was to provide a dark mode in Mac. And of course, with macOS Mojave, you can enable dark mode in Mac. But if you are jerky and wants to switch from dark mode to light mode and from light mode to dark mode now and then, then today we are going to reveal a keyboard shortcut to enable dark mode in macOS Mojave. You don’t need to follow long procedures to

Enable/Disable Dark Mode in macOS on Your MacBook Pro/Air/iMac

Method 1: Create Dark Mode Shotcut in Shortcuts app

  1. Open Shortcuts app on Mac.
  2. Click on the Plus icon to create or add new Shortcuts for your Mac. Now, Give Shortcut Name.add-a-new-dark-mode-shortcut-on-mac
  3. Search Set Appearance and find in Result. And Double click to add in run time script.add-dark-mode-mac-shortcut-on-mac
  4. We can select Turn automatic or Toggal on launch and Set the Appearcne like Dark, Light or Ask Each time.
  5. Now, Add Created Shortcut in the top Mac menu bar by selecting the option “Pin in Menu Bar” or also Create a New Keyboard shortcut and save on your Mac.pin-or-add-keyboard-shortcut-on-mac-menu-bar
  6. That’s it. Now, Run Dark mode shortcut from Top mac menu.turn-on-dark-mode-using-shortcut-on-mac

The alternate method is to Switch between Dark mode and Light mode is from the Control center. Click on the Control center icon from the top Mac menu bar > Click on Display settings and Click on Dark mode to turn on and Light mode to turn off dark mode.enable-dark-mode-on-mac-from-control-center

Method 2: create Automator Script For Turn on Dark Mode On Mac

Step #1: Launch the “Automator” App using Finder or launch from the Desktop if you have already then.

Hint: You can Find Automator App through this path: open Finder from the dock → Now Click on Applications and then Click on Automator.App

Step #2: click on “New Document” and select “Contextual Workflow or Quick Action Workflow” and Click “Choose”.

Click on quick action workflow and click choose

Step #3: Now, select “No Input” from the WorkFlow input selection menu. In case if you have TouchBar MacBook, then you can replace the image which will be used for the button.

select no input then enter apple in serch bar click Run Applescript

Step #4: In the “Apple Search Bar”, enter “Apple”.

Step #5: Next, double-Click on “Run AppleScript”.

Step #6: Delete the following Script and Type the below command Script. I suggest you write this script by you into the text field on your Mac and avoid the Syntax error.

Enter new script to activate dark mode mac mojave with a keyboard shortcut

tell application “System Events”

tell appearance preferences

set dark mode to not dark mode

end tell

end tell

Run AppleScript in mac Mojave

If you want to verify that the script is working or not then click on Play icon and if dark mode or light mode switches then it is working perfectly.

Keep in Mind please enter the correct script, otherwise, you will get Syntax Error.

After Put new Script follows the Step 7:

Step #7: Go to “File”.

Step #8: Tap “Save”

click on File menu choose save option and dark mode shortcut to save

Step #9. Save File as Dark mode Shortcut like given below.

Save quick actions workflow as dark mode shortcut to save

Some Mac User’s unable to create a shortcut and showing error: The action “Run AppleScript” encountered an error: “Not authorized to send Apple events to System Events.”, that may temporary issue because of a bug in Beta 2. Wait for next update, otherwise repeat the steps again. See Below video and Double check that you are on right path..

Method 3: How to Create a keyboard shortcut to Enable Dark mode macOS

Step #1: Click on “Apple” icon and open “System Preferences”.

New system preferences macos mojave

Step #2: Click “Keyboards”.

Step #3: Select the “Shortcuts” option.

Step #4: Open “Services” and double-click on “Dark Mode shortcut”.

Step #5.  Finally, add a shortcut command like here (Command +B). In simple English, you must not use a key shortcut that is run for other functions.

Dark Mode shortcut under services in keybaord system prefrences mac mojave

So now press Command+B to switch lighting mode to dark mode or vice-versa on macOS Mojave.

Now it’s time to use your skills, adjust the keyboard combination that you want to use to enable/disable Dark Mode.

Do not use the global shortcuts that are defined by Apple. So it is just like you have to experiment until you get a perfect match. Please make sure that it will not work when both the apps are open using the same shortcuts. For instance, if you have set command+B to quit iTunes and also to turn on and turn off Dark Mode and iTunes is currently active in such situation the shortcut key won’t work.

Method 4: Create Touch Bar Shortcut to Activate Dark Mode on Touch Bar MacBook Pro

Step #1: Click the “Apple” Logo from the top Mac menu and tap “System Preferences”.

Step #2: Next, open “Extensions” to appear between Bluetooth and Sharing then click “Touch Bar”.

Step #3: Check that “Dark Mode” workflow is turned on.

Activate Dark Mode on mac Mojave with TouchBar

Step #4: Now, move back to “Keyboard” settings.

Step #5: Click “Customize Control strip”. If you have device contains Touch Bar then only you will find this option.

click on Customize Control Strip on MacBook Pro Touchbar to activate dark mode Mojave

Step #6: Now, drag and drop “Dark Mode” workflow onto “Touch Bar”.

So now you can simply tap on Dark Mode to enable and disable from the touch bar.

Do you Like this article to activate Dark Mode with a keyboard shortcut or Touch bar? Please share it on your social network timeline and be helpful for other Apple Mac users!

> Trick to take and Edit a Screenshot on Mac

> Trick to Setup Dynamic Desktop in macOS

> Use Desktop Stacks in macOS

> Trick to use Continuity Camera

Photo of author

Karly Wood

Karly Wood is a journalist based in Ohio who specializes in covering Apple and technology trends. With a varied experience in reporting on public safety, government, and education, her insights bridge multiple disciplines, providing readers with a well-rounded perspective on today's technological advancements. If you need to contact me, you can reach me at [email protected] or through (Facebook)

5 thoughts on “How to Enable Dark Mode on Mac Keyboard Shortcut”

  1. All I get when I try to use this keyboard shortcut is the following error:
    “`The action “Run AppleScript” encountered an error: “Not authorized to send Apple events to System Events.”“`

    Help!

    Reply
    • double check your script, don’t copy from the webpage. try correct text that used here with an Example.

      if possible share your screen via Email or Describe more, current MacOS Version, Mac Model and more..

      Thank u! i glad to help you!

      Reply
  2. This worked on Mojave PB1 but fails on PB2 with:

    The action “Run AppleScript” encountered an error: “Not authorized to send Apple events to System Events.”

    Reply
  3. I’ve also gotten this error: The action “Run AppleScript” encountered an error: “Not authorized to send Apple events to System Events.” It was working fine until the latest beta update. Maybe Apple killed it because they didn’t like users going around their beta functionality.

    Reply

Leave a Comment