| 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "$id": "https://github.com/ClementTsang/bottom/blob/main/schema/v0.10/bottom.json", |
| 4 | "title": "Schema for bottom's configs (v0.10)", |
| 5 | "description": "https://clementtsang.github.io/bottom/0.10.0/configuration/config-file/", |
| 6 | "type": "object", |
| 7 | "properties": { |
| 8 | "cpu": { |
| 9 | "anyOf": [ |
| 10 | { |
| 11 | "$ref": "#/definitions/CpuConfig" |
| 12 | }, |
| 13 | { |
| 14 | "type": "null" |
| 15 | } |
| 16 | ] |
| 17 | }, |
| 18 | "disk": { |
| 19 | "anyOf": [ |
| 20 | { |
| 21 | "$ref": "#/definitions/DiskConfig" |
| 22 | }, |
| 23 | { |
| 24 | "type": "null" |
| 25 | } |
| 26 | ] |
| 27 | }, |
| 28 | "flags": { |
| 29 | "anyOf": [ |
| 30 | { |
| 31 | "$ref": "#/definitions/FlagConfig" |
| 32 | }, |
| 33 | { |
| 34 | "type": "null" |
| 35 | } |
| 36 | ] |
| 37 | }, |
| 38 | "network": { |
| 39 | "anyOf": [ |
| 40 | { |
| 41 | "$ref": "#/definitions/NetworkConfig" |
| 42 | }, |
| 43 | { |
| 44 | "type": "null" |
| 45 | } |
| 46 | ] |
| 47 | }, |
| 48 | "processes": { |
| 49 | "anyOf": [ |
| 50 | { |
| 51 | "$ref": "#/definitions/ProcessesConfig" |
| 52 | }, |
| 53 | { |
| 54 | "type": "null" |
| 55 | } |
| 56 | ] |
| 57 | }, |
| 58 | "row": { |
| 59 | "type": [ |
| 60 | "array", |
| 61 | "null" |
| 62 | ], |
| 63 | "items": { |
| 64 | "$ref": "#/definitions/row" |
| 65 | } |
| 66 | }, |
| 67 | "styles": { |
| 68 | "anyOf": [ |
| 69 | { |
| 70 | "$ref": "#/definitions/StyleConfig" |
| 71 | }, |
| 72 | { |
| 73 | "type": "null" |
| 74 | } |
| 75 | ] |
| 76 | }, |
| 77 | "temperature": { |
| 78 | "anyOf": [ |
| 79 | { |
| 80 | "$ref": "#/definitions/TempConfig" |
| 81 | }, |
| 82 | { |
| 83 | "type": "null" |
| 84 | } |
| 85 | ] |
| 86 | } |
| 87 | }, |
| 88 | "definitions": { |
| 89 | "BatteryStyle": { |
| 90 | "description": "Styling specific to the battery widget.", |
| 91 | "type": "object", |
| 92 | "properties": { |
| 93 | "high_battery_color": { |
| 94 | "description": "The colour of the battery widget bar when the battery is over 50%.", |
| 95 | "anyOf": [ |
| 96 | { |
| 97 | "$ref": "#/definitions/ColorStr" |
| 98 | }, |
| 99 | { |
| 100 | "type": "null" |
| 101 | } |
| 102 | ] |
| 103 | }, |
| 104 | "low_battery_color": { |
| 105 | "description": "The colour of the battery widget bar when the battery is under 10%.", |
| 106 | "anyOf": [ |
| 107 | { |
| 108 | "$ref": "#/definitions/ColorStr" |
| 109 | }, |
| 110 | { |
| 111 | "type": "null" |
| 112 | } |
| 113 | ] |
| 114 | }, |
| 115 | "medium_battery_color": { |
| 116 | "description": "The colour of the battery widget bar when the battery between 10% to 50%.", |
| 117 | "anyOf": [ |
| 118 | { |
| 119 | "$ref": "#/definitions/ColorStr" |
| 120 | }, |
| 121 | { |
| 122 | "type": "null" |
| 123 | } |
| 124 | ] |
| 125 | } |
| 126 | } |
| 127 | }, |
| 128 | "ColorStr": { |
| 129 | "type": "string" |
| 130 | }, |
| 131 | "CpuConfig": { |
| 132 | "description": "CPU column settings.", |
| 133 | "type": "object", |
| 134 | "properties": { |
| 135 | "default": { |
| 136 | "$ref": "#/definitions/CpuDefault" |
| 137 | } |
| 138 | } |
| 139 | }, |
| 140 | "CpuDefault": { |
| 141 | "description": "The default selection of the CPU widget. If the given selection is invalid, we will fall back to all.", |
| 142 | "type": "string", |
| 143 | "enum": [ |
| 144 | "all", |
| 145 | "average" |
| 146 | ] |
| 147 | }, |
| 148 | "CpuStyle": { |
| 149 | "description": "Styling specific to the CPU widget.", |
| 150 | "type": "object", |
| 151 | "properties": { |
| 152 | "all_entry_color": { |
| 153 | "description": "The colour of the \"All\" CPU label.", |
| 154 | "anyOf": [ |
| 155 | { |
| 156 | "$ref": "#/definitions/ColorStr" |
| 157 | }, |
| 158 | { |
| 159 | "type": "null" |
| 160 | } |
| 161 | ] |
| 162 | }, |
| 163 | "avg_entry_color": { |
| 164 | "description": "The colour of the average CPU label and graph line.", |
| 165 | "anyOf": [ |
| 166 | { |
| 167 | "$ref": "#/definitions/ColorStr" |
| 168 | }, |
| 169 | { |
| 170 | "type": "null" |
| 171 | } |
| 172 | ] |
| 173 | }, |
| 174 | "cpu_core_colors": { |
| 175 | "description": "Colour of each CPU threads' label and graph line. Read in order.", |
| 176 | "type": [ |
| 177 | "array", |
| 178 | "null" |
| 179 | ], |
| 180 | "items": { |
| 181 | "$ref": "#/definitions/ColorStr" |
| 182 | } |
| 183 | } |
| 184 | } |
| 185 | }, |
| 186 | "DiskConfig": { |
| 187 | "description": "Disk configuration.", |
| 188 | "type": "object", |
| 189 | "properties": { |
| 190 | "mount_filter": { |
| 191 | "description": "A filter over the mount names.", |
| 192 | "anyOf": [ |
| 193 | { |
| 194 | "$ref": "#/definitions/IgnoreList" |
| 195 | }, |
| 196 | { |
| 197 | "type": "null" |
| 198 | } |
| 199 | ] |
| 200 | }, |
| 201 | "name_filter": { |
| 202 | "description": "A filter over the disk names.", |
| 203 | "anyOf": [ |
| 204 | { |
| 205 | "$ref": "#/definitions/IgnoreList" |
| 206 | }, |
| 207 | { |
| 208 | "type": "null" |
| 209 | } |
| 210 | ] |
| 211 | } |
| 212 | } |
| 213 | }, |
| 214 | "FinalWidget": { |
| 215 | "description": "Represents a widget.", |
| 216 | "type": "object", |
| 217 | "required": [ |
| 218 | "type" |
| 219 | ], |
| 220 | "properties": { |
| 221 | "default": { |
| 222 | "type": [ |
| 223 | "boolean", |
| 224 | "null" |
| 225 | ] |
| 226 | }, |
| 227 | "ratio": { |
| 228 | "type": [ |
| 229 | "integer", |
| 230 | "null" |
| 231 | ], |
| 232 | "format": "uint32", |
| 233 | "minimum": 0.0 |
| 234 | }, |
| 235 | "type": { |
| 236 | "type": "string" |
| 237 | } |
| 238 | } |
| 239 | }, |
| 240 | "FlagConfig": { |
| 241 | "type": "object", |
| 242 | "properties": { |
| 243 | "autohide_time": { |
| 244 | "type": [ |
| 245 | "boolean", |
| 246 | "null" |
| 247 | ] |
| 248 | }, |
| 249 | "basic": { |
| 250 | "type": [ |
| 251 | "boolean", |
| 252 | "null" |
| 253 | ] |
| 254 | }, |
| 255 | "battery": { |
| 256 | "type": [ |
| 257 | "boolean", |
| 258 | "null" |
| 259 | ] |
| 260 | }, |
| 261 | "case_sensitive": { |
| 262 | "type": [ |
| 263 | "boolean", |
| 264 | "null" |
| 265 | ] |
| 266 | }, |
| 267 | "cpu_left_legend": { |
| 268 | "type": [ |
| 269 | "boolean", |
| 270 | "null" |
| 271 | ] |
| 272 | }, |
| 273 | "current_usage": { |
| 274 | "type": [ |
| 275 | "boolean", |
| 276 | "null" |
| 277 | ] |
| 278 | }, |
| 279 | "default_time_value": { |
| 280 | "anyOf": [ |
| 281 | { |
| 282 | "$ref": "#/definitions/StringOrNum" |
| 283 | }, |
| 284 | { |
| 285 | "type": "null" |
| 286 | } |
| 287 | ] |
| 288 | }, |
| 289 | "default_widget_count": { |
| 290 | "type": [ |
| 291 | "integer", |
| 292 | "null" |
| 293 | ], |
| 294 | "format": "uint64", |
| 295 | "minimum": 0.0 |
| 296 | }, |
| 297 | "default_widget_type": { |
| 298 | "type": [ |
| 299 | "string", |
| 300 | "null" |
| 301 | ] |
| 302 | }, |
| 303 | "disable_advanced_kill": { |
| 304 | "type": [ |
| 305 | "boolean", |
| 306 | "null" |
| 307 | ] |
| 308 | }, |
| 309 | "disable_click": { |
| 310 | "type": [ |
| 311 | "boolean", |
| 312 | "null" |
| 313 | ] |
| 314 | }, |
| 315 | "dot_marker": { |
| 316 | "type": [ |
| 317 | "boolean", |
| 318 | "null" |
| 319 | ] |
| 320 | }, |
| 321 | "enable_cache_memory": { |
| 322 | "type": [ |
| 323 | "boolean", |
| 324 | "null" |
| 325 | ] |
| 326 | }, |
| 327 | "enable_gpu": { |
| 328 | "type": [ |
| 329 | "boolean", |
| 330 | "null" |
| 331 | ] |
| 332 | }, |
| 333 | "expanded": { |
| 334 | "type": [ |
| 335 | "boolean", |
| 336 | "null" |
| 337 | ] |
| 338 | }, |
| 339 | "group_processes": { |
| 340 | "type": [ |
| 341 | "boolean", |
| 342 | "null" |
| 343 | ] |
| 344 | }, |
| 345 | "hide_avg_cpu": { |
| 346 | "type": [ |
| 347 | "boolean", |
| 348 | "null" |
| 349 | ] |
| 350 | }, |
| 351 | "hide_table_gap": { |
| 352 | "type": [ |
| 353 | "boolean", |
| 354 | "null" |
| 355 | ] |
| 356 | }, |
| 357 | "hide_time": { |
| 358 | "type": [ |
| 359 | "boolean", |
| 360 | "null" |
| 361 | ] |
| 362 | }, |
| 363 | "memory_legend": { |
| 364 | "type": [ |
| 365 | "string", |
| 366 | "null" |
| 367 | ] |
| 368 | }, |
| 369 | "network_legend": { |
| 370 | "type": [ |
| 371 | "string", |
| 372 | "null" |
| 373 | ] |
| 374 | }, |
| 375 | "network_use_binary_prefix": { |
| 376 | "type": [ |
| 377 | "boolean", |
| 378 | "null" |
| 379 | ] |
| 380 | }, |
| 381 | "network_use_bytes": { |
| 382 | "type": [ |
| 383 | "boolean", |
| 384 | "null" |
| 385 | ] |
| 386 | }, |
| 387 | "network_use_log": { |
| 388 | "type": [ |
| 389 | "boolean", |
| 390 | "null" |
| 391 | ] |
| 392 | }, |
| 393 | "no_write": { |
| 394 | "type": [ |
| 395 | "boolean", |
| 396 | "null" |
| 397 | ] |
| 398 | }, |
| 399 | "process_command": { |
| 400 | "type": [ |
| 401 | "boolean", |
| 402 | "null" |
| 403 | ] |
| 404 | }, |
| 405 | "process_memory_as_value": { |
| 406 | "type": [ |
| 407 | "boolean", |
| 408 | "null" |
| 409 | ] |
| 410 | }, |
| 411 | "rate": { |
| 412 | "anyOf": [ |
| 413 | { |
| 414 | "$ref": "#/definitions/StringOrNum" |
| 415 | }, |
| 416 | { |
| 417 | "type": "null" |
| 418 | } |
| 419 | ] |
| 420 | }, |
| 421 | "regex": { |
| 422 | "type": [ |
| 423 | "boolean", |
| 424 | "null" |
| 425 | ] |
| 426 | }, |
| 427 | "retention": { |
| 428 | "anyOf": [ |
| 429 | { |
| 430 | "$ref": "#/definitions/StringOrNum" |
| 431 | }, |
| 432 | { |
| 433 | "type": "null" |
| 434 | } |
| 435 | ] |
| 436 | }, |
| 437 | "show_table_scroll_position": { |
| 438 | "type": [ |
| 439 | "boolean", |
| 440 | "null" |
| 441 | ] |
| 442 | }, |
| 443 | "temperature_type": { |
| 444 | "type": [ |
| 445 | "string", |
| 446 | "null" |
| 447 | ] |
| 448 | }, |
| 449 | "time_delta": { |
| 450 | "anyOf": [ |
| 451 | { |
| 452 | "$ref": "#/definitions/StringOrNum" |
| 453 | }, |
| 454 | { |
| 455 | "type": "null" |
| 456 | } |
| 457 | ] |
| 458 | }, |
| 459 | "tree": { |
| 460 | "type": [ |
| 461 | "boolean", |
| 462 | "null" |
| 463 | ] |
| 464 | }, |
| 465 | "unnormalized_cpu": { |
| 466 | "type": [ |
| 467 | "boolean", |
| 468 | "null" |
| 469 | ] |
| 470 | }, |
| 471 | "use_old_network_legend": { |
| 472 | "type": [ |
| 473 | "boolean", |
| 474 | "null" |
| 475 | ] |
| 476 | }, |
| 477 | "whole_word": { |
| 478 | "type": [ |
| 479 | "boolean", |
| 480 | "null" |
| 481 | ] |
| 482 | } |
| 483 | } |
| 484 | }, |
| 485 | "GraphStyle": { |
| 486 | "description": "General styling for graph widgets.", |
| 487 | "type": "object", |
| 488 | "properties": { |
| 489 | "graph_color": { |
| 490 | "description": "The general colour of the parts of the graph.", |
| 491 | "anyOf": [ |
| 492 | { |
| 493 | "$ref": "#/definitions/ColorStr" |
| 494 | }, |
| 495 | { |
| 496 | "type": "null" |
| 497 | } |
| 498 | ] |
| 499 | }, |
| 500 | "legend_text": { |
| 501 | "description": "Text styling for graph's legend text.", |
| 502 | "anyOf": [ |
| 503 | { |
| 504 | "$ref": "#/definitions/TextStyleConfig" |
| 505 | }, |
| 506 | { |
| 507 | "type": "null" |
| 508 | } |
| 509 | ] |
| 510 | } |
| 511 | } |
| 512 | }, |
| 513 | "IgnoreList": { |
| 514 | "type": "object", |
| 515 | "required": [ |
| 516 | "list" |
| 517 | ], |
| 518 | "properties": { |
| 519 | "case_sensitive": { |
| 520 | "default": false, |
| 521 | "type": "boolean" |
| 522 | }, |
| 523 | "is_list_ignored": { |
| 524 | "default": true, |
| 525 | "type": "boolean" |
| 526 | }, |
| 527 | "list": { |
| 528 | "type": "array", |
| 529 | "items": { |
| 530 | "type": "string" |
| 531 | } |
| 532 | }, |
| 533 | "regex": { |
| 534 | "default": false, |
| 535 | "type": "boolean" |
| 536 | }, |
| 537 | "whole_word": { |
| 538 | "default": false, |
| 539 | "type": "boolean" |
| 540 | } |
| 541 | } |
| 542 | }, |
| 543 | "MemoryStyle": { |
| 544 | "description": "Styling specific to the memory widget.", |
| 545 | "type": "object", |
| 546 | "properties": { |
| 547 | "arc_color": { |
| 548 | "description": "The colour of the ARC label and graph line.", |
| 549 | "anyOf": [ |
| 550 | { |
| 551 | "$ref": "#/definitions/ColorStr" |
| 552 | }, |
| 553 | { |
| 554 | "type": "null" |
| 555 | } |
| 556 | ] |
| 557 | }, |
| 558 | "cache_color": { |
| 559 | "description": "The colour of the cache label and graph line. Does not do anything on Windows.", |
| 560 | "anyOf": [ |
| 561 | { |
| 562 | "$ref": "#/definitions/ColorStr" |
| 563 | }, |
| 564 | { |
| 565 | "type": "null" |
| 566 | } |
| 567 | ] |
| 568 | }, |
| 569 | "gpu_colors": { |
| 570 | "description": "Colour of each GPU's memory label and graph line. Read in order.", |
| 571 | "type": [ |
| 572 | "array", |
| 573 | "null" |
| 574 | ], |
| 575 | "items": { |
| 576 | "$ref": "#/definitions/ColorStr" |
| 577 | } |
| 578 | }, |
| 579 | "ram_color": { |
| 580 | "description": "The colour of the RAM label and graph line.", |
| 581 | "anyOf": [ |
| 582 | { |
| 583 | "$ref": "#/definitions/ColorStr" |
| 584 | }, |
| 585 | { |
| 586 | "type": "null" |
| 587 | } |
| 588 | ] |
| 589 | }, |
| 590 | "swap_color": { |
| 591 | "description": "The colour of the swap label and graph line.", |
| 592 | "anyOf": [ |
| 593 | { |
| 594 | "$ref": "#/definitions/ColorStr" |
| 595 | }, |
| 596 | { |
| 597 | "type": "null" |
| 598 | } |
| 599 | ] |
| 600 | } |
| 601 | } |
| 602 | }, |
| 603 | "NetworkConfig": { |
| 604 | "description": "Network configuration.", |
| 605 | "type": "object", |
| 606 | "properties": { |
| 607 | "interface_filter": { |
| 608 | "description": "A filter over the network interface names.", |
| 609 | "anyOf": [ |
| 610 | { |
| 611 | "$ref": "#/definitions/IgnoreList" |
| 612 | }, |
| 613 | { |
| 614 | "type": "null" |
| 615 | } |
| 616 | ] |
| 617 | } |
| 618 | } |
| 619 | }, |
| 620 | "NetworkStyle": { |
| 621 | "description": "Styling specific to the network widget.", |
| 622 | "type": "object", |
| 623 | "properties": { |
| 624 | "rx_color": { |
| 625 | "description": "The colour of the RX (download) label and graph line.", |
| 626 | "anyOf": [ |
| 627 | { |
| 628 | "$ref": "#/definitions/ColorStr" |
| 629 | }, |
| 630 | { |
| 631 | "type": "null" |
| 632 | } |
| 633 | ] |
| 634 | }, |
| 635 | "rx_total_color": { |
| 636 | "description": "he colour of the total RX (download) label in basic mode.", |
| 637 | "anyOf": [ |
| 638 | { |
| 639 | "$ref": "#/definitions/ColorStr" |
| 640 | }, |
| 641 | { |
| 642 | "type": "null" |
| 643 | } |
| 644 | ] |
| 645 | }, |
| 646 | "tx_color": { |
| 647 | "description": "The colour of the TX (upload) label and graph line.", |
| 648 | "anyOf": [ |
| 649 | { |
| 650 | "$ref": "#/definitions/ColorStr" |
| 651 | }, |
| 652 | { |
| 653 | "type": "null" |
| 654 | } |
| 655 | ] |
| 656 | }, |
| 657 | "tx_total_color": { |
| 658 | "description": "The colour of the total TX (upload) label in basic mode.", |
| 659 | "anyOf": [ |
| 660 | { |
| 661 | "$ref": "#/definitions/ColorStr" |
| 662 | }, |
| 663 | { |
| 664 | "type": "null" |
| 665 | } |
| 666 | ] |
| 667 | } |
| 668 | } |
| 669 | }, |
| 670 | "ProcColumn": { |
| 671 | "description": "A column in the process widget.", |
| 672 | "type": "string", |
| 673 | "enum": [ |
| 674 | "PID", |
| 675 | "Count", |
| 676 | "Name", |
| 677 | "Command", |
| 678 | "CPU%", |
| 679 | "Mem", |
| 680 | "Mem%", |
| 681 | "R/s", |
| 682 | "Read", |
| 683 | "Rps", |
| 684 | "W/s", |
| 685 | "Write", |
| 686 | "Wps", |
| 687 | "T.Read", |
| 688 | "TWrite", |
| 689 | "T.Write", |
| 690 | "TRead", |
| 691 | "State", |
| 692 | "User", |
| 693 | "Time", |
| 694 | "GMem", |
| 695 | "GMem%", |
| 696 | "GPU%" |
| 697 | ] |
| 698 | }, |
| 699 | "ProcessesConfig": { |
| 700 | "description": "Process configuration.", |
| 701 | "type": "object", |
| 702 | "properties": { |
| 703 | "columns": { |
| 704 | "description": "A list of process widget columns.", |
| 705 | "type": "array", |
| 706 | "items": { |
| 707 | "$ref": "#/definitions/ProcColumn" |
| 708 | } |
| 709 | } |
| 710 | } |
| 711 | }, |
| 712 | "RowChildren": { |
| 713 | "description": "Represents a child of a Row - either a Col (column) or a FinalWidget.\n\nA Col can also have an optional length and children. We only allow columns to have FinalWidgets as children, lest we get some amount of mutual recursion between Row and Col.", |
| 714 | "anyOf": [ |
| 715 | { |
| 716 | "$ref": "#/definitions/FinalWidget" |
| 717 | }, |
| 718 | { |
| 719 | "type": "object", |
| 720 | "required": [ |
| 721 | "child" |
| 722 | ], |
| 723 | "properties": { |
| 724 | "child": { |
| 725 | "type": "array", |
| 726 | "items": { |
| 727 | "$ref": "#/definitions/FinalWidget" |
| 728 | } |
| 729 | }, |
| 730 | "ratio": { |
| 731 | "type": [ |
| 732 | "integer", |
| 733 | "null" |
| 734 | ], |
| 735 | "format": "uint32", |
| 736 | "minimum": 0.0 |
| 737 | } |
| 738 | } |
| 739 | } |
| 740 | ] |
| 741 | }, |
| 742 | "StringOrNum": { |
| 743 | "anyOf": [ |
| 744 | { |
| 745 | "type": "string" |
| 746 | }, |
| 747 | { |
| 748 | "type": "integer", |
| 749 | "format": "uint64", |
| 750 | "minimum": 0.0 |
| 751 | } |
| 752 | ] |
| 753 | }, |
| 754 | "StyleConfig": { |
| 755 | "description": "Style-related configs.", |
| 756 | "type": "object", |
| 757 | "properties": { |
| 758 | "battery": { |
| 759 | "description": "Styling for the battery widget.", |
| 760 | "anyOf": [ |
| 761 | { |
| 762 | "$ref": "#/definitions/BatteryStyle" |
| 763 | }, |
| 764 | { |
| 765 | "type": "null" |
| 766 | } |
| 767 | ] |
| 768 | }, |
| 769 | "cpu": { |
| 770 | "description": "Styling for the CPU widget.", |
| 771 | "anyOf": [ |
| 772 | { |
| 773 | "$ref": "#/definitions/CpuStyle" |
| 774 | }, |
| 775 | { |
| 776 | "type": "null" |
| 777 | } |
| 778 | ] |
| 779 | }, |
| 780 | "graphs": { |
| 781 | "description": "Styling for graph widgets.", |
| 782 | "anyOf": [ |
| 783 | { |
| 784 | "$ref": "#/definitions/GraphStyle" |
| 785 | }, |
| 786 | { |
| 787 | "type": "null" |
| 788 | } |
| 789 | ] |
| 790 | }, |
| 791 | "memory": { |
| 792 | "description": "Styling for the memory widget.", |
| 793 | "anyOf": [ |
| 794 | { |
| 795 | "$ref": "#/definitions/MemoryStyle" |
| 796 | }, |
| 797 | { |
| 798 | "type": "null" |
| 799 | } |
| 800 | ] |
| 801 | }, |
| 802 | "network": { |
| 803 | "description": "Styling for the network widget.", |
| 804 | "anyOf": [ |
| 805 | { |
| 806 | "$ref": "#/definitions/NetworkStyle" |
| 807 | }, |
| 808 | { |
| 809 | "type": "null" |
| 810 | } |
| 811 | ] |
| 812 | }, |
| 813 | "tables": { |
| 814 | "description": "Styling for table widgets.", |
| 815 | "anyOf": [ |
| 816 | { |
| 817 | "$ref": "#/definitions/TableStyle" |
| 818 | }, |
| 819 | { |
| 820 | "type": "null" |
| 821 | } |
| 822 | ] |
| 823 | }, |
| 824 | "theme": { |
| 825 | "description": "A built-in theme.\n\nIf this is and a custom colour are both set, in the config file, the custom colour scheme will be prioritized first. If a theme is set in the command-line args, however, it will always be prioritized first.", |
| 826 | "type": [ |
| 827 | "string", |
| 828 | "null" |
| 829 | ] |
| 830 | }, |
| 831 | "widgets": { |
| 832 | "description": "Styling for general widgets.", |
| 833 | "anyOf": [ |
| 834 | { |
| 835 | "$ref": "#/definitions/WidgetStyle" |
| 836 | }, |
| 837 | { |
| 838 | "type": "null" |
| 839 | } |
| 840 | ] |
| 841 | } |
| 842 | } |
| 843 | }, |
| 844 | "TableStyle": { |
| 845 | "description": "General styling for table widgets.", |
| 846 | "type": "object", |
| 847 | "properties": { |
| 848 | "headers": { |
| 849 | "description": "Text styling for table headers.", |
| 850 | "anyOf": [ |
| 851 | { |
| 852 | "$ref": "#/definitions/TextStyleConfig" |
| 853 | }, |
| 854 | { |
| 855 | "type": "null" |
| 856 | } |
| 857 | ] |
| 858 | } |
| 859 | } |
| 860 | }, |
| 861 | "TempConfig": { |
| 862 | "description": "Temperature configuration.", |
| 863 | "type": "object", |
| 864 | "properties": { |
| 865 | "sensor_filter": { |
| 866 | "description": "A filter over the sensor names.", |
| 867 | "anyOf": [ |
| 868 | { |
| 869 | "$ref": "#/definitions/IgnoreList" |
| 870 | }, |
| 871 | { |
| 872 | "type": "null" |
| 873 | } |
| 874 | ] |
| 875 | } |
| 876 | } |
| 877 | }, |
| 878 | "TextStyleConfig": { |
| 879 | "description": "A style for text.", |
| 880 | "anyOf": [ |
| 881 | { |
| 882 | "$ref": "#/definitions/ColorStr" |
| 883 | }, |
| 884 | { |
| 885 | "type": "object", |
| 886 | "properties": { |
| 887 | "bg_color": { |
| 888 | "description": "A built-in ANSI colour, RGB hex, or RGB colour code.", |
| 889 | "anyOf": [ |
| 890 | { |
| 891 | "$ref": "#/definitions/ColorStr" |
| 892 | }, |
| 893 | { |
| 894 | "type": "null" |
| 895 | } |
| 896 | ] |
| 897 | }, |
| 898 | "bold": { |
| 899 | "description": "Whether to make this text bolded or not. If not set, will default to built-in defaults.", |
| 900 | "type": [ |
| 901 | "boolean", |
| 902 | "null" |
| 903 | ] |
| 904 | }, |
| 905 | "color": { |
| 906 | "description": "A built-in ANSI colour, RGB hex, or RGB colour code.", |
| 907 | "anyOf": [ |
| 908 | { |
| 909 | "$ref": "#/definitions/ColorStr" |
| 910 | }, |
| 911 | { |
| 912 | "type": "null" |
| 913 | } |
| 914 | ] |
| 915 | }, |
| 916 | "italics": { |
| 917 | "description": "Whether to make this text italicized or not. If not set, will default to built-in defaults.", |
| 918 | "type": [ |
| 919 | "boolean", |
| 920 | "null" |
| 921 | ] |
| 922 | } |
| 923 | } |
| 924 | } |
| 925 | ] |
| 926 | }, |
| 927 | "WidgetStyle": { |
| 928 | "description": "General styling for generic widgets.", |
| 929 | "type": "object", |
| 930 | "properties": { |
| 931 | "border_color": { |
| 932 | "description": "The colour of the widgets' borders.", |
| 933 | "anyOf": [ |
| 934 | { |
| 935 | "$ref": "#/definitions/ColorStr" |
| 936 | }, |
| 937 | { |
| 938 | "type": "null" |
| 939 | } |
| 940 | ] |
| 941 | }, |
| 942 | "disabled_text": { |
| 943 | "description": "Text styling for text when representing something that is disabled.", |
| 944 | "anyOf": [ |
| 945 | { |
| 946 | "$ref": "#/definitions/TextStyleConfig" |
| 947 | }, |
| 948 | { |
| 949 | "type": "null" |
| 950 | } |
| 951 | ] |
| 952 | }, |
| 953 | "selected_border_color": { |
| 954 | "description": "The colour of a widget's borders when the widget is selected.", |
| 955 | "anyOf": [ |
| 956 | { |
| 957 | "$ref": "#/definitions/ColorStr" |
| 958 | }, |
| 959 | { |
| 960 | "type": "null" |
| 961 | } |
| 962 | ] |
| 963 | }, |
| 964 | "selected_text": { |
| 965 | "description": "Text styling for text when representing something that is selected.", |
| 966 | "anyOf": [ |
| 967 | { |
| 968 | "$ref": "#/definitions/TextStyleConfig" |
| 969 | }, |
| 970 | { |
| 971 | "type": "null" |
| 972 | } |
| 973 | ] |
| 974 | }, |
| 975 | "text": { |
| 976 | "description": "Text styling for text in general.", |
| 977 | "anyOf": [ |
| 978 | { |
| 979 | "$ref": "#/definitions/TextStyleConfig" |
| 980 | }, |
| 981 | { |
| 982 | "type": "null" |
| 983 | } |
| 984 | ] |
| 985 | }, |
| 986 | "widget_title": { |
| 987 | "description": "Text styling for a widget's title.", |
| 988 | "anyOf": [ |
| 989 | { |
| 990 | "$ref": "#/definitions/TextStyleConfig" |
| 991 | }, |
| 992 | { |
| 993 | "type": "null" |
| 994 | } |
| 995 | ] |
| 996 | } |
| 997 | } |
| 998 | }, |
| 999 | "row": { |
| 1000 | "description": "Represents a row. This has a length of some sort (optional) and a vector of children.", |
| 1001 | "type": "object", |
| 1002 | "properties": { |
| 1003 | "child": { |
| 1004 | "type": [ |
| 1005 | "array", |
| 1006 | "null" |
| 1007 | ], |
| 1008 | "items": { |
| 1009 | "$ref": "#/definitions/RowChildren" |
| 1010 | } |
| 1011 | }, |
| 1012 | "ratio": { |
| 1013 | "type": [ |
| 1014 | "integer", |
| 1015 | "null" |
| 1016 | ], |
| 1017 | "format": "uint32", |
| 1018 | "minimum": 0.0 |
| 1019 | } |
| 1020 | } |
| 1021 | } |
| 1022 | } |
| 1023 | } |