Add Kanagawa theme

Thanks again to @iljo-dp!
This commit is contained in:
David Heinemeier Hansson
2024-06-06 21:55:20 +02:00
parent b388f73f7c
commit c86d6bfbee
6 changed files with 76 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# Pick a preconfigured theme
THEME_NAMES=("Tokyo Night" "Catppuccin" "Everforest" "Gruvbox" "Nord" "Rose Pine")
THEME=$(gum choose "${THEME_NAMES[@]}" --header "Choose your theme" --height 8 | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
THEME_NAMES=("Tokyo Night" "Nord" "Catppuccin" "Everforest" "Gruvbox" "Kanagawa" "Rose Pine")
THEME=$(gum choose "${THEME_NAMES[@]}" --header "Choose your theme" --height 9 | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
[ ! -n "$THEME" ] && exit 0
@ -29,6 +29,9 @@ elif [ "$THEME" == "rose-pine" ]; then
elif [ "$THEME" == "nord" ]; then
VSC_THEME="Nord"
VSC_EXTENSION="arcticicestudio.nord-visual-studio-code"
elif [ "$THEME" == "kanagawa" ]; then
VSC_THEME="Kanagawa"
VSC_EXTENSION="qufiwefefwoyn.kanagawa"
fi
code --install-extension $VSC_EXTENSION > /dev/null
sed -i "s/\"workbench.colorTheme\": \".*\"/\"workbench.colorTheme\": \"$VSC_THEME\"/g" ~/.config/Code/User/settings.json