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