aboutsummaryrefslogtreecommitdiff
path: root/home/rices/schrottkatze/eww/configDir/topBar/sysinfo.yuck
blob: c37838a4d08597e8cc0ebb6b0de4810c3edc9f1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(deflisten bat
  :initial "<span foreground=\"#cc241d\">BAT0 ERR</span>"
  { "~/.config/eww/scripts/bat.nu auto"}
)

(defwidget cpu []
  (box
    :class "cpuIndicator"
    (label
      :markup "<span foreground=\"#d65d0e\"></span> ${strlength(round(EWW_CPU.avg, 0)) == 1 ? " ${round(EWW_CPU.avg, 0)}" : round(EWW_CPU.avg, 0)}<span foreground=\"#7c6f64\">%</span>"
    )
  )
)

(defwidget mem []
  (box
    :class "memIndicator"
    (label
      :markup "<span foreground=\"#d65d0e\"> </span> ${round(EWW_RAM.used_mem_perc, 0)}<span foreground=\"#7c6f64\">%</span>"
    )
  )
)