eww(mediaplayer): add image path support for album art

This commit is contained in:
retrozinndev
2025-01-09 22:50:24 -03:00
parent 0e7f0cd3fb
commit a14034035e
10 changed files with 32 additions and 102 deletions
+1
View File
@@ -50,6 +50,7 @@
:prepend-new false
:class "systray"
)
(hardware)
(audio)
(battery)
(network)
+1 -1
View File
@@ -13,7 +13,7 @@
:text { formattime(EWW_TIME, "%H:%M") })
(label :class "date"
:text { formattime(EWW_TIME, "%B %d, %Y") })
:text { month_name + formattime(EWW_TIME, " %d, %Y") })
(calendar :class "month-calendar"
:show-details true
:show-heading true
+10 -3
View File
@@ -12,14 +12,18 @@
:exclusive false
:namespace "eww-cc"
(box :class "cc"
:orientation "vertical"
:space-evenly false
(box :orientation "horizontal"
(eventbox
(box :class "cc"
:orientation "vertical"
:space-evenly false
(top-bar)
(tiles)
(revealer :reveal { window_state_floating-media != "open" }
:transition "slideup"
:duration "380ms"
(big-media :show-album-bg true
:show-album-image true
:visible { json_media == "" || (json_media.title == "null"
@@ -29,10 +33,13 @@
(box :class "bottom button-row"
:halign "end"
:space-evenly false
(button :class "clear-all"
:onclick "sh scripts/notification-clear.sh"
:visible { arraylength(json_notification_history["history"]) > 0 }
"󰎟 Clear")
)
)
)
)
)
+2 -2
View File
@@ -1,7 +1,7 @@
(defwindow floating-media []
:monitor 0
:geometry (geometry :anchor "top center"
:width "450px")
:width "460px")
:exclusive false
:stacking "fg"
:focusable false
@@ -13,7 +13,7 @@
&& json_media.artist == "null") ? false : true }
(big-media :show-album-bg true
:album-image-size 124
:album-image-size 128
:show-album-image true
:style "margin: 16px; margin-top: 0; box-shadow:
0 5px 6px 1px rgba(0, 0, 0, .6),