eww: Fixes in config
This commit is contained in:
parent
a2ccd4419c
commit
97b5cb8504
1 changed files with 4 additions and 3 deletions
|
@ -60,12 +60,13 @@
|
||||||
;; :class "workspaces"
|
;; :class "workspaces"
|
||||||
;; (label :text {wm-info.title})))
|
;; (label :text {wm-info.title})))
|
||||||
|
|
||||||
(defwidget ha-now-playing []
|
(defwidget ha-now-playing [visible]
|
||||||
(eventbox :onclick "${ha-now-playing} play-pause"
|
(eventbox :onclick "${ha-now-playing} play-pause"
|
||||||
:onrightclick "${ha-now-playing} ${sonos-now-playing.muted ? 'unmute' : 'mute'}"
|
:onrightclick "${ha-now-playing} ${sonos-now-playing.muted ? 'unmute' : 'mute'}"
|
||||||
:onscroll "${ha-now-playing} volume-{}"
|
:onscroll "${ha-now-playing} volume-{}"
|
||||||
:active true
|
:active true
|
||||||
:halign "start"
|
:halign "start"
|
||||||
|
:visible visible
|
||||||
(box :class "ha-now-playing"
|
(box :class "ha-now-playing"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:spacing 2
|
:spacing 2
|
||||||
|
@ -104,7 +105,7 @@
|
||||||
(box :class "cpu"
|
(box :class "cpu"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:spacing 2
|
: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"
|
(label :class "icon"
|
||||||
:text "")
|
:text "")
|
||||||
(label :text "${round(EWW_CPU.avg, 2)}%")))
|
(label :text "${round(EWW_CPU.avg, 2)}%")))
|
||||||
|
@ -113,7 +114,7 @@
|
||||||
(box :class "temperature"
|
(box :class "temperature"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:spacing 2
|
: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"
|
(label :class "icon"
|
||||||
:text "")
|
:text "")
|
||||||
(label :text "${round(EWW_TEMPS.ZENPOWER_TDIE, 1)}°C")))
|
(label :text "${round(EWW_TEMPS.ZENPOWER_TDIE, 1)}°C")))
|
||||||
|
|
Loading…
Reference in a new issue