RackNerd Billboard Banner

How to create a keyboard shortcut for Mac dark mode on and off

Switching between Light and Dark Mode on your Mac shouldn’t take more than a second. If you’re tired of clicking through System Settings every time, you can set up a custom keyboard shortcut to toggle Dark Mode instantly. Here’s how to do it.

Why Use a Shortcut?

Dark Mode is great for your eyes and your battery, especially at night. But going through System Settings every time? No thanks. With a keyboard shortcut, you can switch modes in a split second, whether you’re working, watching videos, or winding down.

Step 1: Create a Simple Automator Quick Action

First, we’ll use the built-in Automator app. Don’t worry—it’s easy and only takes a minute.

  1. Open Automator
    Find Automator in your Applications folder or search for it with Spotlight (Cmd + Space).
  2. Create a New Quick Action
    • Click “New Document.”
    • Select “Quick Action” as the type.
  3. Set Workflow Input
    • At the top, set “Workflow receives” to “no input” in “any application.”
  4. Add an Action
    • In the search box, type “AppleScript.”
    • Drag “Run AppleScript” into the workflow area.
  5. Paste This Script:
    tell application "System Events"
    tell appearance preferences
    set dark mode to not dark mode
    end tell
    end tell
  6. Save Your Quick Action
    • Hit Cmd + S or go to File > Save.
    • Name it something like “Toggle Dark Mode.”

Step 2: Assign a Keyboard Shortcut

Now, connect your Quick Action to a keyboard shortcut.

  1. Go to System Settings
    • Open System Settings (or System Preferences on older macOS).
    • Go to “Keyboard” > “Keyboard Shortcuts.”
  2. Select Services
    • Scroll down to the “General” section or look for “Services.”
  3. Find Your Quick Action
    • Look for the name you used, like “Toggle Dark Mode.”
  4. Add a Shortcut
    • Click to the right of it to add your shortcut.
    • Use something unique, like Control + Option + D.

Step 3: Test It Out

Now, try out your shortcut. Hit your keys, and your Mac should instantly flip between Dark and Light Mode.


Bonus Tip:
If you want to get even fancier, you can use third-party apps like BetterTouchTool or Keyboard Maestro for more customization. But for most people, Automator gets the job done.


Final Thoughts

Setting up a keyboard shortcut for Mac Dark Mode is quick, easy, and a real time-saver. Try it out, and make your Mac fit your style in seconds—day or night.


Need more Mac tips?
Drop your questions in the comments, and I’ll cover them in a future post!

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
RackNerd Billboard Banner
© 2025 Computer Everywhere
Your Everyday Guide to the Digital World.
Terms of Service | Privacy Policy
Copy link