(defwidget player_metadata []
    (revealer
        :reveal player_reveal
        :transition "slideright"
        :duration "500ms"
        (box :orientation "v"
            :class "metadata"
            :space-evenly false
            (image
                :image-width 250
                :path music_image)
            music_title
            music_album
            music_artist)))

(defvar player_reveal false)
(defpoll music_image :interval "1s" "echo widgets/player/playing-image.jpg")
(defpoll music_title :interval "1s" "playerctl metadata | grep title | awk '{ print $3 }'")
(defpoll music_album :interval "1s" "playerctl metadata | grep 'album ' | awk '{ print $3 }'")
(defpoll music_artist :interval "1s" "playerctl metadata | grep :artist | awk '{ print $3 }'")

