Using a bash script for SystemStats instead of ZigStat
This commit is contained in:
parent
b68d5c9f4c
commit
d009b8d5c8
8 changed files with 234 additions and 160 deletions
|
|
@ -28,13 +28,8 @@ NBox {
|
|||
height: Style.marginTiny * scaling
|
||||
}
|
||||
|
||||
NSystemMonitor {
|
||||
id: sysMon
|
||||
intervalSeconds: 1
|
||||
}
|
||||
|
||||
NCircleStat {
|
||||
value: sysMon.cpuUsage || SysInfo.cpuUsage
|
||||
value: SystemStats.cpuUsage
|
||||
icon: "speed"
|
||||
flat: true
|
||||
contentScale: 0.8
|
||||
|
|
@ -42,7 +37,7 @@ NBox {
|
|||
height: 68 * scaling
|
||||
}
|
||||
NCircleStat {
|
||||
value: sysMon.cpuTemp || SysInfo.cpuTemp
|
||||
value: SystemStats.cpuTemp
|
||||
suffix: "°C"
|
||||
icon: "device_thermostat"
|
||||
flat: true
|
||||
|
|
@ -51,7 +46,7 @@ NBox {
|
|||
height: 68 * scaling
|
||||
}
|
||||
NCircleStat {
|
||||
value: sysMon.memoryUsagePer || SysInfo.memoryUsagePer
|
||||
value: SystemStats.memoryUsagePer
|
||||
icon: "memory"
|
||||
flat: true
|
||||
contentScale: 0.8
|
||||
|
|
@ -59,7 +54,7 @@ NBox {
|
|||
height: 68 * scaling
|
||||
}
|
||||
NCircleStat {
|
||||
value: sysMon.diskUsage || SysInfo.diskUsage
|
||||
value: SystemStats.diskUsage
|
||||
icon: "data_usage"
|
||||
flat: true
|
||||
contentScale: 0.8
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue