mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-10-28 04:44:11 -07:00
fix switching back to defualt theme
This commit is contained in:
parent
9ef5b5092f
commit
cf5c5dbcee
@ -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"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user