blob: 5b17e9b4d474fa1916db3df3aa9b9ce483614f5f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/usr/bin/env osascript
tell application "System Events" to tell appearance preferences to set whatMode to the (get dark mode)
if (whatMode = true) then
tell application "Terminal"
set default settings to settings set "gruvbox-dark"
set current settings of every window whose visible is true to settings set "gruvbox-dark"
set current settings of every window whose visible is false to settings set "gruvbox-dark"
end tell
else
tell application "Terminal"
set default settings to settings set "gruvbox-light"
set current settings of every window whose visible is true to settings set "gruvbox-light"
set current settings of every window whose visible is false to settings set "gruvbox-light"
end tell
end if
|