跳转到主内容

系统信息

非官方测试版翻译

本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →

功能

显示系统信息。

示例配置

{
"type": "sysinfo",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#8f43f3",
"template": "  {{ round .PhysicalPercentUsed .Precision }}% ",
"options": {
"precision": 2
},
"style": "powerline"
}

选项

NameTypeDefaultDescription
Precisionint2The precision used for any float values

模板 (信息)

默认模板
 {{ round .PhysicalPercentUsed .Precision }}

属性

NameTypeDescription
.PhysicalTotalMemoryintis the total of used physical memory
.PhysicalAvailableMemoryintis the total available physical memory (i.e. the amount immediately available to processes)
.PhysicalFreeMemoryintis the total of free physical memory (i.e. considers memory used by the system for any reason [e.g. caching] as occupied)
.PhysicalPercentUsedfloat64is the percentage of physical memory in usage
.SwapTotalMemoryintis the total of used swap memory
.SwapFreeMemoryintis the total of free swap memory
.SwapPercentUsedfloat64is the percentage of swap memory in usage
.Load1float64is the current load1 (can be empty on windows)
.Load5float64is the current load5 (can be empty on windows)
.Load15float64is the current load15 (can be empty on windows)
.Disks[]structan array of IOCountersStat object, you can use any property it has e.g. .Disks.disk0.IoTime