From 7e1d1f03dfa0a3844f9bdf943e34561b279ed224 Mon Sep 17 00:00:00 2001 From: giskard Date: Mon, 10 Jun 2024 04:10:05 +0800 Subject: [PATCH] slider: doc sync --- man/swaync.5.scd | 49 ++++++++++++++++++++++++++++++++++++++++++- src/configSchema.json | 2 +- 2 files changed, 49 insertions(+), 2 deletions(-) diff --git a/man/swaync.5.scd b/man/swaync.5.scd index ada6f9b7..75109a6f 100644 --- a/man/swaync.5.scd +++ b/man/swaync.5.scd @@ -135,7 +135,7 @@ config file to be able to detect config errors type: bool ++ default: true ++ description: Display notification timestamps relative to now e.g. \"26 minutes ago\". ++ - If false, a local iso8601-formatted absolute timestamp is displayed. + If false, a local iso8601-formatted absolute timestamp is displayed. *control-center-height* ++ type: integer ++ @@ -231,6 +231,8 @@ config file to be able to detect config errors optional: true ++ *buttons-grid*++ optional: true ++ + *slider*++ + optional: true ++ #START pulse-audio *volume*++ optional: true ++ @@ -470,6 +472,51 @@ config file to be able to detect config errors description: Wether the toggle button is active as default or not ++ description: A list of actions containing a label and a command ++ description: A grid of buttons that execute shell commands ++ + *slider*++ + type: object ++ + css class: widget-slider ++ + properties: ++ + label: ++ + type: string ++ + optional: true ++ + default: "slider" ++ + description: Text displayed in front of the slider ++ + cmd_setter: ++ + type: string ++ + optional: true ++ + default: "" ++ + description: command to set the value ++ + cmd_getter: ++ + type: string ++ + optional: true ++ + default: "" ++ + description: command to get the actual value ++ + min: ++ + type: integer ++ + optional: true ++ + default: 0 ++ + description: minimum value of the slider range ++ + max: ++ + type: integer ++ + optional: true ++ + default: 100 ++ + description: maximum value of the slider range ++ + min_limit: ++ + type: integer ++ + optional: true ++ + default: 0 ++ + description: limit minimum value of the slider ++ + max_limit: ++ + type: integer ++ + optional: true ++ + default: 100 ++ + description: limit maximum value of the slider ++ + value_scale: ++ + type: integer ++ + optional: true ++ + default: 0 ++ + description: scale small value, slider round digits ++ + description: general slider control ++ #START pulse-audio *volume*++ type: object ++ diff --git a/src/configSchema.json b/src/configSchema.json index 5e28ecc2..931f20fa 100644 --- a/src/configSchema.json +++ b/src/configSchema.json @@ -515,7 +515,7 @@ }, "slider": { "type": "object", - "description": "Slider to control pulse volume", + "description": "general slider control", "additionalProperties": false, "properties": { "label": {