New backup 2025-07-18 12:45:02
This commit is contained in:
parent
d76135dd89
commit
fc25de1116
7 changed files with 36 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
|||
|
||||
[window]
|
||||
opacity = 0.6
|
||||
opacity = 0.5
|
||||
dynamic_title = true
|
||||
dynamic_padding = true
|
||||
padding = { x = 10, y = 10 }
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}');"))
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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)}
|
||||
|
|
22
de/home/.config/eww/scripts/home/nowplayingart.sh
Normal file
22
de/home/.config/eww/scripts/home/nowplayingart.sh
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue