Presets: updates examples/25 [ci skip]

Fixes #2595
This commit is contained in:
李通洲
2026-09-19 18:55:30 +08:00
parent efbfda9cf8
commit 34639b61b3
+9 -2
View File
@@ -90,7 +90,7 @@
{ {
"type": "disk", "type": "disk",
"key": "║{#cyan}│ {icon} Disk │{$4}│{#keys}║{$2}", "key": "║{#cyan}│ {icon} Disk │{$4}│{#keys}║{$2}",
"format": "{size-used} \/ {size-total} ({size-percentage}) - {filesystem}", "format": "{mountpoint} {size-used} \/ {size-total} ({size-percentage}) - {filesystem}",
}, },
{ {
"type": "battery", "type": "battery",
@@ -195,7 +195,7 @@
"keyIcon": "", "keyIcon": "",
"key": "║{#red}│ {icon} Clang │{$4}│{#keys}║{$2}", "key": "║{#red}│ {icon} Clang │{$4}│{#keys}║{$2}",
"text": "clang --version | findstr version", // Finds the line with "version" "text": "clang --version | findstr version", // Finds the line with "version"
"format": "clang {~-6}" // Prints the last 6 characters (version number) "format": "clang {~14,20}" // Prints 14~20 characters (version number)
}, },
{ {
"type": "command", "type": "command",
@@ -204,6 +204,13 @@
"text": "node --version", "text": "node --version",
"format": "node {~1}" // {~1} removes first character (v) "format": "node {~1}" // {~1} removes first character (v)
}, },
{
"type": "command",
"keyIcon": "",
"key": "║{#red}│ {icon} Python │{$4}│{#keys}║{$2}",
"text": "python --version",
"format": "python {~7}" // {~7} removes first 7 characters ("Python" with extra space)
},
{ {
"type": "command", "type": "command",
"keyIcon": "", "keyIcon": "",