(defwidget shuffle_button []
	(eventbox
		:onclick "playerctl -a shuffle ${shuffle_status ? "off && eww update shuffle_status=false &" : "on && eww update shuffle_status=true &"}"
		(box
			(image
                :image-width 46
                :path {shuffle_status ? shuffle_on_icon : shuffle_icon}))))

(defvar shuffle_status false)
(defvar shuffle_icon "widgets/player/shuffle/shuffle-icon.png")
(defvar shuffle_on_icon "widgets/player/shuffle/shuffle-on-icon.png")