1 points · by ariestiyansyah · 7y ago · 1 comment
osascript -e 'tell application "System Events" to tell appearance preferences to get dark mode' # Get current mode
osascript -e 'tell application "System Events" to tell appearance preferences to set dark mode to true' # Set dark mode
osascript -e 'tell application "System Events" to tell appearance preferences to set dark mode to false' # Set light mode