New backup 2025-03-03 20:00:02
This commit is contained in:
parent
f813657ee1
commit
306d7b9ee6
1 changed files with 30 additions and 10 deletions
|
@ -15,7 +15,7 @@
|
||||||
(metric :label "💾"
|
(metric :label "💾"
|
||||||
:value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)}
|
:value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)}
|
||||||
:onchange "")
|
:onchange "")
|
||||||
(sysinfo)
|
(systeminfo)
|
||||||
{formattime(EWW_TIME,"%b %d, %Y %H:%M")}
|
{formattime(EWW_TIME,"%b %d, %Y %H:%M")}
|
||||||
(systemtray)))
|
(systemtray)))
|
||||||
|
|
||||||
|
@ -40,10 +40,34 @@
|
||||||
:spacing 10
|
:spacing 10
|
||||||
:prepend-new true))
|
:prepend-new true))
|
||||||
|
|
||||||
(defwidget sysinfo []
|
(defwidget revealer-on-hover [revealvar revealvar-name ?class ?duration ?transition]
|
||||||
(revealer :transition "slideleft"
|
(box
|
||||||
:reveal true
|
:class "${class} revealer-on-hover"
|
||||||
(systemtray)))
|
:orientation "h"
|
||||||
|
:space-evently false
|
||||||
|
(eventbox
|
||||||
|
:onhover "eww update ${revealvar-name}=true"
|
||||||
|
:onhoverlost "eww update ${revealvar-name}=false"
|
||||||
|
(box
|
||||||
|
:space-evenly false
|
||||||
|
(children :nth 0)
|
||||||
|
(revealer
|
||||||
|
:reveal revealvar
|
||||||
|
:transition {transition ?: "slideright"}
|
||||||
|
:duration {duration ?: "500ms"}
|
||||||
|
(children :nth 1))))))
|
||||||
|
|
||||||
|
(defvar reveal_systeminfo false)
|
||||||
|
(defwidget systeminfo []
|
||||||
|
(revealer-on-hover
|
||||||
|
:revealvar reveal_systeminfo
|
||||||
|
:revealvar-name "reveal_systeminfo"
|
||||||
|
(metric :label "💾"
|
||||||
|
:value {EWW_RAM.used_mem_perc}
|
||||||
|
:onchange "")
|
||||||
|
(metric :label "RAM"
|
||||||
|
:value {EWW_RAM.used_mem_perc}
|
||||||
|
:onchange "")))
|
||||||
|
|
||||||
(defwidget music []
|
(defwidget music []
|
||||||
(box :class "music"
|
(box :class "music"
|
||||||
|
@ -52,20 +76,16 @@
|
||||||
:halign "center"
|
:halign "center"
|
||||||
{music != "" ? "🎵${music}" : ""}))
|
{music != "" ? "🎵${music}" : ""}))
|
||||||
|
|
||||||
|
|
||||||
(defwidget metric [label value onchange]
|
(defwidget metric [label value onchange]
|
||||||
(box :orientation "h"
|
(box :orientation "h"
|
||||||
:class "metric"
|
:class "metric"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
(box :class "label" label)
|
(box :class "label" label)
|
||||||
(scale :min 0
|
(circular-progress :min 0
|
||||||
:max 101
|
|
||||||
:active {onchange != ""}
|
:active {onchange != ""}
|
||||||
:value value
|
:value value
|
||||||
:onchange onchange)))
|
:onchange onchange)))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(deflisten music :initial ""
|
(deflisten music :initial ""
|
||||||
"playerctl --follow metadata --format '{{ artist }} - {{ title }}' || true")
|
"playerctl --follow metadata --format '{{ artist }} - {{ title }}' || true")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue