{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/ClementTsang/bottom/blob/main/schema/nightly/bottom.json",
"title": "Schema for bottom's configs (nightly)",
"description": "https://clementtsang.github.io/bottom/nightly/configuration/config-file",
"type": "object",
"properties": {
"cpu": {
"anyOf": [
{
"$ref": "#/definitions/CpuConfig"
},
{
"type": "null"
}
]
},
"disk": {
"anyOf": [
{
"$ref": "#/definitions/DiskConfig"
},
{
"type": "null"
}
]
},
"flags": {
"anyOf": [
{
"$ref": "#/definitions/FlagConfig"
},
{
"type": "null"
}
]
},
"network": {
"anyOf": [
{
"$ref": "#/definitions/NetworkConfig"
},
{
"type": "null"
}
]
},
"processes": {
"anyOf": [
{
"$ref": "#/definitions/ProcessesConfig"
},
{
"type": "null"
}
]
},
"row": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/row"
}
},
"styles": {
"anyOf": [
{
"$ref": "#/definitions/StyleConfig"
},
{
"type": "null"
}
]
},
"temperature": {
"anyOf": [
{
"$ref": "#/definitions/TempConfig"
},
{
"type": "null"
}
]
}
},
"definitions": {
"BatteryStyle": {
"description": "Styling specific to the battery widget.",
"type": "object",
"properties": {
"high_battery_color": {
"description": "The colour of the battery widget bar when the battery is over 50%.",
"anyOf": [
{
"$ref": "#/definitions/ColorStr"
},
{
"type": "null"
}
]
},
"low_battery_color": {
"description": "The colour of the battery widget bar when the battery is under 10%.",
"anyOf": [
{
"$ref": "#/definitions/ColorStr"
},
{
"type": "null"
}
]
},
"medium_battery_color": {
"description": "The colour of the battery widget bar when the battery between 10% to 50%.",
"anyOf": [
{
"$ref": "#/definitions/ColorStr"
},
{
"type": "null"
}
]
}
}
},
"ColorStr": {
"type": "string"
},
"CpuConfig": {
"description": "CPU column settings.",
"type": "object",
"properties": {
"default": {
"$ref": "#/definitions/CpuDefault"
}
}
},
"CpuDefault": {
"description": "The default selection of the CPU widget. If the given selection is invalid, we will fall back to all.",
"type": "string",
"enum": [
"all",
"average"
]
},
"CpuStyle": {
"description": "Styling specific to the CPU widget.",
"type": "object",
"properties": {
"all_entry_color": {
"description": "The colour of the \"All\" CPU label.",
"anyOf": [
{
"$ref": "#/definitions/ColorStr"
},
{
"type": "null"
}
]
},
"avg_entry_color": {
"description": "The colour of the average CPU label and graph line.",
"anyOf": [
{
"$ref": "#/definitions/ColorStr"
},
{
"type": "null"
}
]
},
"cpu_core_colors": {
"description": "Colour of each CPU threads' label and graph line. Read in order.",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/ColorStr"
}
}
}