// Menu: Switch osx theme// Shortcut: option command t// Author: Oskars Ezerinsconst toggleTheme = async () => {let script = `tell application "System Events"tell appearance preferencesset dark mode to not dark modeend tellend tell`.trim()return await global.applescript(script)}toggleTheme()