#!/usr/bin/env sh
#
# darkmode - toggle light/dark mode

osascript 2>/dev/null <<EOF
tell application "System Events"
    tell appearance preferences
        if dark mode is false then
            set dark mode to true
        else
            set dark mode to false
        end if
    end tell
end tell
EOF
