fix switching back to defualt theme

This commit is contained in:
ksyasuda 2022-02-01 13:25:05 -08:00
parent 9ef5b5092f
commit cf5c5dbcee

View File

@ -125,11 +125,9 @@ generate_span() {
set_theme() {
new_theme="$1"
lg "theme: $new_theme"
case "$new_theme" in
aniwrapper)
lg "Default theme chosen... doing nothing"
theme=default
ROFI_THEME=aniwrapper.rasi
;;
dracula)
ROFI_THEME=aniwrapper-dracula.rasi
@ -156,6 +154,7 @@ set_theme() {
seppuku "$theme not a valid theme file. Themes: [$THEMES]"
;;
esac
lg "Chosen theme -> $ROFI_THEME"
CFG_FILE="$CFG_DIR/themes/$ROFI_THEME"
}