Hey Guys!
I love the new Darkmode, but I spent maybe 20 min trying to find the setting to schedule it before I realised it does not exist. But I liked the idea of dark mode automatically turning on around eight or nine and turning off at around seven in the morning.
So I built an Automator script to do it for me, it’s super easy.
Open up Automator and choose “Calendar alarm” and paste :
tell application "System Events"
tell appearance preferences
set dark mode to not dark mode
end tell
end tell
Then copy the calendar alarm, cause you need to have two. Set one alarm at the time you want dark mode to turn on and one when you want it to turn off.
I did one more thing, cause I realised it would be convenient to quickly turn dark mode off and on and you could just bind the script to a keyboard shortcut but I decided I rather use Alfred. Because I may forget a keyboard shortcut if I don’t use it very often, but remember to type dark mode to turn on/off dark mode I think I will manage
So open up Alfred preferences and navigate into workflows (you need the powerpack for this to work).
Add an input --> Keyword ( I used dark mood but you can choose Batman if you would like).
Then add an action --> Run script (Paste in the script)
Connect the input to the action
Now you can write Batman and everything gets dark!