diff --git a/CHANGELOG.md b/CHANGELOG.md index e6cfef380..e5d9d16b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ Changes: * `--packages-winget`: control whether `winget` packages count should be detected. Note it's a very slow operation, please enable it with caution. * `--chassis-use-wmi`: control whether `WMI` query should be used to detect chassis type, which detects more information, but slower. This flag only affects `--chassis-format` and `--format json`. * `--battery-use-setup-api`: control whether `SetupAPI` should be used on Windows to detect battery info, which supports multi batteries, but slower. + * `--wm-detect-plugin`: control whether WM plugins should be detected. Note it's implemented with global processes enumeration and can report false results. + * `--de-slow-version-detection`: control DE version should be detected with slow operations. It's usually not necessary and only provided as a backup. Features: * Quirks for MIPS platforms (CPU, Linux) @@ -65,6 +67,7 @@ Logo: * Add EndeavourSmall * Add Xenia * Add MainsailOS +* Fix phyOS # 2.1.0 diff --git a/doc/json_schema.json b/doc/json_schema.json index bed20cbe5..9a9e1d1e9 100644 --- a/doc/json_schema.json +++ b/doc/json_schema.json @@ -652,10 +652,6 @@ "const": "datetime", "description": "Print current date and time" }, - { - "const": "de", - "description": "Print desktop environment name" - }, { "const": "font", "description": "Print system font name" @@ -760,10 +756,6 @@ "const": "wallpaper", "description": "Print image file path of current wallpaper" }, - { - "const": "wm", - "description": "Print window manager name and version" - }, { "const": "wifi", "description": "Print connected Wi-Fi info (SSID, connection and security protocol)" @@ -879,6 +871,18 @@ "description": "Set if WMI query should be used on Windows, which detects more information but slower", "type": "boolean", "default": false + }, + "key": { + "$ref": "#/$defs/key" + }, + "keyColor": { + "$ref": "#/$defs/keyColor" + }, + "keyWidth": { + "$ref": "#/$defs/keyWidth" + }, + "format": { + "$ref": "#/$defs/format" } } }, @@ -1133,6 +1137,32 @@ }, "additionalProperties": false }, + { + "title": "DE", + "properties": { + "type": { + "const": "de", + "description": "Print desktop environment name" + }, + "slowVersionDetection": { + "type": "boolean", + "description": "Set if DE version should be detected with slow operations.\nShould be unnecessary for most cases.", + "default": "false" + }, + "key": { + "$ref": "#/$defs/key" + }, + "keyColor": { + "$ref": "#/$defs/keyColor" + }, + "keyWidth": { + "$ref": "#/$defs/keyWidth" + }, + "format": { + "$ref": "#/$defs/format" + } + } + }, { "title": "GPU", "properties": { @@ -1309,6 +1339,18 @@ "description": "Set if winget package count should be detected.\nNote this is very slow operation. Please make sure `winget list` works before enable this option\nWindows only", "type": "boolean", "default": false + }, + "key": { + "$ref": "#/$defs/key" + }, + "keyColor": { + "$ref": "#/$defs/keyColor" + }, + "keyWidth": { + "$ref": "#/$defs/keyWidth" + }, + "format": { + "$ref": "#/$defs/format" } } }, @@ -1474,6 +1516,32 @@ } }, "additionalProperties": false + }, + { + "title": "WM", + "properties": { + "type": { + "const": "wm", + "description": "Print window manager name and version" + }, + "detectPlugin": { + "title": "Set if window manager plugin should be detected on supported platforms", + "type": "boolean", + "default": false + }, + "key": { + "$ref": "#/$defs/key" + }, + "keyColor": { + "$ref": "#/$defs/keyColor" + }, + "keyWidth": { + "$ref": "#/$defs/keyWidth" + }, + "format": { + "$ref": "#/$defs/format" + } + } } ] } diff --git a/src/data/help.txt b/src/data/help.txt index dd6ff6de7..a1516699d 100644 --- a/src/data/help.txt +++ b/src/data/help.txt @@ -149,6 +149,7 @@ Module specific options: --cpu-temp : Detect and display CPU temperature if supported. Default is false --cpu-freq-ndigits : Set the number of digits to keep after the decimal point when printing CPU frequency. Default is 2 --cpuusage-separate : Display CPU usage per CPU logical core, instead of an average result. Default is false + --de-slow-version-detection : Set if DE version should be detected with slow operations. Default is false --gpu-temp : Detect and display GPU temperature if supported. Default is false --gpu-use-nvml : Use nvml (NVIDIA Management Library) to detect more detailed GPU information (memory usage, CUDA core count, etc). Default is false --gpu-force-vulkan : Force using vulkan to detect GPUs, which support video memory usage detection with `--allow-slow-operations`. Default is false @@ -168,6 +169,7 @@ Module specific options: --weather-location: Set the location to be used. It must be URI encoded (eg a whitespace must be encoded as `+`). --weather-timeout: Time in milliseconds to wait for the weather server to respond. Default is disabled (0) --weather-output-format: The output weather format to be used. It must be URI encoded. + --wm-detect-plugin: Set if window manager plugin should be detected on supported platforms. Default is false --player-name: The name of the player to use for module Media and Player. Linux only --opengl-library : Set the OpenGL context creation library to use. Must be auto, egl, glx or osmesa. Default is auto --command-shell : Set the shell program to execute the command text. Default is cmd for Windows, /bin/sh for *nix