From cf5c5dbceed0bc17d321912e1765bdd34fae978c Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Tue, 1 Feb 2022 13:25:05 -0800 Subject: [PATCH] fix switching back to defualt theme --- aniwrapper | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aniwrapper b/aniwrapper index 442a9e3..c4eb9cd 100755 --- a/aniwrapper +++ b/aniwrapper @@ -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" }