Files
mdmscripts/enable-darkmode.sh
2021-11-02 16:03:32 +00:00

9 lines
229 B
Bash

#!/bin/bash
sudo -u $(stat -f "%Su" /dev/console) /bin/sh <<'END'
osascript <<EOD
tell application "System Events"
tell appearance preferences
set dark mode to true # Can be one of: true, false, not dark
end tell
end tell
EOD