eww -> music: Fixed undefined vars

This commit is contained in:
GaspardCulis 2024-03-10 19:24:44 +01:00
parent 4c59ef2bdd
commit 80f31f24f4

View file

@ -16,10 +16,10 @@
:hexpand false
:style "background-image: url('${WAIFU_MODE ? FALLBACK_COVER : music_info.artUrl ?: FALLBACK_COVER }');"
:onclick `
if [ "$(eww get COVER_HIDDEN)" == "true" ]; then
eww update COVER_HIDDEN=false
if [ "$(eww get WAIFU_MODE)" == "true" ]; then
eww update WAIFU_MODE=false
else
eww update COVER_HIDDEN=true
eww update WAIFU_MODE=true
fi
`)
(box