Presets: fixes neofetch keys

Fixes #2588
This commit is contained in:
Carter Li
2026-09-15 09:17:49 +08:00
parent ff3360e036
commit 416715a505
2 changed files with 15 additions and 3 deletions
+12 -3
View File
@@ -38,8 +38,14 @@
"compactType": "original",
"key": "Resolution"
},
"de",
"wm",
{
"type": "de",
"key": "DE"
},
{
"type": "wm",
"key": "WM"
},
"wmtheme",
"theme",
"icons",
@@ -48,7 +54,10 @@
"type": "terminalfont",
"format": "{/name}{-}{/}{name}{?size} {size}{?}"
},
"cpu",
{
"type": "cpu",
"showPeCoreCount": false
},
{
"type": "gpu",
"key": "GPU",
+3
View File
@@ -68,11 +68,13 @@ int main(void) {
}
{
MODULE_OPTION(DE)
ffStrbufSetStatic(&options.moduleArgs.key, "DE");
ffPrintDE(&options);
}
{
instance.config.general.detectVersion = false;
MODULE_OPTION(WM)
ffStrbufSetStatic(&options.moduleArgs.key, "WM");
options.detectPlugin = true;
ffPrintWM(&options);
instance.config.general.detectVersion = true;
@@ -100,6 +102,7 @@ int main(void) {
}
{
MODULE_OPTION(CPU)
options.showPeCoreCount = false;
ffPrintCPU(&options);
}
{