diff --git a/de/home/.config/alacritty/alacritty.toml b/de/home/.config/alacritty/alacritty.toml index 975bf5c..12d0d92 100644 --- a/de/home/.config/alacritty/alacritty.toml +++ b/de/home/.config/alacritty/alacritty.toml @@ -1,6 +1,6 @@ [window] -opacity = 0.6 +opacity = 0.5 dynamic_title = true dynamic_padding = true padding = { x = 10, y = 10 } diff --git a/de/home/.config/eww/modules/bar/workspaces.yuck b/de/home/.config/eww/modules/bar/workspaces.yuck index 7d4624b..c22c493 100644 --- a/de/home/.config/eww/modules/bar/workspaces.yuck +++ b/de/home/.config/eww/modules/bar/workspaces.yuck @@ -1,5 +1,5 @@ -(deflisten workspacesArray :initial "${[{"name": "placeholder","focused":true}]}" - 'scripts/bar/workspaces') +(deflisten workspacesArray :initial '[{"name": "placeholder","focused":true,"num":0}]' + 'scripts/bar/workspaces') (defwidget workspaces [array] (box :class "workspaces" diff --git a/de/home/.config/eww/modules/home/notes.yuck b/de/home/.config/eww/modules/home/notes.yuck index 9248b52..aec6460 100644 --- a/de/home/.config/eww/modules/home/notes.yuck +++ b/de/home/.config/eww/modules/home/notes.yuck @@ -1,5 +1,6 @@ -(defpoll notes_list :interval "3600s" - 'scripts/home/notes') +(defpoll notes_list :initial '{"notes":[{"date":"1752630492","filepath":""}]}' + :interval "3600s" + 'scripts/home/notes') (defwidget notes [json] (box :visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 9} diff --git a/de/home/.config/eww/modules/home/nowplayingart.yuck b/de/home/.config/eww/modules/home/nowplayingart.yuck index ae8a20c..499d7aa 100644 --- a/de/home/.config/eww/modules/home/nowplayingart.yuck +++ b/de/home/.config/eww/modules/home/nowplayingart.yuck @@ -2,9 +2,9 @@ ; 'scripts/home/randomrat') (defwidget nowplayingart [] (box - :class "rat" + :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("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('${rat_image}');")) diff --git a/de/home/.config/eww/modules/home/reminders.yuck b/de/home/.config/eww/modules/home/reminders.yuck index be7b90d..7216e92 100644 --- a/de/home/.config/eww/modules/home/reminders.yuck +++ b/de/home/.config/eww/modules/home/reminders.yuck @@ -1,5 +1,6 @@ -(defpoll reminders_list :interval "3600s" - 'scripts/home/reminders') +(defpoll reminders_list :initial '{"reminders":[{"name":"Nothing!","url":"https://pogmom.me"}]}' + :interval "3600s" + 'scripts/home/reminders') (defwidget reminders [json] (box :class "notes" diff --git a/de/home/.config/eww/modules/home/softwareupdates.yuck b/de/home/.config/eww/modules/home/softwareupdates.yuck index 932f882..76c04cf 100644 --- a/de/home/.config/eww/modules/home/softwareupdates.yuck +++ b/de/home/.config/eww/modules/home/softwareupdates.yuck @@ -1,5 +1,6 @@ -(defpoll software_list :interval "43200s" - 'software-release-monitor') +(defpoll software_list :initial '[{"package_name":"package","package_version":"1","upstream_version":"1","up_to_date":"true"}]' + :interval "43200s" + 'software-release-monitor') (defwidget softwareupdates [json] (box :visible {(jq(workspacesArray, '.[]\|select(.focused==true).num') <= 19) && (jq(workspacesArray, '.[]\|select(.focused==true).num') >= 10)} diff --git a/de/home/.config/eww/scripts/home/nowplayingart.sh b/de/home/.config/eww/scripts/home/nowplayingart.sh new file mode 100644 index 0000000..6895a2d --- /dev/null +++ b/de/home/.config/eww/scripts/home/nowplayingart.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +playerctl metadata --format "{{mpris:artUrl}}" --follow | while IFS= read -r line; do + if [[ $line == *"http"* ]]; then + cache_dir="$XDG_RUNTIME_DIR/album_art_cache" + mkdir -p "$cache_dir" + file_name=$(basename "$line") + file_path="$cache_dir/$file_name" + + # Check if file exists + if [ -e "$file_path" ]; then + # File exists, return path immediately + echo "file://$file_path" + else + curl --output "$file_path" "$line" > /dev/null 2>&1 + echo "file://$file_path" + fi + else + # artUrl doesn't have a link, nothing to do + echo "$line" + fi +done