#!/usr/bin/env osascript

tell application "System Events"
  tell appearance preferences
    set dark mode to not dark mode
  end tell
end tell

# export OS_DARK_MODE=$(
#   2>/dev/null defaults read -g AppleInterfaceStyle >/dev/null \
#     && echo "true" \
#     || echo "false"
# )

# osascript 2>/dev/null <<EOF
# tell application "System Events"
#   tell appearance preferences
#     set dark mode to not dark mode
#   end tell
# end tell
# EOF
