Aller au contenu principal

Informations système

Traduction Bêta Non Officielle

Cette page a été traduite par PageTurner AI (bêta). Non approuvée officiellement par le projet. Vous avez trouvé une erreur ? Signaler un problème →

Description

Affiche les informations système.

Exemple de configuration

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

Options

NameTypeDefaultDescription
Precisionint2The precision used for any float values

Modèle (info)

modèle par défaut
 {{ round .PhysicalPercentUsed .Precision }}

Propriétés

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