From 0ed1ca1ae1c1ca6cfd2372ee4ae0c8e0586c03fd Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Fri, 18 Jul 2025 13:15:02 -0700 Subject: [PATCH] New backup 2025-07-18 13:15:02 --- de/home/.config/eww/eww.scss | 1 + de/home/.config/eww/modules/home/nowplayingart.yuck | 1 + de/home/.config/eww/scripts/home/nowplayingart.sh | 6 +++--- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/de/home/.config/eww/eww.scss b/de/home/.config/eww/eww.scss index 4197253..e21844b 100644 --- a/de/home/.config/eww/eww.scss +++ b/de/home/.config/eww/eww.scss @@ -296,6 +296,7 @@ $home-widget-border-color: rgba($color5,1); } .nowplayingart, .rat { + background-position: center; 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 fb78d31..7786a67 100644 --- a/de/home/.config/eww/modules/home/nowplayingart.yuck +++ b/de/home/.config/eww/modules/home/nowplayingart.yuck @@ -6,5 +6,6 @@ :orientation "h" :width 300 :height 300 +; :style "background-image: url('/run/user/1000/album_art_cache/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 index 6895a2d..08591c9 100755 --- a/de/home/.config/eww/scripts/home/nowplayingart.sh +++ b/de/home/.config/eww/scripts/home/nowplayingart.sh @@ -2,7 +2,7 @@ playerctl metadata --format "{{mpris:artUrl}}" --follow | while IFS= read -r line; do if [[ $line == *"http"* ]]; then - cache_dir="$XDG_RUNTIME_DIR/album_art_cache" + cache_dir="${HOME}/.cache/album_art_cache" mkdir -p "$cache_dir" file_name=$(basename "$line") file_path="$cache_dir/$file_name" @@ -10,10 +10,10 @@ playerctl metadata --format "{{mpris:artUrl}}" --follow | while IFS= read -r lin # Check if file exists if [ -e "$file_path" ]; then # File exists, return path immediately - echo "file://$file_path" + echo "$file_path" else curl --output "$file_path" "$line" > /dev/null 2>&1 - echo "file://$file_path" + echo "$file_path" fi else # artUrl doesn't have a link, nothing to do