Files
fastfetch/src/data/json_schema.jsonc
T

1048 lines
50 KiB
JSON
Raw Normal View History

{
"$schema": "http://json-schema.org/schema",
2023-06-18 02:07:34 +08:00
"$defs": {
"colors": {
"type": "string",
"enum": ["reset_", "bright_", "black", "red", "green", "yellow", "blue", "magenta", "cyan", "white"]
2023-06-18 12:32:47 +08:00
},
"key": {
2023-06-20 14:41:01 +08:00
"title": "modules.*.key",
"description": "Key of the module",
2023-06-18 12:32:47 +08:00
"type": "string"
},
"keyColor": {
2023-06-20 14:41:01 +08:00
"title": "modules.*.keyColor",
"description": "Color of the module key",
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/colors",
"default": "Use display.color.keys"
},
"format": {
2023-06-20 14:41:01 +08:00
"title": "modules.*.format",
"description": "Format of the module",
2023-06-18 12:32:47 +08:00
"type": "string"
2023-06-18 02:07:34 +08:00
}
},
"type": "object",
2023-06-20 14:41:01 +08:00
"title": "Fastfetch config",
"description": "JSON config file for fastfetch. Usually be `~/.config/fastfetch.jsonc`",
"properties": {
"logo": {
2023-06-20 14:41:01 +08:00
"title": "logo",
"description": "Fastfetch logo configurations",
"type": "object",
"properties": {
"type": {
2023-06-20 14:41:01 +08:00
"title": "logo.type",
"description": "Set the type of the logo given",
"enum": [
"auto",
"builtin",
"file",
"file-raw",
"data",
"data-raw",
"sixel",
"kitty",
"iterm",
"chafa",
"raw",
"none"
],
"default": "auto"
},
"source": {
2023-06-20 14:41:01 +08:00
"title": "logo.source",
"type": "string",
2023-06-20 14:41:01 +08:00
"description": "Set the source file of the logo"
},
"color": {
2023-06-20 14:41:01 +08:00
"title": "logo.color",
"type": "object",
2023-06-20 14:41:01 +08:00
"description": "Overwrite a color in the logo",
"properties": {
"1": {
2023-06-20 14:41:01 +08:00
"title": "logo.color.1",
"description": "Color 1",
2023-06-18 02:07:34 +08:00
"$ref": "#/$defs/colors"
},
"2": {
2023-06-20 14:41:01 +08:00
"title": "logo.color.2",
"description": "Color 2",
2023-06-18 02:07:34 +08:00
"$ref": "#/$defs/colors"
},
"3": {
2023-06-20 14:41:01 +08:00
"title": "logo.color.3",
"description": "Color 3",
2023-06-18 02:07:34 +08:00
"$ref": "#/$defs/colors"
},
"4": {
2023-06-20 14:41:01 +08:00
"title": "logo.color.4",
"description": "Color 4",
2023-06-18 02:07:34 +08:00
"$ref": "#/$defs/colors"
},
"5": {
2023-06-20 14:41:01 +08:00
"title": "logo.color.5",
"description": "Color 5",
2023-06-18 02:07:34 +08:00
"$ref": "#/$defs/colors"
},
"6": {
2023-06-20 14:41:01 +08:00
"title": "logo.color.6",
"description": "Color 6",
2023-06-18 02:07:34 +08:00
"$ref": "#/$defs/colors"
},
"7": {
2023-06-20 14:41:01 +08:00
"title": "logo.color.7",
"description": "Color 7",
2023-06-18 02:07:34 +08:00
"$ref": "#/$defs/colors"
},
"8": {
2023-06-20 14:41:01 +08:00
"title": "logo.color.8",
"description": "Color 8",
2023-06-18 02:07:34 +08:00
"$ref": "#/$defs/colors"
},
"9": {
2023-06-20 14:41:01 +08:00
"title": "logo.color.9",
"description": "Color 9",
2023-06-18 02:07:34 +08:00
"$ref": "#/$defs/colors"
}
}
},
"width": {
2023-06-20 14:41:01 +08:00
"title": "logo.width",
"type": "integer",
2023-06-20 14:41:01 +08:00
"description": "Set the width of the logo (in characters). Required for iTerm image protocol",
"minimum": 1
},
"height": {
2023-06-20 14:41:01 +08:00
"title": "logo.height",
"type": "integer",
2023-06-20 14:41:01 +08:00
"description": "Set the height of the logo (in characters). Required for iTerm image protocol",
"minimum": 1
},
"padding": {
2023-06-20 14:41:01 +08:00
"title": "logo.padding",
"type": "object",
2023-06-20 14:41:01 +08:00
"description": "Set the padding of the logo",
"properties": {
"top": {
2023-06-20 14:41:01 +08:00
"title": "logo.padding.top",
"type": "integer",
2023-06-20 14:41:01 +08:00
"description": "Set the top padding of the logo",
"minimum": 0
},
"left": {
2023-06-20 14:41:01 +08:00
"title": "logo.padding.left",
"type": "integer",
2023-06-20 14:41:01 +08:00
"description": "Set the left padding of the logo",
"minimum": 0
},
"right": {
2023-06-20 14:41:01 +08:00
"title": "logo.padding.right",
"type": "integer",
2023-06-20 14:41:01 +08:00
"description": "Set the right padding of the logo",
"minimum": 0
}
}
},
"printRemaining": {
2023-06-20 14:41:01 +08:00
"title": "logo.printRemaining",
"type": "boolean",
2023-06-20 14:41:01 +08:00
"description": "Whether to print the remaining logo, if it has more lines than modules to display",
"default": false
},
"preserveAspectRadio": {
2023-06-20 14:41:01 +08:00
"title": "logo.preserveAspectRadio",
"type": "boolean",
2023-06-20 14:41:01 +08:00
"description": "Whether to preserve the aspect ratio of the logo. Supported by iTerm image protocol",
"default": false
},
"chafa": {
2023-06-20 14:41:01 +08:00
"title": "logo.chafa",
"type": "object",
2023-06-20 14:41:01 +08:00
"description": "Chafa configuration. See chafa document for details",
"properties": {
"fgOnly": {
2023-06-20 14:41:01 +08:00
"title": "logo.chafa.fgOnly",
"type": "boolean",
2023-06-20 14:41:01 +08:00
"description": "Produce character-cell output using foreground colors only",
"default": false
},
"symbols": {
2023-06-20 14:41:01 +08:00
"title": "logo.chafa.symbols",
"type": "string",
2023-06-20 14:41:01 +08:00
"description": "Specify character symbols to employ in final output"
},
"canvasMode": {
2023-06-20 14:41:01 +08:00
"title": "logo.chafa.canvasMode",
"type": "string",
2023-06-20 14:41:01 +08:00
"description": "Determine how colors are used in the output. This value maps the value of enum ChafaCanvasMode.",
"enum": [
"TRUECOLOR",
"INDEXED_256",
"INDEXED_240",
"INDEXED_16",
"FGBG_BGFG",
"FGBG",
"INDEXED_8",
"INDEXED_16_8"
]
},
"colorSpace": {
2023-06-20 14:41:01 +08:00
"title": "logo.chafa.colorSpace",
"type": "string",
2023-06-20 14:41:01 +08:00
"description": "Set color space used for quantization. This value maps the value of enum ChafaColorSpace.",
"enum": [
"RGB",
"DIN99D"
]
},
"ditherMode": {
2023-06-20 14:41:01 +08:00
"title": "logo.chafa.ditherMode",
"type": "string",
2023-06-20 14:41:01 +08:00
"description": "Set output dither mode (No effect with 24-bit color). This value maps the value of enum ChafaDitherMode.",
"enum": [
"NONE",
"ORDERED",
"DIFFUSION"
]
}
}
}
}
},
"general": {
2023-06-20 14:41:01 +08:00
"title": "general",
"description": "Fastfetch general configurations",
"type": "object",
"properties": {
"allowSlowOperations": {
2023-06-20 14:41:01 +08:00
"title": "general.allowSlowOperations",
"type": "boolean",
2023-06-20 14:41:01 +08:00
"description": "Allow operations that can be very slow for more detailed output",
"default": false
},
"multithreading": {
2023-06-20 14:41:01 +08:00
"title": "general.multithreading",
"type": "boolean",
2023-06-20 14:41:01 +08:00
"description": "Use multiple threads to detect values",
"default": true
},
"stat": {
2023-06-20 14:41:01 +08:00
"title": "general.stat",
"type": "boolean",
2023-06-20 14:41:01 +08:00
"description": "Show time usage (in ms) for individual modules",
"default": false
},
"escapeBedrock": {
2023-06-20 14:41:01 +08:00
"title": "general.escapeBedrock",
"type": "boolean",
2023-06-20 14:41:01 +08:00
"description": "On Bedrock Linux, whether to escape the bedrock jail",
"default": true
},
"pipe": {
2023-06-20 14:41:01 +08:00
"title": "general.pipe",
"type": "boolean",
2023-06-20 14:41:01 +08:00
"description": "Whether to enable pipe mode (disable logo and all escape sequences)",
"default": false
},
"playerName": {
2023-06-20 14:41:01 +08:00
"title": "general.playerName",
"type": "string",
2023-06-20 14:41:01 +08:00
"description": "The name of the player to use for module Media and Player. Linux only"
},
"osFile": {
2023-06-20 14:41:01 +08:00
"title": "general.osFile",
"type": "string",
2023-06-20 14:41:01 +08:00
"description": "Set the path to the file containing OS information. Linux only"
}
}
},
"display": {
2023-06-20 14:41:01 +08:00
"title": "display",
"description": "Configure how things to be displayed",
"type": "object",
"properties": {
"showErrors": {
2023-06-20 14:41:01 +08:00
"title": "display.showErrors",
"type": "boolean",
2023-06-20 14:41:01 +08:00
"description": "Print occurring errors to the console. False to ignore errored modules",
"default": false
},
"disableLinewrap": {
2023-06-20 14:41:01 +08:00
"title": "display.disableLinewrap",
"type": "boolean",
2023-06-20 14:41:01 +08:00
"description": "Whether to disable line wrap during the run",
"default": true
},
"hideCursor": {
2023-06-20 14:41:01 +08:00
"title": "display.hideCursor",
"type": "boolean",
2023-06-20 14:41:01 +08:00
"description": "Whether to hide the cursor during the run",
"default": true
},
"separator": {
2023-06-20 14:41:01 +08:00
"title": "display.separator",
"type": "string",
2023-06-20 14:41:01 +08:00
"description": "Set the separator between key and value",
"default": ": "
},
"color": {
2023-06-20 14:41:01 +08:00
"title": "display.color",
"description": "Set the color of the keys and title",
"anyOf": [
{
2023-06-20 14:41:01 +08:00
"description": "Set the both color of the keys and title",
2023-06-18 02:07:34 +08:00
"$ref": "#/$defs/colors"
},
{
"type": "object",
"properties": {
"keys": {
2023-06-20 14:41:01 +08:00
"title": "display.color.keys",
"description": "Set the color of the keys",
2023-06-18 02:07:34 +08:00
"$ref": "#/$defs/colors"
},
"title": {
2023-06-20 14:41:01 +08:00
"title": "display.color.title",
"description": "Set the color of the title",
2023-06-18 02:07:34 +08:00
"$ref": "#/$defs/colors"
}
}
}
]
},
"binaryPrefix": {
"type": "string",
2023-06-20 14:41:01 +08:00
"title": "display.binaryPrefix",
"description": "Set the binary prefix to used when printing bytes",
"enum": [
"iec",
"si",
"jedec"
]
},
"percentType": {
"type": "number",
2023-06-20 14:41:01 +08:00
"title": "display.percentType",
"description": "Set the percentage output type. 1 for percentage number, 2 for bar, 3 for both, 6 for bar only, 9 for colored number",
"minimum": 0,
"maximum": 9,
"default": 1
},
"noBuffer": {
"type": "boolean",
2023-06-20 14:41:01 +08:00
"title": "display.noBuffer",
"description": "Whether to disable the stdout application buffer",
"default": false
}
}
},
"library": {
2023-06-20 14:41:01 +08:00
"title": "library",
"description": "Set the path of a library to load",
"type": "object",
"properties": {
"pci": {
2023-06-20 14:41:01 +08:00
"title": "library.pci",
"type": "string",
"description": "GPU output (Linux and FreeBSD)"
},
"vulkan": {
2023-06-20 14:41:01 +08:00
"title": "library.vulkan",
"type": "string",
"description": "Vulkan module & fallback for GPU output"
},
"freetype": {
2023-06-20 14:41:01 +08:00
"title": "library.freetype",
"type": "string",
"description": "Used for Termux font detection (Android)"
},
"wayland": {
2023-06-20 14:41:01 +08:00
"title": "library.wayland",
"type": "string",
"description": "Better display performance and output in wayland sessions.\nSupports different refresh rates per monitor.\n(Linux)"
},
"xcbRandr": {
2023-06-20 14:41:01 +08:00
"title": "library.xcbRandr",
"type": "string",
"description": ""
},
"xcb": {
2023-06-20 14:41:01 +08:00
"title": "library.xcb",
"type": "string",
"description": "X11 sessions for better display detection and faster WM detection.\nThe *randr ones provide multi monitor support The libxcb* ones usually have better performance.\n (Linux, FreeBSD)"
},
2023-06-20 14:41:01 +08:00
"xrandr": {
"title": "library.xrandr",
"type": "string",
"description": "X11 sessions for better display detection and faster WM detection.\nThe *randr ones provide multi monitor support The libxcb* ones usually have better performance.\n (Linux, FreeBSD)"
},
2023-06-20 14:41:01 +08:00
"x11": {
"title": "library.x11",
"type": "string",
"description": "X11 sessions for better display detection and faster WM detection.\nThe *randr ones provide multi monitor support The libxcb* ones usually have better performance.\n (Linux, FreeBSD)"
},
"gio": {
2023-06-20 14:41:01 +08:00
"title": "library.gio",
"type": "string",
"description": "Needed for values that are only stored GSettings (Linux, FreeBSD)"
},
2023-06-20 14:41:01 +08:00
"dconf": {
"title": "library.dconf",
"type": "string",
"description": "Needed for values that are only stored in DConf + Fallback for GSettings (Linux, FreeBSD)"
},
"dbus": {
2023-06-20 14:41:01 +08:00
"title": "library.dbus",
"type": "string",
"description": "Bluetooth, Player & Media detection (Linux, FreeBSD)"
},
2023-06-20 14:41:01 +08:00
"xfconf": {
"title": "library.xfconf",
"type": "string",
"description": "Needed for XFWM theme and XFCE Terminal font (Linux, FreeBSD)"
},
"sqlite3": {
2023-06-20 14:41:01 +08:00
"title": "library.sqlite3",
"type": "string",
"description": "Needed for pkg & rpm package count (Linux, FreeBSD)"
},
"rpm": {
2023-06-20 14:41:01 +08:00
"title": "library.rpm",
"type": "string",
"description": "Slower fallback for rpm package count. Needed on openSUSE & old CentOS / Redhat. (Linux)"
},
"imagemagick": {
2023-06-20 14:41:01 +08:00
"title": "library.imagemagick",
"type": "string",
"description": "Images in terminal using sixel or kitty graphics protocol (Linux, FreeBSD, macOS)"
},
"z": {
2023-06-20 14:41:01 +08:00
"title": "library.z",
"description": "Libz. Faster image output when using kitty graphics protocol (Linux, FreeBSD, macOS)",
"type": "string"
},
"chafa": {
2023-06-20 14:41:01 +08:00
"title": "library.chafa",
"type": "string",
"description": "Image output as ascii art (Linux, FreeBSD, macOS)"
},
"egl": {
2023-06-20 14:41:01 +08:00
"title": "library.egl",
"type": "string",
"description": "Needed by the OpenGL module for gl context creation (Linux, FreeBSD)"
},
"glx": {
2023-06-20 14:41:01 +08:00
"title": "library.glx",
"type": "string",
"description": "Needed by the OpenGL module for gl context creation (Linux, FreeBSD)"
},
"osmesa": {
2023-06-20 14:41:01 +08:00
"title": "library.osmesa",
"type": "string",
"description": "Needed by the OpenGL module for gl context creation (Linux, FreeBSD)"
},
"opencl": {
2023-06-20 14:41:01 +08:00
"title": "library.opencl",
"type": "string",
"description": "OpenCL module (Linux, FreeBSD, Windows)"
},
"pulse": {
2023-06-20 14:41:01 +08:00
"title": "library.pulse",
"description": "Pulseaudio. Used for Sound detection (Linux, FreeBSD)",
"type": "string"
},
"nm": {
2023-06-20 14:41:01 +08:00
"title": "library.nm",
"description": "NetworkManager. Used for Wifi detection (Linux)",
"type": "string"
}
}
},
"modules": {
2023-06-20 14:41:01 +08:00
"title": "modules",
"description": "Fastfetch modules to run",
"type": "array",
"items": {
"anyOf": [
{
2023-06-17 22:37:33 +08:00
"type": "string",
2023-06-20 14:41:01 +08:00
"description": "Run module with default configurations",
2023-06-17 22:37:33 +08:00
"enum": [
2023-06-20 14:41:01 +08:00
"battery",
"bios",
"bluetooth",
"board",
"break",
"brightness",
"chassis",
"cpu",
"cpuusage",
"command",
"colors",
"cursor",
"custom",
"datetime",
"display",
"disk",
"de",
"font",
"gamepad",
"gpu",
"host",
"icons",
"kernel",
"locale",
"localip",
"media",
"memory",
"opencl",
"opengl",
"os",
"packages",
"player",
"poweradapter",
"processes",
"publicip",
"separator",
"shell",
"sound",
"swap",
"terminal",
"terminalfont",
"title",
"theme",
"uptime",
"users",
"vulkan",
"wallpaper",
"weather",
"wm",
"wifi",
"wmtheme"
2023-06-17 22:37:33 +08:00
]
},
{
2023-06-17 22:37:33 +08:00
"type": "object",
"required": ["type"],
"anyOf": [
{
"properties": {
"type": {
2023-06-20 14:41:01 +08:00
"const": "Break"
2023-06-17 22:37:33 +08:00
}
2023-06-18 02:07:34 +08:00
},
"additionalProperties": false
2023-06-17 22:37:33 +08:00
},
{
"properties": {
"type": {
"enum": [
2023-06-20 14:41:01 +08:00
"bios",
"board",
"brightness",
"chassis",
"cpuusage",
"cursor",
"datetime",
"de",
"font",
"gamepad",
"host",
"icons",
"kernel",
"locale",
"media",
"memory",
"opencl",
"os",
"packages",
"player",
"poweradapter",
"processes",
"shell",
"swap",
"terminal",
"terminalfont",
"theme",
"uptime",
"users",
"vulkan",
"wallpaper",
"wm",
"wifi",
"wmtheme"
2023-06-17 22:37:33 +08:00
]
},
"key": {
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/key"
},
"keyColor": {
"$ref": "#/$defs/keyColor"
2023-06-17 22:37:33 +08:00
},
"format": {
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/format"
2023-06-17 22:37:33 +08:00
}
},
"additionalProperties": false
},
{
"properties": {
"type": {
2023-06-20 14:41:01 +08:00
"const": "battery"
2023-06-17 22:37:33 +08:00
},
"dir": {
2023-06-20 14:41:01 +08:00
"title": "modules.battery.dir",
"description": "The directory where the battery folders are. Standard: /sys/class/power_supply/. Linux only",
2023-06-17 22:37:33 +08:00
"type": "string"
},
"temp": {
2023-06-20 14:41:01 +08:00
"title": "modules.battery.temp",
"description": "Detect and display Battery temperature if supported",
2023-06-17 22:37:33 +08:00
"type": "boolean",
"default": false
},
"key": {
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/key"
},
"keyColor": {
"$ref": "#/$defs/keyColor"
2023-06-17 22:37:33 +08:00
},
"format": {
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/format"
2023-06-17 22:37:33 +08:00
}
},
"additionalProperties": false
},
{
"properties": {
"type": {
2023-06-20 14:41:01 +08:00
"const": "bluetooth"
2023-06-17 22:37:33 +08:00
},
"showDisconnected": {
2023-06-20 14:41:01 +08:00
"title": "modules.bluetooth.showDisconnected",
"description": "Set if disconnected bluetooth devices should be printed",
2023-06-17 22:37:33 +08:00
"type": "boolean",
"default": false
},
"key": {
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/key"
},
"keyColor": {
"$ref": "#/$defs/keyColor"
2023-06-17 22:37:33 +08:00
},
"format": {
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/format"
2023-06-17 22:37:33 +08:00
}
},
"additionalProperties": false
},
{
"properties": {
"type": {
2023-06-20 14:41:01 +08:00
"const": "cpu"
2023-06-17 22:37:33 +08:00
},
"temp": {
2023-06-20 14:41:01 +08:00
"title": "modules.cpu.temp",
"description": "Detect and display CPU temperature if supported",
2023-06-17 22:37:33 +08:00
"type": "boolean",
"default": false
},
"key": {
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/key"
},
"keyColor": {
"$ref": "#/$defs/keyColor"
2023-06-17 22:37:33 +08:00
},
"format": {
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/format"
2023-06-17 22:37:33 +08:00
}
},
"additionalProperties": false
},
2023-06-18 14:00:24 +08:00
{
"properties": {
"type": {
2023-06-20 14:41:01 +08:00
"const": "colors"
2023-06-18 14:00:24 +08:00
},
"symbol": {
2023-06-20 14:41:01 +08:00
"title": "modules.colors.symbol",
"description": "Set the symbol to use",
2023-06-18 14:00:24 +08:00
"type": "string",
"enum": [
"block",
"circle",
"diamond",
"triangle",
"square",
"star"
],
2023-06-20 14:41:01 +08:00
"default": "block"
2023-06-18 14:00:24 +08:00
}
}
},
2023-06-17 22:37:33 +08:00
{
"properties": {
"type": {
2023-06-20 14:41:01 +08:00
"const": "command"
2023-06-17 22:37:33 +08:00
},
"shell": {
2023-06-20 14:41:01 +08:00
"title": "modules.command.shell",
"description": "Set the shell program to execute the command text\nDefault: cmd for Windows, csh for FreeBSD, bash for others",
"type": "string"
2023-06-17 22:37:33 +08:00
},
"text": {
2023-06-20 14:41:01 +08:00
"title": "modules.command.text",
"description": "Set the command text to be executed",
2023-06-17 22:37:33 +08:00
"type": "string"
},
"key": {
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/key"
},
"keyColor": {
"$ref": "#/$defs/keyColor"
2023-06-17 22:37:33 +08:00
},
"format": {
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/format"
2023-06-17 22:37:33 +08:00
}
},
"additionalProperties": false
},
{
2023-06-20 14:41:01 +08:00
"description": "Print a custom string, with or without key",
2023-06-17 22:37:33 +08:00
"properties": {
"type": {
2023-06-20 14:41:01 +08:00
"const": "custom"
2023-06-17 22:37:33 +08:00
},
"key": {
2023-06-20 14:41:01 +08:00
"description": "Leave empty not to print the key",
"type": "string"
2023-06-17 22:37:33 +08:00
},
2023-06-18 12:32:47 +08:00
"keyColor": {
"$ref": "#/$defs/keyColor"
},
2023-06-17 22:37:33 +08:00
"format": {
2023-06-20 14:41:01 +08:00
"description": "Text to print",
2023-06-17 22:37:33 +08:00
"type": "string"
}
},
"required": ["format"],
"additionalProperties": false
},
{
"properties": {
"type": {
2023-06-20 14:41:01 +08:00
"const": "display"
2023-06-17 22:37:33 +08:00
},
"compactType": {
2023-06-20 14:41:01 +08:00
"title": "modules.display.compactType",
2023-06-17 22:37:33 +08:00
"enum": ["none", "original", "scaled"],
2023-06-20 14:41:01 +08:00
"description": "Set if all displays should be printed in one line",
2023-06-17 22:37:33 +08:00
"default": "none"
},
"detectName": {
2023-06-20 14:41:01 +08:00
"title": "modules.display.detectName",
"description": "Set if display name should be detected and printed (if supported)",
2023-06-17 22:37:33 +08:00
"type": "boolean",
"default": false
},
"preciseRefreshRate": {
2023-06-20 14:41:01 +08:00
"title": "modules.display.preciseRefreshRate",
"description": "Set if decimal refresh rates should not be rounded into integers when printing",
2023-06-17 22:37:33 +08:00
"type": "boolean",
"default": true
},
"key": {
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/key"
},
"keyColor": {
"$ref": "#/$defs/keyColor"
2023-06-17 22:37:33 +08:00
},
"format": {
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/format"
2023-06-17 22:37:33 +08:00
}
},
"additionalProperties": false
},
{
"properties": {
"type": {
2023-06-20 14:41:01 +08:00
"const": "disk"
2023-06-17 22:37:33 +08:00
},
"folders": {
2023-06-20 14:41:01 +08:00
"title": "modules.disk.folders",
2023-06-17 22:37:33 +08:00
"type": "string",
2023-06-20 14:41:01 +08:00
"description": "A colon (semicolon on Windows) separated list of folder paths for the disk output\nDefault: \"/:/home\" (\"C:\\\\;D:\\\\ ...\" on Windows)"
2023-06-17 22:37:33 +08:00
},
"showExternal": {
2023-06-20 14:41:01 +08:00
"title": "modules.disk.showExternal",
2023-06-17 22:37:33 +08:00
"type": "boolean",
2023-06-20 14:41:01 +08:00
"description": "Set if external volume should be printed",
2023-06-17 22:37:33 +08:00
"default": true
},
"showHidden": {
2023-06-20 14:41:01 +08:00
"title": "modules.disk.showHidden",
2023-06-17 22:37:33 +08:00
"type": "boolean",
2023-06-20 14:41:01 +08:00
"description": "Set if hidden volumes should be printed",
2023-06-17 22:37:33 +08:00
"default": false
},
"showSubvolumes": {
2023-06-20 14:41:01 +08:00
"title": "modules.disk.showSubvolumes",
2023-06-17 22:37:33 +08:00
"type": "boolean",
2023-06-20 14:41:01 +08:00
"description": "Set if subvolumes should be printed",
2023-06-17 22:37:33 +08:00
"default": false
},
"showUnknown": {
2023-06-20 14:41:01 +08:00
"title": "modules.disk.showUnknown",
2023-06-17 22:37:33 +08:00
"type": "boolean",
2023-06-20 14:41:01 +08:00
"description": "Set if unknown (unable to detect sizes) volumes should be printed",
2023-06-17 22:37:33 +08:00
"default": false
},
"key": {
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/key"
},
"keyColor": {
"$ref": "#/$defs/keyColor"
2023-06-17 22:37:33 +08:00
},
"format": {
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/format"
2023-06-17 22:37:33 +08:00
}
2023-06-18 02:07:34 +08:00
},
"additionalProperties": false
2023-06-17 22:37:33 +08:00
},
{
"properties": {
"type": {
2023-06-20 14:41:01 +08:00
"const": "gpu"
2023-06-17 22:37:33 +08:00
},
"temp": {
2023-06-20 14:41:01 +08:00
"title": "modules.gpu.temp",
"description": "Detect and display GPU temperature if supported",
2023-06-17 22:37:33 +08:00
"type": "boolean",
"default": false
},
"forceVulkan": {
2023-06-20 14:41:01 +08:00
"title": "modules.gpu.forceVulkan",
"description": "Force using vulkan to detect GPUs, which support video memory usage detection with `--allow-slow-operations`",
2023-06-17 22:37:33 +08:00
"type": "boolean",
"default": false
},
"hideType": {
2023-06-20 14:41:01 +08:00
"title": "modules.gpu.hideType",
"description": "Specify the type of GPUs should not be printed",
2023-06-17 22:37:33 +08:00
"enum": ["integrated", "discrete", "none"],
"default": "none"
},
"key": {
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/key"
},
"keyColor": {
"$ref": "#/$defs/keyColor"
2023-06-17 22:37:33 +08:00
},
"format": {
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/format"
2023-06-17 22:37:33 +08:00
}
},
"additionalProperties": false
},
{
"properties": {
"type": {
2023-06-20 14:41:01 +08:00
"const": "localip"
2023-06-17 22:37:33 +08:00
},
"showIpv4": {
2023-06-20 14:41:01 +08:00
"title": "modules.localip.showIpv4",
"description": "Show IPv4 addresses",
2023-06-17 22:37:33 +08:00
"type": "boolean",
"default": true
},
"showIpv6": {
2023-06-20 14:41:01 +08:00
"title": "modules.localip.showIpv6",
"description": "Show IPv6 addresses",
2023-06-17 22:37:33 +08:00
"type": "boolean",
"default": false
},
"showMac": {
2023-06-20 14:41:01 +08:00
"title": "modules.localip.showMac",
"description": "Show MAC addresses",
2023-06-17 22:37:33 +08:00
"type": "boolean",
"default": false
},
"showLoop": {
2023-06-20 14:41:01 +08:00
"title": "modules.localip.showLoop",
"description": "Show loop back addresses (127.0.0.1)",
2023-06-17 22:37:33 +08:00
"type": "boolean",
"default": false
},
"compact": {
2023-06-20 14:41:01 +08:00
"title": "modules.localip.compact",
"description": "Show all IPs in one line",
2023-06-17 22:37:33 +08:00
"type": "boolean",
"default": false
},
"namePrefix": {
2023-06-20 14:41:01 +08:00
"title": "modules.localip.namePrefix",
"description": "Show IPs with given name prefix only",
2023-06-17 22:37:33 +08:00
"type": "string"
},
"key": {
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/key"
},
"keyColor": {
"$ref": "#/$defs/keyColor"
2023-06-17 22:37:33 +08:00
},
"format": {
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/format"
2023-06-17 22:37:33 +08:00
}
},
"additionalProperties": false
},
{
"properties": {
"type": {
2023-06-20 14:41:01 +08:00
"const": "opengl"
2023-06-17 22:37:33 +08:00
},
"library": {
2023-06-20 14:41:01 +08:00
"title": "modules.opengl.library",
"description": "Set the OpenGL context creation library to use. Linux only",
2023-06-17 22:37:33 +08:00
"enum": ["auto", "egl", "glx", "osmesa"],
"default": "auto"
},
"key": {
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/key"
},
"keyColor": {
"$ref": "#/$defs/keyColor"
2023-06-17 22:37:33 +08:00
},
"format": {
2023-06-18 12:32:47 +08:00
"$ref": "#/$defs/format"
2023-06-17 22:37:33 +08:00
}
2023-06-18 02:07:34 +08:00
},
"additionalProperties": false
2023-06-18 14:38:39 +08:00
},
{
"properties": {
"type": {
2023-06-20 14:41:01 +08:00
"const": "publicip"
2023-06-18 14:38:39 +08:00
},
"url": {
2023-06-20 14:41:01 +08:00
"title": "modules.publicip.url",
"description": "The URL of public IP detection server to be used. Only HTTP protocol is supported",
2023-06-18 14:38:39 +08:00
"type": "string",
"format": "url",
"default": "http://ipinfo.io/ip"
},
"timeout": {
2023-06-20 14:41:01 +08:00
"title": "modules.publicip.timeout",
"description": "Time in milliseconds to wait for the public ip server to respond",
2023-06-18 14:38:39 +08:00
"type": "integer",
"minimum": 0,
"default": "disabled (0)"
},
"key": {
"$ref": "#/$defs/key"
},
"keyColor": {
"$ref": "#/$defs/keyColor"
},
"format": {
"$ref": "#/$defs/format"
}
},
"additionalProperties": false
},
{
"properties": {
"type": {
2023-06-20 14:41:01 +08:00
"const": "separator"
2023-06-18 14:38:39 +08:00
},
"string": {
2023-06-20 14:41:01 +08:00
"title": "modules.separator.string",
"description": "Set the string to be printed",
2023-06-18 14:38:39 +08:00
"type": "string",
"format": "url",
"default": "http://ipinfo.io/ip"
}
},
"additionalProperties": false
},
{
"properties": {
"type": {
2023-06-20 14:41:01 +08:00
"const": "sound"
2023-06-18 14:38:39 +08:00
},
"soundType": {
2023-06-20 14:41:01 +08:00
"title": "modules.sound.soundType",
"description": "Set what type of sound devices should be printed",
2023-06-18 14:38:39 +08:00
"type": "string",
"enum": [
"main",
"active",
"all"
],
"default": "main"
},
"key": {
"$ref": "#/$defs/key"
},
"keyColor": {
"$ref": "#/$defs/keyColor"
},
"format": {
"$ref": "#/$defs/format"
}
},
"additionalProperties": false
},
{
"properties": {
"type": {
2023-06-20 14:41:01 +08:00
"const": "title"
2023-06-18 14:38:39 +08:00
},
"fqdn": {
2023-06-20 14:41:01 +08:00
"title": "modules.title.fqdn",
2023-06-18 14:38:39 +08:00
"type": "boolean",
2023-06-20 14:41:01 +08:00
"description": "Set if the title should use fully qualified domain name",
2023-06-18 14:38:39 +08:00
"default": false
}
},
"additionalProperties": false
},
{
"properties": {
"type": {
2023-06-20 14:41:01 +08:00
"const": "weather"
2023-06-18 14:38:39 +08:00
},
"timeout": {
2023-06-20 14:41:01 +08:00
"title": "modules.weather.timeout",
"description": "Time in milliseconds to wait for the weather server to respond",
2023-06-18 14:38:39 +08:00
"type": "integer",
"minimum": 0,
"default": "disabled (0)"
},
"outputFormat": {
2023-06-20 14:41:01 +08:00
"title": "modules.weather.outputFormat",
"description": "The output weather format to be used (must be URI encoded)",
2023-06-18 14:38:39 +08:00
"type": "string",
"default": "%t+-+%C+(%l)"
},
"key": {
"$ref": "#/$defs/key"
},
"keyColor": {
"$ref": "#/$defs/keyColor"
},
"format": {
"$ref": "#/$defs/format"
}
},
"additionalProperties": false
2023-06-17 22:37:33 +08:00
}
]
}
]
}
}
}
}