Your cart is currently empty!
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.
- Open Automator
Find Automator in your Applications folder or search for it with Spotlight (Cmd + Space
). - Create a New Quick Action
- Click “New Document.”
- Select “Quick Action” as the type.
- Set Workflow Input
- At the top, set “Workflow receives” to “no input” in “any application.”
- Add an Action
- In the search box, type “AppleScript.”
- Drag “Run AppleScript” into the workflow area.
- Paste This Script:
tell application "System Events"
tell appearance preferences
set dark mode to not dark mode
end tell
end tell
- Save Your Quick Action
- Hit
Cmd + S
or go to File > Save. - Name it something like “Toggle Dark Mode.”
- Hit
Step 2: Assign a Keyboard Shortcut
Now, connect your Quick Action to a keyboard shortcut.
- Go to System Settings
- Open System Settings (or System Preferences on older macOS).
- Go to “Keyboard” > “Keyboard Shortcuts.”
- Select Services
- Scroll down to the “General” section or look for “Services.”
- Find Your Quick Action
- Look for the name you used, like “Toggle Dark Mode.”
- 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!
Tech enthusiast and content creator passionate about making technology simple for everyone. I share practical tips, guides, and reviews on the latest in computers, software, and gadgets. Let’s explore the digital world together!