Doc: update cpucache and initsystem

This commit is contained in:
李通洲
2024-06-05 19:15:25 +08:00
parent 10fd7d61ae
commit 51953e4818
4 changed files with 52 additions and 9 deletions
+10
View File
@@ -690,6 +690,7 @@
"camera",
"chassis",
"cpu",
"cpucache",
"cpuusage",
"command",
"colors",
@@ -705,6 +706,7 @@
"gpu",
"host",
"icons",
"initsystem",
"kernel",
"lm",
"loadavg",
@@ -792,6 +794,10 @@
"const": "camera",
"description": "Print available cameras"
},
{
"const": "cpucache",
"description": "Print CPU cache sizes"
},
{
"const": "cursor",
"description": "Print cursor style name"
@@ -816,6 +822,10 @@
"const": "icons",
"description": "Print icon style name"
},
{
"const": "initsystem",
"description": "Print init system (pid 1) name and version"
},
{
"const": "kernel",
"description": "Print system kernel version"
+21 -5
View File
@@ -1,5 +1,10 @@
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"padding": {
"top": 2
}
},
"modules": [
"title",
"separator",
@@ -35,10 +40,15 @@
"terminaltheme",
{
"type": "cpu",
"showPeCoreCount": true
"showPeCoreCount": true,
"temp": true
},
"cpucache",
"cpuusage",
"gpu",
{
"type": "gpu",
"temp": true
},
"memory",
"physicalmemory",
"swap",
@@ -50,7 +60,7 @@
"publicip",
{
"type": "localip",
"showIpV6": true,
"showIpv6": true,
"showMac": true
},
"wifi",
@@ -64,10 +74,16 @@
"sound",
"camera",
"gamepad",
"weather",
{
"type": "weather",
"timeout": 1000
},
"netio",
"diskio",
"physicaldisk",
{
"type": "physicaldisk",
"temp": true
},
"version",
"break",
"colors"
+12 -4
View File
@@ -42,10 +42,15 @@
"terminaltheme",
{
"type": "cpu",
"showPeCoreCount": true
"showPeCoreCount": true,
"temp": true
},
"cpucache",
"cpuusage",
"gpu",
{
"type": "gpu",
"temp": true
},
"memory",
"physicalmemory",
"swap",
@@ -57,7 +62,7 @@
"publicip",
{
"type": "localip",
"showIpV6": true,
"showIpv6": true,
"showMac": true
},
"wifi",
@@ -77,7 +82,10 @@
},
"netio",
"diskio",
"physicaldisk",
{
"type": "physicaldisk",
"temp": true
},
"version",
"break",
"colors"
+9
View File
@@ -1182,6 +1182,15 @@
"default": false
}
},
{
"long": "cpucache-compact",
"desc": "Show all CPU caches in one line",
"arg": {
"type": "bool",
"optional": true,
"default": false
}
},
{
"long": "cpuusage-separate",
"desc": "Display CPU usage per CPU logical core, instead of an average result",