From cd783d126711ca67f290f9ed6e11cfa271c21988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 1 May 2024 16:00:31 +0800 Subject: [PATCH] Presets: add a new example --- presets/examples/11.jsonc | 2 +- presets/examples/13.jsonc | 85 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 presets/examples/13.jsonc diff --git a/presets/examples/11.jsonc b/presets/examples/11.jsonc index b235b05f5..1daee9b51 100644 --- a/presets/examples/11.jsonc +++ b/presets/examples/11.jsonc @@ -1,5 +1,5 @@ { - "$schema": "file:///C:/msys64/home/zhang/fastfetch/doc/json_schema.json", + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", "logo": { "type": "small" }, diff --git a/presets/examples/13.jsonc b/presets/examples/13.jsonc new file mode 100644 index 000000000..d4ff95a29 --- /dev/null +++ b/presets/examples/13.jsonc @@ -0,0 +1,85 @@ +{ + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", + "logo": { + "type": "small", + "padding": { + "top": 1 + } + }, + "display": { + "separator": "", + "keyWidth": 15 + }, + "modules": [ + { + "key": "╭───────────╮", + "type": "custom" + }, + { + // draw borders first to make colors of left and right border consistant + "key": "│ │\u001b[11D\u001b[31m user", + "type": "title", + "format": "{1}" + }, + { + "key": "│ │\u001b[11D\u001b[32m󰇅 hname", + "type": "title", + "format": "{2}" + }, + { + "key": "│ │\u001b[11D\u001b[33m󰅐 uptime", + "type": "uptime" + }, + { + "key": "│ │\u001b[11D\u001b[34m󰟾 distro", + "type": "os" + }, + { + "key": "│ │\u001b[11D\u001b[35m kernel", + "type": "kernel" + }, + { + "key": "│ │\u001b[11D\u001b[36m󰇄 desktop", + "type": "de" + }, + { + "key": "│ │\u001b[11D\u001b[31m term", + "type": "terminal" + }, + { + "key": "│ │\u001b[11D\u001b[32m shell", + "type": "shell" + }, + { + "key": "│ │\u001b[11D\u001b[33m󰍛 cpu", + "type": "cpu" + }, + { + "key": "│ │\u001b[11D\u001b[34m󰉉 disk", + "type": "disk", + "folders": "/" + }, + { + "key": "│ │\u001b[11D\u001b[35m memory", + "type": "memory" + }, + { + "key": "│ │\u001b[11D\u001b[36m󰩟 network", + "type": "localip", + "format": "{1} ({4})" + }, + { + "key": "├───────────┤", + "type": "custom" + }, + { + "key": "│ │\u001b[11D\u001b[m colors", + "type": "colors", + "symbol": "circle" + }, + { + "key": "╰───────────╯", + "type": "custom" + } + ] +}