Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

Commit 8e53cd6

Browse files
authored
Add oascripts to change theme (#13)
1 parent b6941aa commit 8e53cd6

File tree

285 files changed

+8520
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

285 files changed

+8520
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,24 @@ systems than Base16 so it has been renamed.
1515
from this repo
1616
- Load the theme by clicking on `Color Presets` and selecting it
1717

18+
### Tinty
19+
20+
If you use [Tinty] to set your themes, append the following to your
21+
tinty/config.toml file and your theme will update when applying a theme:
22+
23+
```toml
24+
[[items]]
25+
path = "https://github.com/tinted-theming/tinted-iterm2"
26+
name = "tinted-iterm2"
27+
hook = "sh %f"
28+
themes-dir = "scripts"
29+
supported-systems = ["base16", "base24"]
30+
```
31+
32+
Note: The above uses `sh` to run the hook script so make sure you have
33+
that shell installed. Most Unix-based systems have it in `$PATH` by
34+
default.
35+
1836
## Bright Ansi colors
1937

2038
Base16 will use the same colors for normal and bright variants. Base24

scripts/base16-3024.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
osascript <<EOF
4+
tell application "iTerm2"
5+
tell current session of current window
6+
set background color to {2313, 771, 0}
7+
set foreground color to {42405, 41634, 41634}
8+
9+
-- Set ANSI Colors
10+
set ANSI black color to {2313, 771, 0}
11+
set ANSI red color to {56283, 11565, 8224}
12+
set ANSI green color to {257, 41634, 21074}
13+
set ANSI yellow color to {65021, 60909, 514}
14+
set ANSI blue color to {257, 41120, 58596}
15+
set ANSI magenta color to {41377, 27242, 38036}
16+
set ANSI cyan color to {46517, 58596, 62708}
17+
set ANSI white color to {54998, 54741, 54484}
18+
19+
-- Set Bright ANSI Colors
20+
set ANSI bright black color to {19018, 17733, 17219}
21+
set ANSI bright red color to {56283, 11565, 8224}
22+
set ANSI bright green color to {257, 41634, 21074}
23+
set ANSI bright yellow color to {65021, 60909, 514}
24+
set ANSI bright blue color to {257, 41120, 58596}
25+
set ANSI bright magenta color to {41377, 27242, 38036}
26+
set ANSI bright cyan color to {46517, 58596, 62708}
27+
set ANSI bright white color to {63479, 63479, 63479}
28+
end tell
29+
end tell
30+
EOF

scripts/base16-apathy.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
osascript <<EOF
4+
tell application "iTerm2"
5+
tell current session of current window
6+
set background color to {771, 6682, 5654}
7+
set foreground color to {33153, 46517, 44204}
8+
9+
-- Set ANSI Colors
10+
set ANSI black color to {771, 6682, 5654}
11+
set ANSI red color to {15934, 38550, 34952}
12+
set ANSI green color to {34952, 15934, 38550}
13+
set ANSI yellow color to {15934, 19532, 38550}
14+
set ANSI blue color to {38550, 34952, 15934}
15+
set ANSI magenta color to {19532, 38550, 15934}
16+
set ANSI cyan color to {38550, 15934, 19532}
17+
set ANSI white color to {42919, 52942, 51400}
18+
19+
-- Set Bright ANSI Colors
20+
set ANSI bright black color to {6168, 20046, 17733}
21+
set ANSI bright red color to {15934, 38550, 34952}
22+
set ANSI bright green color to {34952, 15934, 38550}
23+
set ANSI bright yellow color to {15934, 19532, 38550}
24+
set ANSI bright blue color to {38550, 34952, 15934}
25+
set ANSI bright magenta color to {19532, 38550, 15934}
26+
set ANSI bright cyan color to {38550, 15934, 19532}
27+
set ANSI bright white color to {53970, 59367, 58596}
28+
end tell
29+
end tell
30+
EOF

scripts/base16-apprentice.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
osascript <<EOF
4+
tell application "iTerm2"
5+
tell current session of current window
6+
set background color to {9766, 9766, 9766}
7+
set foreground color to {24415, 24415, 34695}
8+
9+
-- Set ANSI Colors
10+
set ANSI black color to {9766, 9766, 9766}
11+
set ANSI red color to {17476, 17476, 17476}
12+
set ANSI green color to {65535, 65535, 44975}
13+
set ANSI yellow color to {34695, 44975, 34695}
14+
set ANSI blue color to {34695, 34695, 44975}
15+
set ANSI magenta color to {24415, 44975, 44975}
16+
set ANSI cyan color to {34695, 44975, 55255}
17+
set ANSI white color to {24415, 34695, 34695}
18+
19+
-- Set Bright ANSI Colors
20+
set ANSI bright black color to {24415, 34695, 24415}
21+
set ANSI bright red color to {17476, 17476, 17476}
22+
set ANSI bright green color to {65535, 65535, 44975}
23+
set ANSI bright yellow color to {34695, 44975, 34695}
24+
set ANSI bright blue color to {34695, 34695, 44975}
25+
set ANSI bright magenta color to {24415, 44975, 44975}
26+
set ANSI bright cyan color to {34695, 44975, 55255}
27+
set ANSI bright white color to {27756, 27756, 27756}
28+
end tell
29+
end tell
30+
EOF

scripts/base16-ashes.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
osascript <<EOF
4+
tell application "iTerm2"
5+
tell current session of current window
6+
set background color to {7196, 8224, 8995}
7+
set foreground color to {51143, 52428, 53713}
8+
9+
-- Set ANSI Colors
10+
set ANSI black color to {7196, 8224, 8995}
11+
set ANSI red color to {51143, 44718, 38293}
12+
set ANSI green color to {38293, 51143, 44718}
13+
set ANSI yellow color to {44718, 51143, 38293}
14+
set ANSI blue color to {44718, 38293, 51143}
15+
set ANSI magenta color to {51143, 38293, 44718}
16+
set ANSI cyan color to {38293, 44718, 51143}
17+
set ANSI white color to {57311, 58082, 58853}
18+
19+
-- Set Bright ANSI Colors
20+
set ANSI bright black color to {22102, 24158, 25957}
21+
set ANSI bright red color to {51143, 44718, 38293}
22+
set ANSI bright green color to {38293, 51143, 44718}
23+
set ANSI bright yellow color to {44718, 51143, 38293}
24+
set ANSI bright blue color to {44718, 38293, 51143}
25+
set ANSI bright magenta color to {51143, 38293, 44718}
26+
set ANSI bright cyan color to {38293, 44718, 51143}
27+
set ANSI bright white color to {62451, 62708, 62965}
28+
end tell
29+
end tell
30+
EOF

scripts/base16-atelier-cave-light.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
osascript <<EOF
4+
tell application "iTerm2"
5+
tell current session of current window
6+
set background color to {61423, 60652, 62708}
7+
set foreground color to {22616, 21074, 24672}
8+
9+
-- Set ANSI Colors
10+
set ANSI black color to {61423, 60652, 62708}
11+
set ANSI red color to {48830, 17990, 30840}
12+
set ANSI green color to {10794, 37522, 37522}
13+
set ANSI yellow color to {41120, 28270, 15163}
14+
set ANSI blue color to {22359, 28013, 56283}
15+
set ANSI magenta color to {38293, 23130, 59367}
16+
set ANSI cyan color to {14649, 35723, 50886}
17+
set ANSI white color to {9766, 8995, 10794}
18+
19+
-- Set Bright ANSI Colors
20+
set ANSI bright black color to {35723, 34695, 37522}
21+
set ANSI bright red color to {48830, 17990, 30840}
22+
set ANSI bright green color to {10794, 37522, 37522}
23+
set ANSI bright yellow color to {41120, 28270, 15163}
24+
set ANSI bright blue color to {22359, 28013, 56283}
25+
set ANSI bright magenta color to {38293, 23130, 59367}
26+
set ANSI bright cyan color to {14649, 35723, 50886}
27+
set ANSI bright white color to {6425, 5911, 7196}
28+
end tell
29+
end tell
30+
EOF

scripts/base16-atelier-cave.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
osascript <<EOF
4+
tell application "iTerm2"
5+
tell current session of current window
6+
set background color to {6425, 5911, 7196}
7+
set foreground color to {35723, 34695, 37522}
8+
9+
-- Set ANSI Colors
10+
set ANSI black color to {6425, 5911, 7196}
11+
set ANSI red color to {48830, 17990, 30840}
12+
set ANSI green color to {10794, 37522, 37522}
13+
set ANSI yellow color to {41120, 28270, 15163}
14+
set ANSI blue color to {22359, 28013, 56283}
15+
set ANSI magenta color to {38293, 23130, 59367}
16+
set ANSI cyan color to {14649, 35723, 50886}
17+
set ANSI white color to {58082, 57311, 59367}
18+
19+
-- Set Bright ANSI Colors
20+
set ANSI bright black color to {22616, 21074, 24672}
21+
set ANSI bright red color to {48830, 17990, 30840}
22+
set ANSI bright green color to {10794, 37522, 37522}
23+
set ANSI bright yellow color to {41120, 28270, 15163}
24+
set ANSI bright blue color to {22359, 28013, 56283}
25+
set ANSI bright magenta color to {38293, 23130, 59367}
26+
set ANSI bright cyan color to {14649, 35723, 50886}
27+
set ANSI bright white color to {61423, 60652, 62708}
28+
end tell
29+
end tell
30+
EOF

scripts/base16-atelier-dune-light.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
osascript <<EOF
4+
tell application "iTerm2"
5+
tell current session of current window
6+
set background color to {65278, 64507, 60652}
7+
set foreground color to {28270, 27499, 24158}
8+
9+
-- Set ANSI Colors
10+
set ANSI black color to {65278, 64507, 60652}
11+
set ANSI red color to {55255, 14135, 14135}
12+
set ANSI green color to {24672, 44204, 14649}
13+
set ANSI yellow color to {44718, 38293, 4883}
14+
set ANSI blue color to {26214, 33924, 57825}
15+
set ANSI magenta color to {47288, 21588, 54484}
16+
set ANSI cyan color to {7967, 44461, 33667}
17+
set ANSI white color to {10537, 10280, 9252}
18+
19+
-- Set Bright ANSI Colors
20+
set ANSI bright black color to {42662, 41634, 35980}
21+
set ANSI bright red color to {55255, 14135, 14135}
22+
set ANSI bright green color to {24672, 44204, 14649}
23+
set ANSI bright yellow color to {44718, 38293, 4883}
24+
set ANSI bright blue color to {26214, 33924, 57825}
25+
set ANSI bright magenta color to {47288, 21588, 54484}
26+
set ANSI bright cyan color to {7967, 44461, 33667}
27+
set ANSI bright white color to {8224, 8224, 7453}
28+
end tell
29+
end tell
30+
EOF

scripts/base16-atelier-dune.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
osascript <<EOF
4+
tell application "iTerm2"
5+
tell current session of current window
6+
set background color to {8224, 8224, 7453}
7+
set foreground color to {42662, 41634, 35980}
8+
9+
-- Set ANSI Colors
10+
set ANSI black color to {8224, 8224, 7453}
11+
set ANSI red color to {55255, 14135, 14135}
12+
set ANSI green color to {24672, 44204, 14649}
13+
set ANSI yellow color to {44718, 38293, 4883}
14+
set ANSI blue color to {26214, 33924, 57825}
15+
set ANSI magenta color to {47288, 21588, 54484}
16+
set ANSI cyan color to {7967, 44461, 33667}
17+
set ANSI white color to {59624, 58596, 53199}
18+
19+
-- Set Bright ANSI Colors
20+
set ANSI bright black color to {28270, 27499, 24158}
21+
set ANSI bright red color to {55255, 14135, 14135}
22+
set ANSI bright green color to {24672, 44204, 14649}
23+
set ANSI bright yellow color to {44718, 38293, 4883}
24+
set ANSI bright blue color to {26214, 33924, 57825}
25+
set ANSI bright magenta color to {47288, 21588, 54484}
26+
set ANSI bright cyan color to {7967, 44461, 33667}
27+
set ANSI bright white color to {65278, 64507, 60652}
28+
end tell
29+
end tell
30+
EOF
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
osascript <<EOF
4+
tell application "iTerm2"
5+
tell current session of current window
6+
set background color to {62708, 62451, 60652}
7+
set foreground color to {24415, 24158, 20046}
8+
9+
-- Set ANSI Colors
10+
set ANSI black color to {62708, 62451, 60652}
11+
set ANSI red color to {47802, 25186, 13878}
12+
set ANSI green color to {32125, 38807, 9766}
13+
set ANSI yellow color to {42405, 39064, 3341}
14+
set ANSI blue color to {13878, 41377, 26214}
15+
set ANSI magenta color to {24415, 37265, 33410}
16+
set ANSI cyan color to {23387, 40349, 18504}
17+
set ANSI white color to {12336, 12079, 10023}
18+
19+
-- Set Bright ANSI Colors
20+
set ANSI bright black color to {37522, 37265, 33153}
21+
set ANSI bright red color to {47802, 25186, 13878}
22+
set ANSI bright green color to {32125, 38807, 9766}
23+
set ANSI bright yellow color to {42405, 39064, 3341}
24+
set ANSI bright blue color to {13878, 41377, 26214}
25+
set ANSI bright magenta color to {24415, 37265, 33410}
26+
set ANSI bright cyan color to {23387, 40349, 18504}
27+
set ANSI bright white color to {8738, 8738, 6939}
28+
end tell
29+
end tell
30+
EOF

scripts/base16-atelier-estuary.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
osascript <<EOF
4+
tell application "iTerm2"
5+
tell current session of current window
6+
set background color to {8738, 8738, 6939}
7+
set foreground color to {37522, 37265, 33153}
8+
9+
-- Set ANSI Colors
10+
set ANSI black color to {8738, 8738, 6939}
11+
set ANSI red color to {47802, 25186, 13878}
12+
set ANSI green color to {32125, 38807, 9766}
13+
set ANSI yellow color to {42405, 39064, 3341}
14+
set ANSI blue color to {13878, 41377, 26214}
15+
set ANSI magenta color to {24415, 37265, 33410}
16+
set ANSI cyan color to {23387, 40349, 18504}
17+
set ANSI white color to {59367, 59110, 57311}
18+
19+
-- Set Bright ANSI Colors
20+
set ANSI bright black color to {24415, 24158, 20046}
21+
set ANSI bright red color to {47802, 25186, 13878}
22+
set ANSI bright green color to {32125, 38807, 9766}
23+
set ANSI bright yellow color to {42405, 39064, 3341}
24+
set ANSI bright blue color to {13878, 41377, 26214}
25+
set ANSI bright magenta color to {24415, 37265, 33410}
26+
set ANSI bright cyan color to {23387, 40349, 18504}
27+
set ANSI bright white color to {62708, 62451, 60652}
28+
end tell
29+
end tell
30+
EOF
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
osascript <<EOF
4+
tell application "iTerm2"
5+
tell current session of current window
6+
set background color to {61937, 61423, 61166}
7+
set foreground color to {26728, 24929, 24158}
8+
9+
-- Set ANSI Colors
10+
set ANSI black color to {61937, 61423, 61166}
11+
set ANSI red color to {62194, 11308, 16448}
12+
set ANSI green color to {31611, 38807, 9766}
13+
set ANSI yellow color to {50115, 33924, 6168}
14+
set ANSI blue color to {16448, 32382, 59367}
15+
set ANSI magenta color to {26214, 26214, 60138}
16+
set ANSI cyan color to {15677, 38807, 47288}
17+
set ANSI white color to {11308, 9252, 8481}
18+
19+
-- Set Bright ANSI Colors
20+
set ANSI bright black color to {43176, 41377, 40863}
21+
set ANSI bright red color to {62194, 11308, 16448}
22+
set ANSI bright green color to {31611, 38807, 9766}
23+
set ANSI bright yellow color to {50115, 33924, 6168}
24+
set ANSI bright blue color to {16448, 32382, 59367}
25+
set ANSI bright magenta color to {26214, 26214, 60138}
26+
set ANSI bright cyan color to {15677, 38807, 47288}
27+
set ANSI bright white color to {6939, 6425, 6168}
28+
end tell
29+
end tell
30+
EOF

scripts/base16-atelier-forest.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
osascript <<EOF
4+
tell application "iTerm2"
5+
tell current session of current window
6+
set background color to {6939, 6425, 6168}
7+
set foreground color to {43176, 41377, 40863}
8+
9+
-- Set ANSI Colors
10+
set ANSI black color to {6939, 6425, 6168}
11+
set ANSI red color to {62194, 11308, 16448}
12+
set ANSI green color to {31611, 38807, 9766}
13+
set ANSI yellow color to {50115, 33924, 6168}
14+
set ANSI blue color to {16448, 32382, 59367}
15+
set ANSI magenta color to {26214, 26214, 60138}
16+
set ANSI cyan color to {15677, 38807, 47288}
17+
set ANSI white color to {59110, 58082, 57568}
18+
19+
-- Set Bright ANSI Colors
20+
set ANSI bright black color to {26728, 24929, 24158}
21+
set ANSI bright red color to {62194, 11308, 16448}
22+
set ANSI bright green color to {31611, 38807, 9766}
23+
set ANSI bright yellow color to {50115, 33924, 6168}
24+
set ANSI bright blue color to {16448, 32382, 59367}
25+
set ANSI bright magenta color to {26214, 26214, 60138}
26+
set ANSI bright cyan color to {15677, 38807, 47288}
27+
set ANSI bright white color to {61937, 61423, 61166}
28+
end tell
29+
end tell
30+
EOF

0 commit comments

Comments
 (0)