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