Last active
May 10, 2023 14:12
-
-
Save tydavis/2766dc70a0224938fd7480b225f3d684 to your computer and use it in GitHub Desktop.
applescript-changeTerminal-autodarkmode
This file contains hidden or 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" to tell appearance preferences to set whatMode to the (get dark mode) | |
if (whatMode = true) then | |
tell application "Terminal" to set default settings to settings set "gruvbox-dark" | |
tell application "Terminal" | |
set current settings of every window whose visible is true to settings set "gruvbox-dark" | |
end tell | |
else | |
tell application "Terminal" to set default settings to settings set "gruvbox-light" | |
tell application "Terminal" | |
set current settings of every window whose visible is true to settings set "gruvbox-light" | |
end tell | |
end if | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment