mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-03 15:27:26 -08:00
25be370618
cpu, mem, load, ...
1.6 KiB
1.6 KiB
id | title | sidebar_label |
---|---|---|
sysinfo | SysInfo | SysInfo |
SysInfo
Display SysInfo.
Sample Configuration
{
"type":"sysinfo",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#8f43f3",
"invert_powerline": true,
"properties": {
"prefix": " \uf85a ",
"postfix": "% ",
"precision": 2,
"template":"{{ round .PhysicalPercentUsed .Precision }}"
},
"style":"powerline"
},
Properties
- Precision:
int
- The precision used for any float values - defaults to 2 - template:
string
- A go [text/template][go-text-template] template extended with [sprig][sprig] utilizing the properties below - defaults to{{ round .PhysicalPercentUsed .Precision }}>
Template Properties
.PhysicalTotalMemory
:int
- is the total of used physical memory.PhysicalFreeMemory
:int
- is the total of free physical memory.PhysicalPercentUsed
:float64
- is the percentage of physical memory in usage.SwapTotalMemory
:int
- is the total of used swap memory.SwapFreeMemory
:int
- is the percentage of swap memory in usage.SwapPercentUsed
:float64
- is the current user root/admin or not.Load1
:float64
- is the current load1 (can be empty on windows).Load5
:float64
- is the current load5 (can be empty on windows).Load15
:float64
- is the current load15 (can be empty on windows).CPU
:[]struct
- an array of InfoStat object, you can use any property it has e.g.(index .CPU 0).Cores