From 97b5cb8504c083d63736b9e0a3fbc3c100273c2a Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Thu, 21 Dec 2023 16:36:50 +0100 Subject: [PATCH] eww: Fixes in config --- home-manager/modules/eww/config/eww.yuck | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/home-manager/modules/eww/config/eww.yuck b/home-manager/modules/eww/config/eww.yuck index 6d4ecb1..af5f76f 100644 --- a/home-manager/modules/eww/config/eww.yuck +++ b/home-manager/modules/eww/config/eww.yuck @@ -60,12 +60,13 @@ ;; :class "workspaces" ;; (label :text {wm-info.title}))) -(defwidget ha-now-playing [] +(defwidget ha-now-playing [visible] (eventbox :onclick "${ha-now-playing} play-pause" :onrightclick "${ha-now-playing} ${sonos-now-playing.muted ? 'unmute' : 'mute'}" :onscroll "${ha-now-playing} volume-{}" :active true :halign "start" + :visible visible (box :class "ha-now-playing" :space-evenly false :spacing 2 @@ -104,7 +105,7 @@ (box :class "cpu" :space-evenly false :spacing 2 - :tooltip {jaq(EWW_CPU, "reduce .cores[] as $core (\"\"; . + $core.core + \": \" + ($core.usage | tostring) + \"%\\n\") | {tooltip:.}").tooltip} + :tooltip {jq(EWW_CPU, "reduce .cores[] as $core (\"\"; . + $core.core + \": \" + ($core.usage | tostring) + \"%\\n\") | {tooltip:.}").tooltip} (label :class "icon" :text "󰻠") (label :text "${round(EWW_CPU.avg, 2)}%"))) @@ -113,7 +114,7 @@ (box :class "temperature" :space-evenly false :spacing 2 - :tooltip {jaq(EWW_TEMPS, ". | to_entries | reduce .[] as $temp (\"\"; . + $temp.key + \": \" + ($temp.value | tostring) + \"\\n\") | {tooltip:.}").tooltip} + :tooltip {jq(EWW_TEMPS, ". | to_entries | reduce .[] as $temp (\"\"; . + $temp.key + \": \" + ($temp.value | tostring) + \"\\n\") | {tooltip:.}").tooltip} (label :class "icon" :text "󰔏") (label :text "${round(EWW_TEMPS.ZENPOWER_TDIE, 1)}°C")))