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]
|
[window]
|
||||||
opacity = 0.6
|
opacity = 0.5
|
||||||
dynamic_title = true
|
dynamic_title = true
|
||||||
dynamic_padding = true
|
dynamic_padding = true
|
||||||
padding = { x = 10, y = 10 }
|
padding = { x = 10, y = 10 }
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
(deflisten workspacesArray :initial "${[{"name": "placeholder","focused":true}]}"
|
(deflisten workspacesArray :initial '[{"name": "placeholder","focused":true,"num":0}]'
|
||||||
'scripts/bar/workspaces')
|
'scripts/bar/workspaces')
|
||||||
|
|
||||||
(defwidget workspaces [array]
|
(defwidget workspaces [array]
|
||||||
(box :class "workspaces"
|
(box :class "workspaces"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
(defpoll notes_list :interval "3600s"
|
(defpoll notes_list :initial '{"notes":[{"date":"1752630492","filepath":""}]}'
|
||||||
'scripts/home/notes')
|
:interval "3600s"
|
||||||
|
'scripts/home/notes')
|
||||||
(defwidget notes [json]
|
(defwidget notes [json]
|
||||||
(box
|
(box
|
||||||
:visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 9}
|
:visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 9}
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
; 'scripts/home/randomrat')
|
; 'scripts/home/randomrat')
|
||||||
(defwidget nowplayingart []
|
(defwidget nowplayingart []
|
||||||
(box
|
(box
|
||||||
:class "rat"
|
:class "nowplayingart"
|
||||||
:orientation "h"
|
:orientation "h"
|
||||||
:width 300
|
:width 300
|
||||||
:height 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}');"))
|
; :style "background-image: url('${rat_image}');"))
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
(defpoll reminders_list :interval "3600s"
|
(defpoll reminders_list :initial '{"reminders":[{"name":"Nothing!","url":"https://pogmom.me"}]}'
|
||||||
'scripts/home/reminders')
|
:interval "3600s"
|
||||||
|
'scripts/home/reminders')
|
||||||
(defwidget reminders [json]
|
(defwidget reminders [json]
|
||||||
(box
|
(box
|
||||||
:class "notes"
|
:class "notes"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
(defpoll software_list :interval "43200s"
|
(defpoll software_list :initial '[{"package_name":"package","package_version":"1","upstream_version":"1","up_to_date":"true"}]'
|
||||||
'software-release-monitor')
|
:interval "43200s"
|
||||||
|
'software-release-monitor')
|
||||||
(defwidget softwareupdates [json]
|
(defwidget softwareupdates [json]
|
||||||
(box
|
(box
|
||||||
:visible {(jq(workspacesArray, '.[]\|select(.focused==true).num') <= 19) && (jq(workspacesArray, '.[]\|select(.focused==true).num') >= 10)}
|
: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