Created
June 7, 2020 12:42
-
-
Save fastred/3c63ab53d1c4efe03b9f5f9f6065ab1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "System Events" | |
tell appearance preferences | |
set willBeDark to not dark mode | |
set dark mode to willBeDark | |
end tell | |
end tell | |
set terminalTheme to "Tomorrow16" | |
if willBeDark then | |
set terminalTheme to "TomorrowNight16" | |
end if | |
tell application "Terminal" | |
set current settings of tabs of windows to settings set terminalTheme | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment