Change emacs and delta themes in switch-theme
This commit is contained in:
parent
df08d3b604
commit
88aa7ddc6d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue