diff --git a/docs/widgets/(Widget)-Custom.md b/docs/widgets/(Widget)-Custom.md index f65c4e9..2eb589a 100644 --- a/docs/widgets/(Widget)-Custom.md +++ b/docs/widgets/(Widget)-Custom.md @@ -4,6 +4,7 @@ |-----------------|---------|-------------------------------------------------------------------------|-----------------------------------------------------------------------------| | `label` | string | `"{data}"` | The format string for data | | `label_alt` | string | `"{data[city]} {data[region]}, {data[country]}"` | Example of label alt. | +| `label_max_length` | int | `None` | The maximum length of the label. | | `class_name` | string | `"custom-info-widget"` | The CSS class name for the widget. | | `exec_options` | dict | `{'run_cmd': 'curl.exe https://ipinfo.io', 'run_interval': 120000, 'return_format': 'json', 'hide_empty: false'}` | Execution options for custom widget. | | `callbacks` | dict | `{'on_left': 'toggle_label', 'on_middle': 'exec cmd /c ncpa.cpl', 'on_right': 'exec cmd /c start https://ipinfo.io/{data[ip]} '}` | Callbacks for mouse events on the IP info widget. | @@ -48,6 +49,7 @@ nvidia_temp: - **label**: The format string. - **label_alt**: The alternative format string. +- **label_max_length**: The maximum length of the label. Minimum value is 1. Default is `None`. - **class_name**: The CSS class name for the widget. - **exec_options**: A dictionary specifying the execution options. The keys are `run_cmd`, `run_interval`, `return_format`, `hide_empty`. `return_format` can be `json` or `string`. If you run custom function which result empty data, you can set `hide_empty` to `true` to hide the widget. - **callbacks**: A dictionary specifying the callbacks for mouse events. The keys are `on_left`, `on_middle`, and `on_right`, and the values are the names of the callback functions.