automator
Quick Action
No input
from any application
Run Applescript
in the list of actions on the leftDarkModeToggle
on run {input, parameters}
tell application "System Events"
tell appearance preferences
set dark mode to not dark mode
end tell
end tell
return input
end run
System Settings
Keyboard
Keyboard Shortcuts...
buttonServices
General
DarkModeToggle
should be listed.none
next to DarkModeToggle
source - script needed tweaking