Skip to content

Commit 7774b84

Browse files
committed
feat(autodark): set sublime theme
1 parent 42c8364 commit 7774b84

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/autodark.sh

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ vim_themes=(base16-gruvbox-light-soft base16-ashes)
88
vim_bg=(light dark)
99
bat_themes=(OneHalfLight default)
1010
kitten_themes=("Solarized Light" Ayu)
11+
sublime_themes=("gruvbox (Light) (Medium) NDC.sublime-color-scheme" "gruvbox (Dark) (Medium) NDC.sublime-color-scheme")
1112

1213
if [[ "${new_mode}" == "light" ]]; then
1314
theme_index=0
@@ -27,3 +28,6 @@ sed -i -r "/^set background=/c set background=${vim_bg[$theme_index]}" ~/.vimrc
2728

2829
# bat --list-themes to see what's available
2930
sed -i -r "/^--theme/c --theme ${bat_themes[$theme_index]}" ~/.config/bat/config
31+
32+
# sublime text -- use the switch command
33+
subl --background --command "select_color_scheme {\"name\": \"${sublime_themes[$theme_index]}\"}"

0 commit comments

Comments
 (0)