Miko Posted September 25, 2018 Posted September 25, 2018 (edited) Dark Mode Workflow for Alfred v.0.5 Enable Dark Mode or Light Mode on macOS Mojave using Alfred Download Dark Mode WorkFlow Or Download Dark Mode WorkFlow (Alfred Theme + macOS Mojave) This version includes the ability to switch Alfred theme to Alfred Mac OS and Alfred MacOS Dark. Install Double click on the "Dark Mode Workflow for Alfred 0.5.alfredworkflow" workflow that you have just downloaded. More info: https://www.alfredapp.com/help/workflows/ Usage use darkmode to enable Dark Mode use lightmode to enable Light Mode use togglemode to toggle between Dark Mode and Light Mode Optional Within the WorkFlow settings in Alfred, you can add your custom Hotkey to trigger the three commands License MIT © 2018 Miko Magni Edited October 1, 2018 by Miko Updated version Dasblatz 1
Dasblatz Posted September 28, 2018 Posted September 28, 2018 (edited) Would be nice if this workflow can change the used Alfred theme as well when switching to dark mode <-> light mode, Can this be implemented or can I add this to workflow on my own? Solved it, it’s just on additional line at the end of your script. Just put in your preferred dark and light theme. Exchange this on „lightmode“ -Script tell application "System Events" tell appearance preferences set dark mode to false end tell end tell tell application "Alfred 3" to set theme "Alfred macOS" Exchange this on „darkmode“ -Script tell application "System Events" tell appearance preferences set dark mode to true end tell end tell tell application "Alfred 3" to set theme "Alfred macOS Dark" Exchange this on „togglemode“ -Script tell application "System Events" tell appearance preferences set dark mode to not dark mode end tell end tell tell application "Alfred 3" to set theme "Alfred macOS" Edited September 28, 2018 by Dasblatz Update
deanishe Posted September 28, 2018 Posted September 28, 2018 Long ago, I wrote a script to automatically change Alfred's theme at sunrise and sunset. Perhaps someone might be interested in editing the AppleScript to also change Mojave's theme? Or does Mojave take care of that itself?
Dasblatz Posted September 28, 2018 Posted September 28, 2018 8 minutes ago, deanishe said: Long ago, I wrote a script to automatically change Alfred's theme at sunrise and sunset. Perhaps someone might be interested in editing the AppleScript to also change Mojave's theme? Or does Mojave take care of that itself? Mojave doesn’t take care for this, but there is a small app called NightOwl which uses also Sunset/Sunrise NightOwl Link
deanishe Posted September 28, 2018 Posted September 28, 2018 Thanks. I’ve been using F.lux, as it also changes the screen colour to make it easier to sleep or something. Makes it yellow at night, basically.
Miko Posted October 1, 2018 Author Posted October 1, 2018 @Dasblatz including the Alfred theme switch. The workflow is a separate install as I prefer using a custom Aflred theme I didn't include the toggle as it was only changing the Alfred theme to light. Dasblatz 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now