Skip to content

Commit

Permalink
slider: doc sync
Browse files Browse the repository at this point in the history
  • Loading branch information
rtgiskard committed Jun 9, 2024
1 parent 9251eac commit c2429a4
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
49 changes: 48 additions & 1 deletion man/swaync.5.scd
Original file line number Diff line number Diff line change
Expand Up @@ -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 ++
Expand Down Expand Up @@ -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 ++
Expand Down Expand Up @@ -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: 0 ++
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: 0 ++
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 ++
Expand Down
2 changes: 1 addition & 1 deletion src/configSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@
},
"slider": {
"type": "object",
"description": "Slider to control pulse volume",
"description": "general slider control",
"additionalProperties": false,
"properties": {
"label": {
Expand Down

0 comments on commit c2429a4

Please sign in to comment.