Switch to Rosé Pine as light theme
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user