Skip to main content

System Info

SysInfo

Display SysInfo.

Sample Configuration

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

Properties

NameTypeDefaultDescription
Precisionint2The precision used for any float values

Template (info)

default template
{{ round .PhysicalPercentUsed .Precision }}

Properties

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