@@ -5,20 +5,11 @@ capitalize() {
|
||||
printf '%s' "$1" | tail -c '+2'
|
||||
}
|
||||
|
||||
modify_delta() {
|
||||
if [ "$1" = "light" ]; then
|
||||
sed -e "s/light = false/light = true/" -e "s/OneHalfDark/OneHalfLight/" -i ~/.config/git/config
|
||||
else
|
||||
sed -e "s/light = true/light = false/" -e "s/OneHalfLight/OneHalfDark/" -i ~/.config/git/config
|
||||
fi
|
||||
}
|
||||
|
||||
change_theme() {
|
||||
sed -i "s/iceberg_$1/iceberg_$2/" ~/.config/kitty/kitty.conf
|
||||
sed -i "s/bg=$1/bg=$2/" ~/.config/nvim/init.vim
|
||||
sed -i "s/iceberg_$1/iceberg_$2/" ~/.dotfiles/tmux/.tmux.conf
|
||||
sed -i "s/iceberg_$1/iceberg_$2/" ~/.config/zathura/zathurarc
|
||||
modify_delta "$2"
|
||||
kitty +kitten themes --reload-in=all "Iceberg $(capitalize "$2")"
|
||||
tmux source-file ~/.tmux.conf
|
||||
nvr --remote-send ":source ~/.config/nvim/init.vim <CR> :set nonumber <CR> :set norelativenumber <CR>"
|
||||
|
||||
Reference in New Issue
Block a user