diff --git a/de/home/.config/eww/eww.scss b/de/home/.config/eww/eww.scss index 107c07e..4197253 100644 --- a/de/home/.config/eww/eww.scss +++ b/de/home/.config/eww/eww.scss @@ -294,6 +294,7 @@ $home-widget-border-color: rgba($color5,1); border-radius: $home-widget-border-radius; box-shadow: inset 0 0 0px 3px $home-widget-border-color; } + .nowplayingart, .rat { background-size: cover; background-repeat: no-repeat; diff --git a/de/home/.config/eww/modules/home/nowplayingart.yuck b/de/home/.config/eww/modules/home/nowplayingart.yuck index 499d7aa..fb78d31 100644 --- a/de/home/.config/eww/modules/home/nowplayingart.yuck +++ b/de/home/.config/eww/modules/home/nowplayingart.yuck @@ -1,10 +1,10 @@ -;(defpoll rat_image :interval "60s" -; 'scripts/home/randomrat') +(deflisten nowplaying_img_path :initial "" + 'scripts/home/nowplayingart.sh') (defwidget nowplayingart [] (box :class "nowplayingart" :orientation "h" :width 300 :height 300 - :style 'background-image: url("https://listen.pogmom.me/rest/getCoverArt.view?id=952&u=pogmommy&p=mG%232001068485&v=1.13.0&c=Feishin&size=300");')) + :style "background-image: url('${nowplaying_img_path}');")) ; :style "background-image: url('${rat_image}');")) diff --git a/de/home/.config/eww/scripts/home/nowplayingart.sh b/de/home/.config/eww/scripts/home/nowplayingart.sh old mode 100644 new mode 100755