diff options
| author | Caroline Larimore <caroline@larimo.re> | 2025-02-08 20:28:49 -0800 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2025-04-14 18:58:53 -0700 |
| commit | 1cfb12afdddce77ab2a8c430b53faf9d8d31d920 (patch) | |
| tree | 9f69be31594e436aa692edc5f15a3fa1efe511c9 /roles/home/desktop/eww/panels/cpu.yuck | |
| parent | 1eb21c10c217c60e226d168875def24967570a19 (diff) | |
migration: eww
Diffstat (limited to 'roles/home/desktop/eww/panels/cpu.yuck')
| -rw-r--r-- | roles/home/desktop/eww/panels/cpu.yuck | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/roles/home/desktop/eww/panels/cpu.yuck b/roles/home/desktop/eww/panels/cpu.yuck deleted file mode 100644 index ef57fa6..0000000 --- a/roles/home/desktop/eww/panels/cpu.yuck +++ /dev/null @@ -1,45 +0,0 @@ -(defwidget cpu [] - (box :class "panel" - :orientation "h" - :spacing 8 - :space-evenly false - - (tooltip :class "cutout" - {round(EWW_CPU.avg, 2) + "%"} - (graph - :value {EWW_CPU.avg} - :time-range "30s" - :width 76 - :height 76 - :hexpand true - ) - ) - - (box :orientation "v" - :spacing 8 - :space-evenly false - :hexpand true - - (label :halign "start" :markup {"<b>" + cpu-name + "</b>"}) - - (stat :key "Temperature" :value {round(EWW_TEMPS.K10TEMP_TCTL, 2) + "°C"}) - (stat :key "Frequency" :value {round(cpu-max-freq * cpu-freq/100, 0) + " MHz"}) - (stat :key "Usage" :value {round(EWW_CPU.avg, 2) + "%"}) - ) - ) -) - -(defpoll cpu-freq - :interval "2s" - `lscpu | sed -n '/CPU(s) scaling MHz/ s/.*:\\s*\\(.*\\)%/\\1/p'` -) - -(defpoll cpu-max-freq - :interval "9999s" - `lscpu | sed -n '/CPU max MHz/ s/.*:\\s*\\(.*\\)/\\1/p'` -) - -(defpoll cpu-name - :interval "9999s" - `lscpu | sed -n '/Model name/ s/.*:\\s*\\(.*\\)/\\1/p'` -) |