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