Switch to Rosé Pine as light theme

This commit is contained in:
2023-02-01 08:17:17 +01:00
parent 7fb7569e18
commit 9e5203a6b7
4 changed files with 45 additions and 45 deletions

View File

@@ -1,18 +1,20 @@
#!/bin/sh
LIGHT_THEME="gruvbox"
LIGHT_THEME="rose-pine"
DARK_THEME="nord"
KITTY_LIGHT_THEME="Rosé Pine Dawn"
NVIM_COLORSCHEME_LINE=41
capitalize() {
printf '%s' "$1" | head -c 1 | tr "[:lower:]" "[:upper:]"
printf '%s' "$1" | tail -c '+2'
printf '%s' "$1" | tail -c '+2' | tr "-" " " | tr "e" "é"
}
change_theme() {
sed -i "s/$1/$2/" ~/.config/nvim/init.vim
sed -e "$NVIM_COLORSCHEME_LINE s/$1/$2/" -i ~/.config/nvim/init.vim
sed -i "s/$1/$2/" ~/.config/zathura/zathurarc
if [ "$2" = "$LIGHT_THEME" ]; then
kitty +kitten themes --reload-in=all "$(capitalize "$2") Light"
kitty +kitten themes --reload-in=all "$KITTY_LIGHT_THEME"
else
kitty +kitten themes --reload-in=all "$(capitalize "$2")"
fi