docs(schema): update all json schemas

This commit is contained in:
LGUG2Z
2024-11-19 19:52:33 -08:00
parent 0e48370b73
commit 779c12bc6a
2 changed files with 210 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "KomobarConfig",
"description": "The `komorebi.bar.json` configuration file reference for `v0.1.30`",
"description": "The `komorebi.bar.json` configuration file reference for `v0.1.31`",
"type": "object",
"required": [
"left_widgets",
@@ -47,6 +47,203 @@
}
}
},
"grouping": {
"description": "Visual grouping for widgets",
"oneOf": [
{
"description": "No grouping is applied",
"type": "object",
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"None"
]
}
}
},
{
"description": "Widgets are grouped as a whole",
"type": "object",
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"Bar"
]
},
"rounding": {
"description": "Rounding values for the 4 corners. Can be a single or 4 values.",
"anyOf": [
{
"description": "All 4 corners are the same",
"type": "number",
"format": "float"
},
{
"description": "All 4 corners are custom. Order: NW, NE, SW, SE",
"type": "array",
"items": {
"type": "number",
"format": "float"
},
"maxItems": 4,
"minItems": 4
}
]
},
"style": {
"description": "Styles for the grouping",
"oneOf": [
{
"type": "string",
"enum": [
"Default"
]
},
{
"description": "A black shadow is added under the default group",
"type": "string",
"enum": [
"DefaultWithShadow"
]
}
]
},
"transparency_alpha": {
"description": "Alpha value for the color transparency [[0-255]] (default: 200)",
"type": "integer",
"format": "uint8",
"minimum": 0.0
}
}
},
{
"description": "Widgets are grouped by alignment",
"type": "object",
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"Alignment"
]
},
"rounding": {
"description": "Rounding values for the 4 corners. Can be a single or 4 values.",
"anyOf": [
{
"description": "All 4 corners are the same",
"type": "number",
"format": "float"
},
{
"description": "All 4 corners are custom. Order: NW, NE, SW, SE",
"type": "array",
"items": {
"type": "number",
"format": "float"
},
"maxItems": 4,
"minItems": 4
}
]
},
"style": {
"description": "Styles for the grouping",
"oneOf": [
{
"type": "string",
"enum": [
"Default"
]
},
{
"description": "A black shadow is added under the default group",
"type": "string",
"enum": [
"DefaultWithShadow"
]
}
]
},
"transparency_alpha": {
"description": "Alpha value for the color transparency [[0-255]] (default: 200)",
"type": "integer",
"format": "uint8",
"minimum": 0.0
}
}
},
{
"description": "Widgets are grouped individually",
"type": "object",
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"Widget"
]
},
"rounding": {
"description": "Rounding values for the 4 corners. Can be a single or 4 values.",
"anyOf": [
{
"description": "All 4 corners are the same",
"type": "number",
"format": "float"
},
{
"description": "All 4 corners are custom. Order: NW, NE, SW, SE",
"type": "array",
"items": {
"type": "number",
"format": "float"
},
"maxItems": 4,
"minItems": 4
}
]
},
"style": {
"description": "Styles for the grouping",
"oneOf": [
{
"type": "string",
"enum": [
"Default"
]
},
{
"description": "A black shadow is added under the default group",
"type": "string",
"enum": [
"DefaultWithShadow"
]
}
]
},
"transparency_alpha": {
"description": "Alpha value for the color transparency [[0-255]] (default: 200)",
"type": "integer",
"format": "uint8",
"minimum": 0.0
}
}
}
]
},
"left_widgets": {
"description": "Left side widgets (ordered left-to-right)",
"type": "array",
@@ -1758,6 +1955,17 @@
}
}
]
},
"transparency_alpha": {
"description": "Alpha value for the color transparency [[0-255]] (default: 200)",
"type": "integer",
"format": "uint8",
"minimum": 0.0
},
"widget_spacing": {
"description": "Spacing between widgets (default: 10.0)",
"type": "number",
"format": "float"
}
}
}

View File

@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "StaticConfig",
"description": "The `komorebi.json` static configuration file reference for `v0.1.30`",
"description": "The `komorebi.json` static configuration file reference for `v0.1.31`",
"type": "object",
"properties": {
"animation": {