How to Enable Dark Mode in MacOS Automatically on Schedule

Nov 15, 2018 - 6 Comments

How to enable Dark Mode theme on a schedule in MacOS

Wouldn’t it be nice if you could schedule the Dark Mode theme to enable itself automatically on your Mac, perhaps in the evening hours, and on a recurring schedule? That’s exactly what this tutorial is going to show you how to do, without needing to download or use any third party apps.


We’ll be using Automator and the Calendar app to set Dark Mode to enable itself automatically in the evening hours, then disable itself automatically in the morning hours to return to light mode. Using Dark Mode on the Mac is fantastic for working in low light situations and at night time, and so much like you can (and should) schedule Night Shift mode on the Mac, we’ll be setting Dark Mode to run on a schedule as well. This is a feature that hopefully will be baked into future versions of MacOS by default, but for the time being you can follow our guide to set the theme scheduling up yourself.

How to Enable Dark Mode Automatically on a Schedule

Before getting started, put your Mac into the regular Light mode setting.

  1. Open “Automator” on the Mac
  2. How to create a Dark Mode theme schedule on Mac

  3. Choose to create a new “Application”
  4. Create a new application in Automator

  5. In the Library actions, search for ‘Change System Appearance’ and drag that into the Automator workflow, then set that as “Toggle Light / Dark”
  6. Create an application for changing System Appearance and toggling dark and light mode

  7. Save the Automator application with an obvious name, like “Toggle Light or Dark Mode.app”, into an easily accessed location, like the Documents folder
  8. Save the dark light mode toggle app

  9. Now open the “Calendar” app in Mac OS
  10. Calendar on Mac

  11. Go to the “File” menu and then choose “New Calendar”, give the new Calendar an obvious name like “Dark Light Mode Toggle” (this is optional but recommended because the recurring event will show up every day on a calendar)
  12. Create a new Calendar event by clicking on the “+” plus button and label it something like “Toggle Dark and Light Mode”
  13. Make a new Calendar event

  14. Double-click on the event to edit it, using the following parameters:
    • starts: (todays date) at 10:00 PM (adjust if desired)
    • ends: (tomorrows date) at 6:00 AM (adjust as desired)
    • repeat: Every Day
    • alert: Custom

    Adjust the Calendar event as follows

  15. Now in the Custom alert section, choose “Open File” and select the “Toggle Light or Dark Mode.app” Automator app you created earlier, and set this to open “At time of event” then click OK
  16. Set a custom alert

  17. Next create a second ‘alert’ and again choose “Custom” and to “Open File” selecting ‘Toggle Light or Dark Mode.app’ again, and set this one to open ’10 hours after start of event’ then click “OK”
  18. Set another second alert with opening a file

  19. When finished, exit out of Calendar and Automator, whatever your starting event time is will be when Dark mode enables itself automatically, and the second alert after the start of the event will be when Light mode re-enables itself

While making these changes in Calendar, if you get a message about changing a recurring event, choose “All Future Events”.

That’s it, now your recurring Calendar event will trigger the Automator theme toggle app you created, adjusting between Dark mode and Light mode as the time changes.

In the example here, Dark mode is enabled for 10 hours from 10pm onward, but you can adjust that as needed. If you like using Dark Mode from 7pm until 7am, set those as the calendar events and the ‘after’ event for 12 hours later.

How to enable Dark Mode theme on a schedule in MacOS

This trick is pretty straight forward, using the ability to launch apps and files on a schedule on the Mac with Calendar events to open the Dark/Light theme toggle app which you built yourself in Automator. Isn’t the Mac great?

By the way, you can also open the ‘Toggle Light or Dark Mode.app’ app you created in Automator at any time to quickly switch between dark and light mode, without having to enable Dark Mode through the Mac System Preferences as usual.

There are also a variety of third party tools that will match this general functionality, including NightOwl and F.lux, but if you don’t want to download anything else then the above method works just fine with what MacOS Mojave ships with by default. Hopefully scheduling Dark Mode becomes an option with Night Shift in a future macOS release, but until (or if) that happens, go ahead and use this Calendar and Automator combination approach, or another utility to gain the same effect.

Do you know of any other methods to automate dark mode and light mode on the Mac? Share with us in the comments below!

Enjoy this tip? Subscribe to the OSXDaily newsletter to get more of our great Apple tips, tricks, and important news delivered to your inbox! Enter your email address below:

Related articles:

Posted by: Paul Horowitz in Mac OS X, Tips & Tricks

6 Comments

» Comments RSS Feed

  1. BrianM says:

    Thanks – I’ll have to set this up for now.
    I’m sure they’ll eventually build in an automated switch to and from Dark Mode – either based on time, or maybe based on ambient light.

  2. Rick Alexander says:

    This was a good exercise to get me to try Automator again. And I enjoyed myself.
    One thing I don’t like is that it takes up a line in Calendar. Precious little space there as it is. I use the monthly format and only have three or four things in view on any given day.

  3. Louie says:

    Thanks for the tip. For best results, disable the display of calendar notifications on the lock screen. To do that, just open system preferences, click on notifications, then on calendar and uncheck the box next to “show notifications on lock screen”. Before I did that, I found that often the Mac switched modes twice on every alert: once while still locked and then once again after unlocking it. This resulted in having light mode when it was supposed to be dark and viceversa. Hope this helps

  4. Richard says:

    Rather than having it going on and off at set times, I would much prefer a simple switch in the menu bar. I understand that I can download the Nightowl app for that, but I do not want to download another app for something so simple, and I am disappointed that Apple did not think to do that. After all, they offer them for Bluetooth, Wifi etc..

Leave a Reply

 

Shop on Amazon.com and help support OSXDaily!

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

Tips & Tricks

News

iPhone / iPad

Mac