From 99a65967b45be1602aff699e96a94b9553be1054 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Fri, 23 Dec 2022 12:31:42 +0100 Subject: [PATCH] Minor fix --- eww/.config/eww/eww.yuck | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eww/.config/eww/eww.yuck b/eww/.config/eww/eww.yuck index 0a6ac60..b2b4ab7 100644 --- a/eww/.config/eww/eww.yuck +++ b/eww/.config/eww/eww.yuck @@ -205,7 +205,7 @@ ;; Music widget (defwidget music [] - (revealer :reveal {music-status == "true"} + (revealer :reveal {music-active == "true"} (eventbox :onhover "${EWW_CMD} update music=true" :onhoverlost "${EWW_CMD} update music=false" ;; :onclick "wget ${artUrl} -O /tmp/cover.jpg; sleep 1; notify-send -i /tmp/cover.jpg '${title} - ${artist}' '${songtime}'" @@ -246,7 +246,8 @@ ) ))) -(defpoll music-status :interval "200ms" "scripts/musicstatus") +(defpoll music-active :interval "200ms" "scripts/musicstatus") +(defpoll music-status :interval "200ms" "playerctl status") (defpoll artUrl :interval "200ms" "playerctl metadata artUrl") (defpoll title :interval "200ms" "playerctl metadata title") (defpoll artist :interval "200ms" "playerctl metadata artist")