Change emacs and delta themes in switch-theme
This commit is contained in:
parent
df08d3b604
commit
88aa7ddc6d
|
@ -7,9 +7,9 @@ capitalize() {
|
||||||
|
|
||||||
modify_delta() {
|
modify_delta() {
|
||||||
if [ "$1" = "light" ]; then
|
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
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,11 +43,11 @@ fi
|
||||||
mode=$1
|
mode=$1
|
||||||
|
|
||||||
if [ "$mode" = "light" ]; then
|
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
|
change_theme dark light
|
||||||
recolor_zathura
|
recolor_zathura
|
||||||
else
|
else
|
||||||
emacsclient --eval "(load-theme 'doom-nord 'no-confirm)"
|
emacsclient --eval "(load-theme 'doom-one 'no-confirm)"
|
||||||
change_theme light dark
|
change_theme light dark
|
||||||
recolor_zathura
|
recolor_zathura
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue