eww: Fixes in config

This commit is contained in:
Erwin Boskma 2023-12-21 16:36:50 +01:00
parent a2ccd4419c
commit 97b5cb8504
Signed by: erwin
SSH key fingerprint: SHA256:OCinH/khuGY1LA9RG8YLM8GNH6C1DDXBdy3SNE+I5Hw

View file

@ -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")))