Change emacs and delta themes in switch-theme

This commit is contained in:
coolneng 2022-09-12 01:07:03 +02:00
parent df08d3b604
commit 88aa7ddc6d
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 4 additions and 4 deletions

View File

@ -7,9 +7,9 @@ capitalize() {
modify_delta() {
if [ "$1" = "light" ]; then
sed -e "s/light = false/light = true/" -e "s/Nord/OneHalfLight/" -i ~/.config/git/config
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/Nord/" -i ~/.config/git/config
sed -e "s/light = true/light = false/" -e "s/OneHalfLight/OneHalfDark/" -i ~/.config/git/config
fi
}
@ -43,11 +43,11 @@ fi
mode=$1
if [ "$mode" = "light" ]; then
emacsclient --eval "(load-theme 'doom-nord-light 'no-confirm)"
emacsclient --eval "(load-theme 'doom-flatwhite 'no-confirm)"
change_theme dark light
recolor_zathura
else
emacsclient --eval "(load-theme 'doom-nord 'no-confirm)"
emacsclient --eval "(load-theme 'doom-one 'no-confirm)"
change_theme light dark
recolor_zathura
fi