Skip to content

Commit

Permalink
docs(schema): update all json schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
LGUG2Z committed Nov 20, 2024
1 parent 0e48370 commit 779c12b
Show file tree
Hide file tree
Showing 2 changed files with 210 additions and 2 deletions.
210 changes: 209 additions & 1 deletion schema.bar.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
}
}
2 changes: 1 addition & 1 deletion schema.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 779c12b

Please sign in to comment.