eww icon indicating copy to clipboard operation
eww copied to clipboard

[FEATURE] Pass web URL for image path

Open Quinntyx opened this issue 2 years ago • 0 comments

Description of the requested feature

Allow the passing of an http:// or https:// url to fetch the image being shown in the widget from, similar to how in HTML lets you with the src tag. This could be useful for example when trying to show an image which is hosted on a server and queried from a database, like if I were to write something that would get the album art for a song by querying the internet. Right now, this script would have to download the image and then return a path for the EWW widget to show it, which is inefficient (even if it does just go in /tmp and gets deleted at next restart) for space and for responsiveness.

Proposed configuration syntax

(defwidget urlImage [path]
    (image
        :path path
        :image-width 100
        :image-height 100
    )
)

Additional context

No response

Quinntyx avatar Jun 22 '22 17:06 Quinntyx