| 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 (nightly)", |
| 5 | "description": "https://bottom.pages.dev/nightly/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 | "disk_io_graph": { |
| 29 | "anyOf": [ |
| 30 | { |
| 31 | "$ref": "#/$defs/DiskIoGraphConfig" |
| 32 | }, |
| 33 | { |
| 34 | "type": "null" |
| 35 | } |
| 36 | ] |
| 37 | }, |
| 38 | "flags": { |
| 39 | "anyOf": [ |
| 40 | { |
| 41 | "$ref": "#/$defs/GeneralConfig" |
| 42 | }, |
| 43 | { |
| 44 | "type": "null" |
| 45 | } |
| 46 | ] |
| 47 | }, |
| 48 | "memory_graph": { |
| 49 | "anyOf": [ |
| 50 | { |
| 51 | "$ref": "#/$defs/MemoryGraphConfig" |
| 52 | }, |
| 53 | { |
| 54 | "type": "null" |
| 55 | } |
| 56 | ] |
| 57 | }, |
| 58 | "network_graph": { |
| 59 | "anyOf": [ |
| 60 | { |
| 61 | "$ref": "#/$defs/NetworkGraphConfig" |
| 62 | }, |
| 63 | { |
| 64 | "type": "null" |
| 65 | } |
| 66 | ] |
| 67 | }, |
| 68 | "processes": { |
| 69 | "anyOf": [ |
| 70 | { |
| 71 | "$ref": "#/$defs/ProcessesConfig" |
| 72 | }, |
| 73 | { |
| 74 | "type": "null" |
| 75 | } |
| 76 | ] |
| 77 | }, |
| 78 | "row": { |
| 79 | "type": [ |
| 80 | "array", |
| 81 | "null" |
| 82 | ], |
| 83 | "items": { |
| 84 | "$ref": "#/$defs/row" |
| 85 | } |
| 86 | }, |
| 87 | "styles": { |
| 88 | "anyOf": [ |
| 89 | { |
| 90 | "$ref": "#/$defs/StyleConfig" |
| 91 | }, |
| 92 | { |
| 93 | "type": "null" |
| 94 | } |
| 95 | ] |
| 96 | }, |
| 97 | "temperature": { |
| 98 | "anyOf": [ |
| 99 | { |
| 100 | "$ref": "#/$defs/TempConfig" |
| 101 | }, |
| 102 | { |
| 103 | "type": "null" |
| 104 | } |
| 105 | ] |
| 106 | }, |
| 107 | "temperature_graph": { |
| 108 | "anyOf": [ |
| 109 | { |
| 110 | "$ref": "#/$defs/TempGraphConfig" |
| 111 | }, |
| 112 | { |
| 113 | "type": "null" |
| 114 | } |
| 115 | ] |
| 116 | } |
| 117 | }, |
| 118 | "$defs": { |
| 119 | "BatteryStyle": { |
| 120 | "description": "Styling specific to the battery widget.", |
| 121 | "type": "object", |
| 122 | "properties": { |
| 123 | "high_battery_colour": { |
| 124 | "description": "The colour of the battery widget bar when the battery is over 50%.", |
| 125 | "anyOf": [ |
| 126 | { |
| 127 | "$ref": "#/$defs/ColourStr" |
| 128 | }, |
| 129 | { |
| 130 | "type": "null" |
| 131 | } |
| 132 | ] |
| 133 | }, |
| 134 | "low_battery_colour": { |
| 135 | "description": "The colour of the battery widget bar when the battery is under 10%.", |
| 136 | "anyOf": [ |
| 137 | { |
| 138 | "$ref": "#/$defs/ColourStr" |
| 139 | }, |
| 140 | { |
| 141 | "type": "null" |
| 142 | } |
| 143 | ] |
| 144 | }, |
| 145 | "medium_battery_colour": { |
| 146 | "description": "The colour of the battery widget bar when the battery between 10% to\n50%.", |
| 147 | "anyOf": [ |
| 148 | { |
| 149 | "$ref": "#/$defs/ColourStr" |
| 150 | }, |
| 151 | { |
| 152 | "type": "null" |
| 153 | } |
| 154 | ] |
| 155 | } |
| 156 | } |
| 157 | }, |
| 158 | "ColourStr": { |
| 159 | "type": "string" |
| 160 | }, |
| 161 | "CpuConfig": { |
| 162 | "description": "CPU column settings.", |
| 163 | "type": "object", |
| 164 | "properties": { |
| 165 | "basic_average_cpu_row": { |
| 166 | "description": "Whether to give the average CPU entry a dedicated row in basic mode.", |
| 167 | "type": [ |
| 168 | "boolean", |
| 169 | "null" |
| 170 | ] |
| 171 | }, |
| 172 | "default": { |
| 173 | "description": "The default selected entry of the CPU widget.", |
| 174 | "$ref": "#/$defs/CpuDefault" |
| 175 | }, |
| 176 | "hide_avg_cpu": { |
| 177 | "description": "Whether to hide the average CPU entry.", |
| 178 | "type": [ |
| 179 | "boolean", |
| 180 | "null" |
| 181 | ] |
| 182 | }, |
| 183 | "left_legend": { |
| 184 | "description": "Whether to put the CPU chart legend on the left side.", |
| 185 | "type": [ |
| 186 | "boolean", |
| 187 | "null" |
| 188 | ] |
| 189 | }, |
| 190 | "show_decimal": { |
| 191 | "description": "Whether to show a decimal place for CPU usage values.", |
| 192 | "type": [ |
| 193 | "boolean", |
| 194 | "null" |
| 195 | ] |
| 196 | } |
| 197 | } |
| 198 | }, |
| 199 | "CpuDefault": { |
| 200 | "description": "The default selected entry of the CPU widget.", |
| 201 | "type": "string", |
| 202 | "enum": [ |
| 203 | "all", |
| 204 | "average" |
| 205 | ] |
| 206 | }, |
| 207 | "CpuStyle": { |
| 208 | "description": "Styling specific to the CPU widget.", |
| 209 | "type": "object", |
| 210 | "properties": { |
| 211 | "all_entry_colour": { |
| 212 | "description": "The colour of the \"All\" CPU label.", |
| 213 | "anyOf": [ |
| 214 | { |
| 215 | "$ref": "#/$defs/ColourStr" |
| 216 | }, |
| 217 | { |
| 218 | "type": "null" |
| 219 | } |
| 220 | ] |
| 221 | }, |
| 222 | "avg_entry_colour": { |
| 223 | "description": "The colour of the average CPU label and graph line.", |
| 224 | "anyOf": [ |
| 225 | { |
| 226 | "$ref": "#/$defs/ColourStr" |
| 227 | }, |
| 228 | { |
| 229 | "type": "null" |
| 230 | } |
| 231 | ] |
| 232 | }, |
| 233 | "cpu_core_colours": { |
| 234 | "description": "Colour of each CPU threads' label and graph line. Read in order.", |
| 235 | "type": [ |
| 236 | "array", |
| 237 | "null" |
| 238 | ], |
| 239 | "items": { |
| 240 | "$ref": "#/$defs/ColourStr" |
| 241 | } |
| 242 | } |
| 243 | } |
| 244 | }, |
| 245 | "DiskConfig": { |
| 246 | "description": "Disk configuration.", |
| 247 | "type": "object", |
| 248 | "properties": { |
| 249 | "columns": { |
| 250 | "description": "A list of disk widget columns.", |
| 251 | "type": [ |
| 252 | "array", |
| 253 | "null" |
| 254 | ], |
| 255 | "items": { |
| 256 | "$ref": "#/$defs/DiskWidgetColumn" |
| 257 | } |
| 258 | }, |
| 259 | "default_sort": { |
| 260 | "description": "The default sort column.", |
| 261 | "anyOf": [ |
| 262 | { |
| 263 | "$ref": "#/$defs/DiskWidgetColumn" |
| 264 | }, |
| 265 | { |
| 266 | "type": "null" |
| 267 | } |
| 268 | ] |
| 269 | }, |
| 270 | "include_unmounted": { |
| 271 | "description": "Whether to include block devices that aren't currently mounted (currently Linux only). Defaults to false.", |
| 272 | "type": [ |
| 273 | "boolean", |
| 274 | "null" |
| 275 | ] |
| 276 | }, |
| 277 | "mount_filter": { |
| 278 | "description": "A filter over the mount names.", |
| 279 | "anyOf": [ |
| 280 | { |
| 281 | "$ref": "#/$defs/IgnoreList" |
| 282 | }, |
| 283 | { |
| 284 | "type": "null" |
| 285 | } |
| 286 | ] |
| 287 | }, |
| 288 | "name_filter": { |
| 289 | "description": "A filter over the disk names.", |
| 290 | "anyOf": [ |
| 291 | { |
| 292 | "$ref": "#/$defs/IgnoreList" |
| 293 | }, |
| 294 | { |
| 295 | "type": "null" |
| 296 | } |
| 297 | ] |
| 298 | }, |
| 299 | "sort_order": { |
| 300 | "description": "The default sort order. Defaults to ascending.", |
| 301 | "$ref": "#/$defs/SortOrder" |
| 302 | } |
| 303 | } |
| 304 | }, |
| 305 | "DiskGraphLegend": { |
| 306 | "description": "Whether the disk graph legend labels use device names or mount points.", |
| 307 | "oneOf": [ |
| 308 | { |
| 309 | "description": "Label entries by kernel device name (e.g. `sda`, `nvme0n1`).", |
| 310 | "type": "string", |
| 311 | "const": "disk" |
| 312 | }, |
| 313 | { |
| 314 | "description": "Label entries by mount point (e.g. `/`, `/home`).", |
| 315 | "type": "string", |
| 316 | "const": "mount" |
| 317 | } |
| 318 | ] |
| 319 | }, |
| 320 | "DiskIoGraphConfig": { |
| 321 | "description": "Disk I/O graph configuration.", |
| 322 | "type": "object", |
| 323 | "properties": { |
| 324 | "include_unmounted": { |
| 325 | "description": "Whether to include block devices that aren't currently mounted (currently Linux only). Defaults to false.", |
| 326 | "type": [ |
| 327 | "boolean", |
| 328 | "null" |
| 329 | ] |
| 330 | }, |
| 331 | "legend": { |
| 332 | "description": "Whether to label legend entries by device name or mount point. Defaults to disk name.", |
| 333 | "anyOf": [ |
| 334 | { |
| 335 | "$ref": "#/$defs/DiskGraphLegend" |
| 336 | }, |
| 337 | { |
| 338 | "type": "null" |
| 339 | } |
| 340 | ] |
| 341 | }, |
| 342 | "legend_position": { |
| 343 | "description": "Where to position the legend within the widget.", |
| 344 | "type": [ |
| 345 | "string", |
| 346 | "null" |
| 347 | ] |
| 348 | }, |
| 349 | "name_filter": { |
| 350 | "description": "An optional list of device names to include or exclude.", |
| 351 | "anyOf": [ |
| 352 | { |
| 353 | "$ref": "#/$defs/IgnoreList" |
| 354 | }, |
| 355 | { |
| 356 | "type": "null" |
| 357 | } |
| 358 | ] |
| 359 | }, |
| 360 | "show_read": { |
| 361 | "description": "Whether to show the read rate line. Defaults to true.", |
| 362 | "type": [ |
| 363 | "boolean", |
| 364 | "null" |
| 365 | ] |
| 366 | }, |
| 367 | "show_write": { |
| 368 | "description": "Whether to show the write rate line. Defaults to true.", |
| 369 | "type": [ |
| 370 | "boolean", |
| 371 | "null" |
| 372 | ] |
| 373 | }, |
| 374 | "use_log": { |
| 375 | "description": "Whether to use a logarithmic scale on the y-axis. Defaults to false.", |
| 376 | "type": [ |
| 377 | "boolean", |
| 378 | "null" |
| 379 | ] |
| 380 | } |
| 381 | } |
| 382 | }, |
| 383 | "DiskIoGraphStyle": { |
| 384 | "description": "Styling specific to the disk I/O graph widget.", |
| 385 | "type": "object", |
| 386 | "properties": { |
| 387 | "read_colours": { |
| 388 | "description": "Colour of each disk's read rate graph line. Read in order.", |
| 389 | "type": [ |
| 390 | "array", |
| 391 | "null" |
| 392 | ], |
| 393 | "items": { |
| 394 | "$ref": "#/$defs/ColourStr" |
| 395 | } |
| 396 | }, |
| 397 | "write_colours": { |
| 398 | "description": "Colour of each disk's write rate graph line. Read in order.", |
| 399 | "type": [ |
| 400 | "array", |
| 401 | "null" |
| 402 | ], |
| 403 | "items": { |
| 404 | "$ref": "#/$defs/ColourStr" |
| 405 | } |
| 406 | } |
| 407 | } |
| 408 | }, |
| 409 | "DiskWidgetColumn": { |
| 410 | "type": "string", |
| 411 | "enum": [ |
| 412 | "Disk", |
| 413 | "Free", |
| 414 | "Free%", |
| 415 | "Mount", |
| 416 | "R/s", |
| 417 | "Read", |
| 418 | "Rps", |
| 419 | "Total", |
| 420 | "Used", |
| 421 | "Used%", |
| 422 | "W/s", |
| 423 | "Wps", |
| 424 | "Write", |
| 425 | "disk", |
| 426 | "free", |
| 427 | "free%", |
| 428 | "mount", |
| 429 | "r/s", |
| 430 | "read", |
| 431 | "rps", |
| 432 | "total", |
| 433 | "used", |
| 434 | "used%", |
| 435 | "w/s", |
| 436 | "wps", |
| 437 | "write" |
| 438 | ] |
| 439 | }, |
| 440 | "FinalWidget": { |
| 441 | "description": "Represents a widget.", |
| 442 | "type": "object", |
| 443 | "properties": { |
| 444 | "default": { |
| 445 | "type": [ |
| 446 | "boolean", |
| 447 | "null" |
| 448 | ] |
| 449 | }, |
| 450 | "ratio": { |
| 451 | "type": [ |
| 452 | "integer", |
| 453 | "null" |
| 454 | ], |
| 455 | "format": "uint16", |
| 456 | "maximum": 65535, |
| 457 | "minimum": 0 |
| 458 | }, |
| 459 | "type": { |
| 460 | "type": "string" |
| 461 | } |
| 462 | }, |
| 463 | "required": [ |
| 464 | "type" |
| 465 | ] |
| 466 | }, |
| 467 | "GeneralConfig": { |
| 468 | "type": "object", |
| 469 | "properties": { |
| 470 | "autohide_time": { |
| 471 | "type": [ |
| 472 | "boolean", |
| 473 | "null" |
| 474 | ] |
| 475 | }, |
| 476 | "average_cpu_row": { |
| 477 | "type": [ |
| 478 | "boolean", |
| 479 | "null" |
| 480 | ] |
| 481 | }, |
| 482 | "basic": { |
| 483 | "type": [ |
| 484 | "boolean", |
| 485 | "null" |
| 486 | ] |
| 487 | }, |
| 488 | "battery": { |
| 489 | "type": [ |
| 490 | "boolean", |
| 491 | "null" |
| 492 | ] |
| 493 | }, |
| 494 | "case_sensitive": { |
| 495 | "type": [ |
| 496 | "boolean", |
| 497 | "null" |
| 498 | ] |
| 499 | }, |
| 500 | "cpu_left_legend": { |
| 501 | "type": [ |
| 502 | "boolean", |
| 503 | "null" |
| 504 | ] |
| 505 | }, |
| 506 | "current_usage": { |
| 507 | "type": [ |
| 508 | "boolean", |
| 509 | "null" |
| 510 | ] |
| 511 | }, |
| 512 | "default_time_value": { |
| 513 | "anyOf": [ |
| 514 | { |
| 515 | "$ref": "#/$defs/StringOrNum" |
| 516 | }, |
| 517 | { |
| 518 | "type": "null" |
| 519 | } |
| 520 | ] |
| 521 | }, |
| 522 | "default_widget_count": { |
| 523 | "type": [ |
| 524 | "integer", |
| 525 | "null" |
| 526 | ], |
| 527 | "format": "uint64", |
| 528 | "minimum": 0 |
| 529 | }, |
| 530 | "default_widget_type": { |
| 531 | "type": [ |
| 532 | "string", |
| 533 | "null" |
| 534 | ] |
| 535 | }, |
| 536 | "disable_advanced_kill": { |
| 537 | "type": [ |
| 538 | "boolean", |
| 539 | "null" |
| 540 | ] |
| 541 | }, |
| 542 | "disable_click": { |
| 543 | "type": [ |
| 544 | "boolean", |
| 545 | "null" |
| 546 | ] |
| 547 | }, |
| 548 | "disable_gpu": { |
| 549 | "type": [ |
| 550 | "boolean", |
| 551 | "null" |
| 552 | ] |
| 553 | }, |
| 554 | "disable_keys": { |
| 555 | "type": [ |
| 556 | "boolean", |
| 557 | "null" |
| 558 | ] |
| 559 | }, |
| 560 | "dot_marker": { |
| 561 | "type": [ |
| 562 | "boolean", |
| 563 | "null" |
| 564 | ] |
| 565 | }, |
| 566 | "enable_cache_memory": { |
| 567 | "type": [ |
| 568 | "boolean", |
| 569 | "null" |
| 570 | ] |
| 571 | }, |
| 572 | "expanded": { |
| 573 | "type": [ |
| 574 | "boolean", |
| 575 | "null" |
| 576 | ] |
| 577 | }, |
| 578 | "free_arc": { |
| 579 | "type": [ |
| 580 | "boolean", |
| 581 | "null" |
| 582 | ] |
| 583 | }, |
| 584 | "group_processes": { |
| 585 | "type": [ |
| 586 | "boolean", |
| 587 | "null" |
| 588 | ] |
| 589 | }, |
| 590 | "hide_avg_cpu": { |
| 591 | "type": [ |
| 592 | "boolean", |
| 593 | "null" |
| 594 | ] |
| 595 | }, |
| 596 | "hide_k_threads": { |
| 597 | "type": [ |
| 598 | "boolean", |
| 599 | "null" |
| 600 | ] |
| 601 | }, |
| 602 | "hide_time": { |
| 603 | "type": [ |
| 604 | "boolean", |
| 605 | "null" |
| 606 | ] |
| 607 | }, |
| 608 | "memory_legend": { |
| 609 | "type": [ |
| 610 | "string", |
| 611 | "null" |
| 612 | ] |
| 613 | }, |
| 614 | "network_legend": { |
| 615 | "type": [ |
| 616 | "string", |
| 617 | "null" |
| 618 | ] |
| 619 | }, |
| 620 | "network_use_binary_prefix": { |
| 621 | "type": [ |
| 622 | "boolean", |
| 623 | "null" |
| 624 | ] |
| 625 | }, |
| 626 | "network_use_bytes": { |
| 627 | "type": [ |
| 628 | "boolean", |
| 629 | "null" |
| 630 | ] |
| 631 | }, |
| 632 | "network_use_log": { |
| 633 | "type": [ |
| 634 | "boolean", |
| 635 | "null" |
| 636 | ] |
| 637 | }, |
| 638 | "no_write": { |
| 639 | "type": [ |
| 640 | "boolean", |
| 641 | "null" |
| 642 | ] |
| 643 | }, |
| 644 | "process_command": { |
| 645 | "type": [ |
| 646 | "boolean", |
| 647 | "null" |
| 648 | ] |
| 649 | }, |
| 650 | "process_memory_as_value": { |
| 651 | "type": [ |
| 652 | "boolean", |
| 653 | "null" |
| 654 | ] |
| 655 | }, |
| 656 | "rate": { |
| 657 | "anyOf": [ |
| 658 | { |
| 659 | "$ref": "#/$defs/StringOrNum" |
| 660 | }, |
| 661 | { |
| 662 | "type": "null" |
| 663 | } |
| 664 | ] |
| 665 | }, |
| 666 | "read_only": { |
| 667 | "type": [ |
| 668 | "boolean", |
| 669 | "null" |
| 670 | ] |
| 671 | }, |
| 672 | "regex": { |
| 673 | "type": [ |
| 674 | "boolean", |
| 675 | "null" |
| 676 | ] |
| 677 | }, |
| 678 | "retention": { |
| 679 | "anyOf": [ |
| 680 | { |
| 681 | "$ref": "#/$defs/StringOrNum" |
| 682 | }, |
| 683 | { |
| 684 | "type": "null" |
| 685 | } |
| 686 | ] |
| 687 | }, |
| 688 | "show_table_scroll_bar": { |
| 689 | "type": [ |
| 690 | "boolean", |
| 691 | "null" |
| 692 | ] |
| 693 | }, |
| 694 | "show_table_scroll_position": { |
| 695 | "type": [ |
| 696 | "boolean", |
| 697 | "null" |
| 698 | ] |
| 699 | }, |
| 700 | "table_gap": { |
| 701 | "$ref": "#/$defs/TableGap", |
| 702 | "default": "space" |
| 703 | }, |
| 704 | "temperature_type": { |
| 705 | "type": [ |
| 706 | "string", |
| 707 | "null" |
| 708 | ] |
| 709 | }, |
| 710 | "time_delta": { |
| 711 | "anyOf": [ |
| 712 | { |
| 713 | "$ref": "#/$defs/StringOrNum" |
| 714 | }, |
| 715 | { |
| 716 | "type": "null" |
| 717 | } |
| 718 | ] |
| 719 | }, |
| 720 | "tree": { |
| 721 | "type": [ |
| 722 | "boolean", |
| 723 | "null" |
| 724 | ] |
| 725 | }, |
| 726 | "tree_collapse": { |
| 727 | "type": [ |
| 728 | "boolean", |
| 729 | "null" |
| 730 | ] |
| 731 | }, |
| 732 | "unnormalized_cpu": { |
| 733 | "type": [ |
| 734 | "boolean", |
| 735 | "null" |
| 736 | ] |
| 737 | }, |
| 738 | "use_old_network_legend": { |
| 739 | "type": [ |
| 740 | "boolean", |
| 741 | "null" |
| 742 | ] |
| 743 | }, |
| 744 | "whole_word": { |
| 745 | "type": [ |
| 746 | "boolean", |
| 747 | "null" |
| 748 | ] |
| 749 | } |
| 750 | } |
| 751 | }, |
| 752 | "GraphStyle": { |
| 753 | "description": "General styling for graph widgets.", |
| 754 | "type": "object", |
| 755 | "properties": { |
| 756 | "graph_colour": { |
| 757 | "description": "The general colour of the parts of the graph.", |
| 758 | "anyOf": [ |
| 759 | { |
| 760 | "$ref": "#/$defs/ColourStr" |
| 761 | }, |
| 762 | { |
| 763 | "type": "null" |
| 764 | } |
| 765 | ] |
| 766 | }, |
| 767 | "legend_text": { |
| 768 | "description": "Text styling for graph's legend text.", |
| 769 | "anyOf": [ |
| 770 | { |
| 771 | "$ref": "#/$defs/TextStyleConfig" |
| 772 | }, |
| 773 | { |
| 774 | "type": "null" |
| 775 | } |
| 776 | ] |
| 777 | } |
| 778 | } |
| 779 | }, |
| 780 | "IgnoreList": { |
| 781 | "type": "object", |
| 782 | "properties": { |
| 783 | "case_sensitive": { |
| 784 | "type": "boolean", |
| 785 | "default": false |
| 786 | }, |
| 787 | "is_list_ignored": { |
| 788 | "type": "boolean", |
| 789 | "default": true |
| 790 | }, |
| 791 | "list": { |
| 792 | "type": "array", |
| 793 | "items": { |
| 794 | "type": "string" |
| 795 | } |
| 796 | }, |
| 797 | "regex": { |
| 798 | "type": "boolean", |
| 799 | "default": false |
| 800 | }, |
| 801 | "whole_word": { |
| 802 | "type": "boolean", |
| 803 | "default": false |
| 804 | } |
| 805 | }, |
| 806 | "required": [ |
| 807 | "list" |
| 808 | ] |
| 809 | }, |
| 810 | "MemoryGraphConfig": { |
| 811 | "description": "Memory-related configuration file options.", |
| 812 | "type": "object", |
| 813 | "properties": { |
| 814 | "cache_memory": { |
| 815 | "description": "Whether to collect and display cache and buffer memory. Not available on Windows.", |
| 816 | "type": [ |
| 817 | "boolean", |
| 818 | "null" |
| 819 | ] |
| 820 | }, |
| 821 | "free_arc": { |
| 822 | "description": "Whether to subtract ARC that can be freed from memory usage.", |
| 823 | "type": [ |
| 824 | "boolean", |
| 825 | "null" |
| 826 | ] |
| 827 | }, |
| 828 | "legend_position": { |
| 829 | "description": "Where to place the legend for the memory chart widget.", |
| 830 | "type": [ |
| 831 | "string", |
| 832 | "null" |
| 833 | ] |
| 834 | }, |
| 835 | "short_gpu_names": { |
| 836 | "description": "Whether to use short GPU names in the memory widget.", |
| 837 | "type": [ |
| 838 | "boolean", |
| 839 | "null" |
| 840 | ] |
| 841 | } |
| 842 | } |
| 843 | }, |
| 844 | "MemoryStyle": { |
| 845 | "description": "Styling specific to the memory widget.", |
| 846 | "type": "object", |
| 847 | "properties": { |
| 848 | "arc_colour": { |
| 849 | "description": "The colour of the ARC label and graph line.", |
| 850 | "anyOf": [ |
| 851 | { |
| 852 | "$ref": "#/$defs/ColourStr" |
| 853 | }, |
| 854 | { |
| 855 | "type": "null" |
| 856 | } |
| 857 | ] |
| 858 | }, |
| 859 | "cache_colour": { |
| 860 | "description": "The colour of the cache label and graph line. Does not do anything on\nWindows.", |
| 861 | "anyOf": [ |
| 862 | { |
| 863 | "$ref": "#/$defs/ColourStr" |
| 864 | }, |
| 865 | { |
| 866 | "type": "null" |
| 867 | } |
| 868 | ] |
| 869 | }, |
| 870 | "gpu_colours": { |
| 871 | "description": "Colour of each GPU's memory label and graph line. Read in order.", |
| 872 | "type": [ |
| 873 | "array", |
| 874 | "null" |
| 875 | ], |
| 876 | "items": { |
| 877 | "$ref": "#/$defs/ColourStr" |
| 878 | } |
| 879 | }, |
| 880 | "ram_colour": { |
| 881 | "description": "The colour of the RAM label and graph line.", |
| 882 | "anyOf": [ |
| 883 | { |
| 884 | "$ref": "#/$defs/ColourStr" |
| 885 | }, |
| 886 | { |
| 887 | "type": "null" |
| 888 | } |
| 889 | ] |
| 890 | }, |
| 891 | "swap_colour": { |
| 892 | "description": "The colour of the swap label and graph line.", |
| 893 | "anyOf": [ |
| 894 | { |
| 895 | "$ref": "#/$defs/ColourStr" |
| 896 | }, |
| 897 | { |
| 898 | "type": "null" |
| 899 | } |
| 900 | ] |
| 901 | } |
| 902 | } |
| 903 | }, |
| 904 | "NetworkGraphConfig": { |
| 905 | "description": "Network configuration.", |
| 906 | "type": "object", |
| 907 | "properties": { |
| 908 | "interface_filter": { |
| 909 | "description": "A filter over the network interface names.", |
| 910 | "anyOf": [ |
| 911 | { |
| 912 | "$ref": "#/$defs/IgnoreList" |
| 913 | }, |
| 914 | { |
| 915 | "type": "null" |
| 916 | } |
| 917 | ] |
| 918 | }, |
| 919 | "legend_position": { |
| 920 | "description": "Where to place the legend for the network chart widget.", |
| 921 | "type": [ |
| 922 | "string", |
| 923 | "null" |
| 924 | ] |
| 925 | }, |
| 926 | "show_packets": { |
| 927 | "description": "Displays packet rate and average packet size info.", |
| 928 | "type": [ |
| 929 | "boolean", |
| 930 | "null" |
| 931 | ] |
| 932 | }, |
| 933 | "start_zeroed": { |
| 934 | "description": "Zeroes out the total network usage (\"All\") counters so it shows the total usage\nsince the app is started, rather than the total usage since boot.", |
| 935 | "type": [ |
| 936 | "boolean", |
| 937 | "null" |
| 938 | ] |
| 939 | }, |
| 940 | "use_binary_prefix": { |
| 941 | "description": "Displays the network widget with a binary prefix (e.g. kibibits) rather than a decimal\nprefix (e.g. kilobits). Defaults to decimal prefixes.", |
| 942 | "type": [ |
| 943 | "boolean", |
| 944 | "null" |
| 945 | ] |
| 946 | }, |
| 947 | "use_bytes": { |
| 948 | "description": "Displays the network widget using bytes. Defaults to bits.", |
| 949 | "type": [ |
| 950 | "boolean", |
| 951 | "null" |
| 952 | ] |
| 953 | }, |
| 954 | "use_log": { |
| 955 | "description": "Displays the network widget with a log scale. Defaults to a non-log scale.", |
| 956 | "type": [ |
| 957 | "boolean", |
| 958 | "null" |
| 959 | ] |
| 960 | } |
| 961 | } |
| 962 | }, |
| 963 | "NetworkStyle": { |
| 964 | "description": "Styling specific to the network widget.", |
| 965 | "type": "object", |
| 966 | "properties": { |
| 967 | "rx_colour": { |
| 968 | "description": "The colour of the RX (download) label and graph line.", |
| 969 | "anyOf": [ |
| 970 | { |
| 971 | "$ref": "#/$defs/ColourStr" |
| 972 | }, |
| 973 | { |
| 974 | "type": "null" |
| 975 | } |
| 976 | ] |
| 977 | }, |
| 978 | "rx_total_colour": { |
| 979 | "description": "The colour of the total RX (download) label in basic mode.", |
| 980 | "anyOf": [ |
| 981 | { |
| 982 | "$ref": "#/$defs/ColourStr" |
| 983 | }, |
| 984 | { |
| 985 | "type": "null" |
| 986 | } |
| 987 | ] |
| 988 | }, |
| 989 | "tx_colour": { |
| 990 | "description": "The colour of the TX (upload) label and graph line.", |
| 991 | "anyOf": [ |
| 992 | { |
| 993 | "$ref": "#/$defs/ColourStr" |
| 994 | }, |
| 995 | { |
| 996 | "type": "null" |
| 997 | } |
| 998 | ] |
| 999 | }, |
| 1000 | "tx_total_colour": { |
| 1001 | "description": "The colour of the total TX (upload) label in basic mode.", |
| 1002 | "anyOf": [ |
| 1003 | { |
| 1004 | "$ref": "#/$defs/ColourStr" |
| 1005 | }, |
| 1006 | { |
| 1007 | "type": "null" |
| 1008 | } |
| 1009 | ] |
| 1010 | } |
| 1011 | } |
| 1012 | }, |
| 1013 | "ProcColumn": { |
| 1014 | "description": "A column in the process widget.", |
| 1015 | "type": "string", |
| 1016 | "enum": [ |
| 1017 | "CPU%", |
| 1018 | "Command", |
| 1019 | "Count", |
| 1020 | "GMem", |
| 1021 | "GMem%", |
| 1022 | "GPU%", |
| 1023 | "Mem", |
| 1024 | "Mem%", |
| 1025 | "Memory", |
| 1026 | "Memory%", |
| 1027 | "Name", |
| 1028 | "Nice", |
| 1029 | "PID", |
| 1030 | "Priority", |
| 1031 | "R/s", |
| 1032 | "Read", |
| 1033 | "Rps", |
| 1034 | "State", |
| 1035 | "T.Read", |
| 1036 | "T.Write", |
| 1037 | "TRead", |
| 1038 | "TWrite", |
| 1039 | "Time", |
| 1040 | "Total Read", |
| 1041 | "Total Write", |
| 1042 | "User", |
| 1043 | "Virt", |
| 1044 | "VirtMem", |
| 1045 | "Virtual", |
| 1046 | "Virtual Memory", |
| 1047 | "W/s", |
| 1048 | "Wps", |
| 1049 | "Write", |
| 1050 | "command", |
| 1051 | "count", |
| 1052 | "cpu%", |
| 1053 | "gmem", |
| 1054 | "gmem%", |
| 1055 | "gpu%", |
| 1056 | "mem", |
| 1057 | "mem%", |
| 1058 | "memory", |
| 1059 | "memory%", |
| 1060 | "name", |
| 1061 | "nice", |
| 1062 | "pid", |
| 1063 | "priority", |
| 1064 | "r/s", |
| 1065 | "read", |
| 1066 | "rps", |
| 1067 | "state", |
| 1068 | "t.read", |
| 1069 | "t.write", |
| 1070 | "time", |
| 1071 | "total read", |
| 1072 | "total write", |
| 1073 | "tread", |
| 1074 | "twrite", |
| 1075 | "user", |
| 1076 | "virt", |
| 1077 | "virtmem", |
| 1078 | "virtual", |
| 1079 | "virtual memory", |
| 1080 | "w/s", |
| 1081 | "wps", |
| 1082 | "write" |
| 1083 | ] |
| 1084 | }, |
| 1085 | "ProcessesConfig": { |
| 1086 | "description": "Process configuration fields.", |
| 1087 | "type": "object", |
| 1088 | "properties": { |
| 1089 | "case_sensitive": { |
| 1090 | "description": "Enables case sensitivity by default when searching.", |
| 1091 | "type": [ |
| 1092 | "boolean", |
| 1093 | "null" |
| 1094 | ] |
| 1095 | }, |
| 1096 | "columns": { |
| 1097 | "description": "A list of process widget columns.", |
| 1098 | "type": "array", |
| 1099 | "items": { |
| 1100 | "$ref": "#/$defs/ProcColumn" |
| 1101 | } |
| 1102 | }, |
| 1103 | "current_usage": { |
| 1104 | "description": "Calculates process CPU usage as a percentage of current usage rather than total usage.", |
| 1105 | "type": [ |
| 1106 | "boolean", |
| 1107 | "null" |
| 1108 | ] |
| 1109 | }, |
| 1110 | "default_grouped": { |
| 1111 | "description": "Groups processes with the same name by default. No effect if `--tree` is set.", |
| 1112 | "type": [ |
| 1113 | "boolean", |
| 1114 | "null" |
| 1115 | ] |
| 1116 | }, |
| 1117 | "default_memory_value": { |
| 1118 | "description": "Defaults to showing process memory usage by value.", |
| 1119 | "type": [ |
| 1120 | "boolean", |
| 1121 | "null" |
| 1122 | ] |
| 1123 | }, |
| 1124 | "default_sort": { |
| 1125 | "description": "The default sort column.", |
| 1126 | "anyOf": [ |
| 1127 | { |
| 1128 | "$ref": "#/$defs/ProcColumn" |
| 1129 | }, |
| 1130 | { |
| 1131 | "type": "null" |
| 1132 | } |
| 1133 | ] |
| 1134 | }, |
| 1135 | "default_tree": { |
| 1136 | "description": "Makes the process widget use tree mode by default.", |
| 1137 | "type": [ |
| 1138 | "boolean", |
| 1139 | "null" |
| 1140 | ] |
| 1141 | }, |
| 1142 | "disable_advanced_kill": { |
| 1143 | "description": "Disable the advanced kill dialog and just show the basic one with no options.", |
| 1144 | "type": [ |
| 1145 | "boolean", |
| 1146 | "null" |
| 1147 | ] |
| 1148 | }, |
| 1149 | "get_threads": { |
| 1150 | "description": "Whether to get process child threads.", |
| 1151 | "type": [ |
| 1152 | "boolean", |
| 1153 | "null" |
| 1154 | ] |
| 1155 | }, |
| 1156 | "hide_k_threads": { |
| 1157 | "description": "Hide kernel threads from being shown. Linux only.", |
| 1158 | "type": [ |
| 1159 | "boolean", |
| 1160 | "null" |
| 1161 | ] |
| 1162 | }, |
| 1163 | "process_command": { |
| 1164 | "description": "Shows the full command name instead of the process name by default.", |
| 1165 | "type": [ |
| 1166 | "boolean", |
| 1167 | "null" |
| 1168 | ] |
| 1169 | }, |
| 1170 | "regex": { |
| 1171 | "description": "Enables regex by default while searching.", |
| 1172 | "type": [ |
| 1173 | "boolean", |
| 1174 | "null" |
| 1175 | ] |
| 1176 | }, |
| 1177 | "sort_order": { |
| 1178 | "description": "The default sort order. If not set, defaults to column-specific defaults\n(e.g. CPU usage is descending, process names are ascending).", |
| 1179 | "anyOf": [ |
| 1180 | { |
| 1181 | "$ref": "#/$defs/SortOrder" |
| 1182 | }, |
| 1183 | { |
| 1184 | "type": "null" |
| 1185 | } |
| 1186 | ] |
| 1187 | }, |
| 1188 | "tree_collapse": { |
| 1189 | "description": "Collapse the process tree by default when tree mode is set.", |
| 1190 | "type": [ |
| 1191 | "boolean", |
| 1192 | "null" |
| 1193 | ] |
| 1194 | }, |
| 1195 | "unnormalized_cpu": { |
| 1196 | "description": "Show process CPU% usage without averaging over the number of CPU cores.", |
| 1197 | "type": [ |
| 1198 | "boolean", |
| 1199 | "null" |
| 1200 | ] |
| 1201 | }, |
| 1202 | "whole_word": { |
| 1203 | "description": "Enables whole-word matching by default while searching.", |
| 1204 | "type": [ |
| 1205 | "boolean", |
| 1206 | "null" |
| 1207 | ] |
| 1208 | } |
| 1209 | } |
| 1210 | }, |
| 1211 | "RowChildren": { |
| 1212 | "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.", |
| 1213 | "anyOf": [ |
| 1214 | { |
| 1215 | "$ref": "#/$defs/FinalWidget" |
| 1216 | }, |
| 1217 | { |
| 1218 | "type": "object", |
| 1219 | "properties": { |
| 1220 | "child": { |
| 1221 | "type": "array", |
| 1222 | "items": { |
| 1223 | "$ref": "#/$defs/FinalWidget" |
| 1224 | } |
| 1225 | }, |
| 1226 | "ratio": { |
| 1227 | "type": [ |
| 1228 | "integer", |
| 1229 | "null" |
| 1230 | ], |
| 1231 | "format": "uint16", |
| 1232 | "maximum": 65535, |
| 1233 | "minimum": 0 |
| 1234 | } |
| 1235 | }, |
| 1236 | "required": [ |
| 1237 | "child" |
| 1238 | ] |
| 1239 | } |
| 1240 | ] |
| 1241 | }, |
| 1242 | "SortOrder": { |
| 1243 | "description": "Denotes the sort order.", |
| 1244 | "type": "string", |
| 1245 | "enum": [ |
| 1246 | "Ascending", |
| 1247 | "Descending" |
| 1248 | ] |
| 1249 | }, |
| 1250 | "StringOrNum": { |
| 1251 | "anyOf": [ |
| 1252 | { |
| 1253 | "type": "string" |
| 1254 | }, |
| 1255 | { |
| 1256 | "type": "integer", |
| 1257 | "format": "uint64", |
| 1258 | "minimum": 0 |
| 1259 | } |
| 1260 | ] |
| 1261 | }, |
| 1262 | "StyleConfig": { |
| 1263 | "description": "Style-related configs.", |
| 1264 | "type": "object", |
| 1265 | "properties": { |
| 1266 | "battery": { |
| 1267 | "description": "Styling for the battery widget.", |
| 1268 | "anyOf": [ |
| 1269 | { |
| 1270 | "$ref": "#/$defs/BatteryStyle" |
| 1271 | }, |
| 1272 | { |
| 1273 | "type": "null" |
| 1274 | } |
| 1275 | ] |
| 1276 | }, |
| 1277 | "cpu": { |
| 1278 | "description": "Styling for the CPU widget.", |
| 1279 | "anyOf": [ |
| 1280 | { |
| 1281 | "$ref": "#/$defs/CpuStyle" |
| 1282 | }, |
| 1283 | { |
| 1284 | "type": "null" |
| 1285 | } |
| 1286 | ] |
| 1287 | }, |
| 1288 | "disk_io_graph": { |
| 1289 | "description": "Styling for the disk I/O graph widget.", |
| 1290 | "anyOf": [ |
| 1291 | { |
| 1292 | "$ref": "#/$defs/DiskIoGraphStyle" |
| 1293 | }, |
| 1294 | { |
| 1295 | "type": "null" |
| 1296 | } |
| 1297 | ] |
| 1298 | }, |
| 1299 | "graphs": { |
| 1300 | "description": "Styling for graph widgets.", |
| 1301 | "anyOf": [ |
| 1302 | { |
| 1303 | "$ref": "#/$defs/GraphStyle" |
| 1304 | }, |
| 1305 | { |
| 1306 | "type": "null" |
| 1307 | } |
| 1308 | ] |
| 1309 | }, |
| 1310 | "memory": { |
| 1311 | "description": "Styling for the memory widget.", |
| 1312 | "anyOf": [ |
| 1313 | { |
| 1314 | "$ref": "#/$defs/MemoryStyle" |
| 1315 | }, |
| 1316 | { |
| 1317 | "type": "null" |
| 1318 | } |
| 1319 | ] |
| 1320 | }, |
| 1321 | "network": { |
| 1322 | "description": "Styling for the network widget.", |
| 1323 | "anyOf": [ |
| 1324 | { |
| 1325 | "$ref": "#/$defs/NetworkStyle" |
| 1326 | }, |
| 1327 | { |
| 1328 | "type": "null" |
| 1329 | } |
| 1330 | ] |
| 1331 | }, |
| 1332 | "tables": { |
| 1333 | "description": "Styling for table widgets.", |
| 1334 | "anyOf": [ |
| 1335 | { |
| 1336 | "$ref": "#/$defs/TableStyle" |
| 1337 | }, |
| 1338 | { |
| 1339 | "type": "null" |
| 1340 | } |
| 1341 | ] |
| 1342 | }, |
| 1343 | "temp_graph": { |
| 1344 | "description": "Styling for the temperature graph widget.", |
| 1345 | "anyOf": [ |
| 1346 | { |
| 1347 | "$ref": "#/$defs/TempGraphStyle" |
| 1348 | }, |
| 1349 | { |
| 1350 | "type": "null" |
| 1351 | } |
| 1352 | ] |
| 1353 | }, |
| 1354 | "theme": { |
| 1355 | "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.", |
| 1356 | "type": [ |
| 1357 | "string", |
| 1358 | "null" |
| 1359 | ] |
| 1360 | }, |
| 1361 | "widgets": { |
| 1362 | "description": "Styling for general widgets.", |
| 1363 | "anyOf": [ |
| 1364 | { |
| 1365 | "$ref": "#/$defs/WidgetStyle" |
| 1366 | }, |
| 1367 | { |
| 1368 | "type": "null" |
| 1369 | } |
| 1370 | ] |
| 1371 | } |
| 1372 | } |
| 1373 | }, |
| 1374 | "TableGap": { |
| 1375 | "type": "string", |
| 1376 | "enum": [ |
| 1377 | "none", |
| 1378 | "space", |
| 1379 | "line" |
| 1380 | ] |
| 1381 | }, |
| 1382 | "TableStyle": { |
| 1383 | "description": "General styling for table widgets.", |
| 1384 | "type": "object", |
| 1385 | "properties": { |
| 1386 | "headers": { |
| 1387 | "description": "Text styling for table headers.", |
| 1388 | "anyOf": [ |
| 1389 | { |
| 1390 | "$ref": "#/$defs/TextStyleConfig" |
| 1391 | }, |
| 1392 | { |
| 1393 | "type": "null" |
| 1394 | } |
| 1395 | ] |
| 1396 | } |
| 1397 | } |
| 1398 | }, |
| 1399 | "TempConfig": { |
| 1400 | "description": "Temperature configuration.", |
| 1401 | "type": "object", |
| 1402 | "properties": { |
| 1403 | "default_sort": { |
| 1404 | "description": "The default sort column.", |
| 1405 | "anyOf": [ |
| 1406 | { |
| 1407 | "$ref": "#/$defs/TempWidgetColumn" |
| 1408 | }, |
| 1409 | { |
| 1410 | "type": "null" |
| 1411 | } |
| 1412 | ] |
| 1413 | }, |
| 1414 | "sensor_filter": { |
| 1415 | "description": "A filter over the sensor names.", |
| 1416 | "anyOf": [ |
| 1417 | { |
| 1418 | "$ref": "#/$defs/IgnoreList" |
| 1419 | }, |
| 1420 | { |
| 1421 | "type": "null" |
| 1422 | } |
| 1423 | ] |
| 1424 | }, |
| 1425 | "sort_order": { |
| 1426 | "description": "The default sort order. Defaults to ascending.", |
| 1427 | "$ref": "#/$defs/SortOrder" |
| 1428 | } |
| 1429 | } |
| 1430 | }, |
| 1431 | "TempGraphConfig": { |
| 1432 | "description": "Temperature graph configuration.", |
| 1433 | "type": "object", |
| 1434 | "properties": { |
| 1435 | "legend_position": { |
| 1436 | "description": "The location of the graph's legend.", |
| 1437 | "type": [ |
| 1438 | "string", |
| 1439 | "null" |
| 1440 | ], |
| 1441 | "default": null |
| 1442 | }, |
| 1443 | "max_temp": { |
| 1444 | "description": "An upper temperature value for the graph; entries higher than this will be hidden. If not set,\nthere is no limit.\n\nIs in the configured temperature unit.", |
| 1445 | "type": [ |
| 1446 | "number", |
| 1447 | "null" |
| 1448 | ], |
| 1449 | "format": "double", |
| 1450 | "default": null |
| 1451 | }, |
| 1452 | "sensor_filter": { |
| 1453 | "description": "A filter over the sensor names.", |
| 1454 | "anyOf": [ |
| 1455 | { |
| 1456 | "$ref": "#/$defs/IgnoreList" |
| 1457 | }, |
| 1458 | { |
| 1459 | "type": "null" |
| 1460 | } |
| 1461 | ] |
| 1462 | } |
| 1463 | } |
| 1464 | }, |
| 1465 | "TempGraphStyle": { |
| 1466 | "description": "Styling specific to the temperature graph widget.", |
| 1467 | "type": "object", |
| 1468 | "properties": { |
| 1469 | "temp_graph_colour_styles": { |
| 1470 | "description": "Colour of each temperature sensor's graph line. Read in order.", |
| 1471 | "type": [ |
| 1472 | "array", |
| 1473 | "null" |
| 1474 | ], |
| 1475 | "items": { |
| 1476 | "$ref": "#/$defs/ColourStr" |
| 1477 | } |
| 1478 | } |
| 1479 | } |
| 1480 | }, |
| 1481 | "TempWidgetColumn": { |
| 1482 | "type": "string", |
| 1483 | "enum": [ |
| 1484 | "Sensor", |
| 1485 | "Temp", |
| 1486 | "Temperature", |
| 1487 | "sensor", |
| 1488 | "temp", |
| 1489 | "temperature" |
| 1490 | ] |
| 1491 | }, |
| 1492 | "TextStyleConfig": { |
| 1493 | "description": "A style for text.", |
| 1494 | "anyOf": [ |
| 1495 | { |
| 1496 | "$ref": "#/$defs/ColourStr" |
| 1497 | }, |
| 1498 | { |
| 1499 | "type": "object", |
| 1500 | "properties": { |
| 1501 | "bg_colour": { |
| 1502 | "description": "A built-in ANSI colour, RGB hex, or RGB colour code.", |
| 1503 | "anyOf": [ |
| 1504 | { |
| 1505 | "$ref": "#/$defs/ColourStr" |
| 1506 | }, |
| 1507 | { |
| 1508 | "type": "null" |
| 1509 | } |
| 1510 | ] |
| 1511 | }, |
| 1512 | "bold": { |
| 1513 | "description": "Whether to make this text bolded or not. If not set,\nwill default to built-in defaults.", |
| 1514 | "type": [ |
| 1515 | "boolean", |
| 1516 | "null" |
| 1517 | ] |
| 1518 | }, |
| 1519 | "colour": { |
| 1520 | "description": "A built-in ANSI colour, RGB hex, or RGB colour code.", |
| 1521 | "anyOf": [ |
| 1522 | { |
| 1523 | "$ref": "#/$defs/ColourStr" |
| 1524 | }, |
| 1525 | { |
| 1526 | "type": "null" |
| 1527 | } |
| 1528 | ] |
| 1529 | }, |
| 1530 | "italics": { |
| 1531 | "description": "Whether to make this text italicized or not. If not set,\nwill default to built-in defaults.", |
| 1532 | "type": [ |
| 1533 | "boolean", |
| 1534 | "null" |
| 1535 | ] |
| 1536 | } |
| 1537 | } |
| 1538 | } |
| 1539 | ] |
| 1540 | }, |
| 1541 | "WidgetBorderType": { |
| 1542 | "type": "string", |
| 1543 | "enum": [ |
| 1544 | "Default", |
| 1545 | "Rounded", |
| 1546 | "Double", |
| 1547 | "Thick" |
| 1548 | ] |
| 1549 | }, |
| 1550 | "WidgetStyle": { |
| 1551 | "description": "General styling for generic widgets.", |
| 1552 | "type": "object", |
| 1553 | "properties": { |
| 1554 | "bg_colour": { |
| 1555 | "description": "Background colour for widgets.", |
| 1556 | "anyOf": [ |
| 1557 | { |
| 1558 | "$ref": "#/$defs/ColourStr" |
| 1559 | }, |
| 1560 | { |
| 1561 | "type": "null" |
| 1562 | } |
| 1563 | ] |
| 1564 | }, |
| 1565 | "border_colour": { |
| 1566 | "description": "The colour of the widgets' borders.", |
| 1567 | "anyOf": [ |
| 1568 | { |
| 1569 | "$ref": "#/$defs/ColourStr" |
| 1570 | }, |
| 1571 | { |
| 1572 | "type": "null" |
| 1573 | } |
| 1574 | ] |
| 1575 | }, |
| 1576 | "disabled_text": { |
| 1577 | "description": "Text styling for text when representing something that is disabled.", |
| 1578 | "anyOf": [ |
| 1579 | { |
| 1580 | "$ref": "#/$defs/TextStyleConfig" |
| 1581 | }, |
| 1582 | { |
| 1583 | "type": "null" |
| 1584 | } |
| 1585 | ] |
| 1586 | }, |
| 1587 | "selected_border_colour": { |
| 1588 | "description": "The colour of a widget's borders when the widget is selected.", |
| 1589 | "anyOf": [ |
| 1590 | { |
| 1591 | "$ref": "#/$defs/ColourStr" |
| 1592 | }, |
| 1593 | { |
| 1594 | "type": "null" |
| 1595 | } |
| 1596 | ] |
| 1597 | }, |
| 1598 | "selected_text": { |
| 1599 | "description": "Text styling for text when representing something that is selected.", |
| 1600 | "anyOf": [ |
| 1601 | { |
| 1602 | "$ref": "#/$defs/TextStyleConfig" |
| 1603 | }, |
| 1604 | { |
| 1605 | "type": "null" |
| 1606 | } |
| 1607 | ] |
| 1608 | }, |
| 1609 | "text": { |
| 1610 | "description": "Text styling for text in general.", |
| 1611 | "anyOf": [ |
| 1612 | { |
| 1613 | "$ref": "#/$defs/TextStyleConfig" |
| 1614 | }, |
| 1615 | { |
| 1616 | "type": "null" |
| 1617 | } |
| 1618 | ] |
| 1619 | }, |
| 1620 | "thread_text": { |
| 1621 | "description": "Text styling for text when representing process threads. Only usable\non Linux at the moment.", |
| 1622 | "anyOf": [ |
| 1623 | { |
| 1624 | "$ref": "#/$defs/TextStyleConfig" |
| 1625 | }, |
| 1626 | { |
| 1627 | "type": "null" |
| 1628 | } |
| 1629 | ] |
| 1630 | }, |
| 1631 | "widget_border_type": { |
| 1632 | "description": "Widget borders type.", |
| 1633 | "anyOf": [ |
| 1634 | { |
| 1635 | "$ref": "#/$defs/WidgetBorderType" |
| 1636 | }, |
| 1637 | { |
| 1638 | "type": "null" |
| 1639 | } |
| 1640 | ] |
| 1641 | }, |
| 1642 | "widget_title": { |
| 1643 | "description": "Text styling for a widget's title.", |
| 1644 | "anyOf": [ |
| 1645 | { |
| 1646 | "$ref": "#/$defs/TextStyleConfig" |
| 1647 | }, |
| 1648 | { |
| 1649 | "type": "null" |
| 1650 | } |
| 1651 | ] |
| 1652 | } |
| 1653 | } |
| 1654 | }, |
| 1655 | "row": { |
| 1656 | "description": "Represents a row. This has a length of some sort (optional) and a vector\nof children.", |
| 1657 | "type": "object", |
| 1658 | "properties": { |
| 1659 | "child": { |
| 1660 | "type": [ |
| 1661 | "array", |
| 1662 | "null" |
| 1663 | ], |
| 1664 | "items": { |
| 1665 | "$ref": "#/$defs/RowChildren" |
| 1666 | } |
| 1667 | }, |
| 1668 | "ratio": { |
| 1669 | "type": [ |
| 1670 | "integer", |
| 1671 | "null" |
| 1672 | ], |
| 1673 | "format": "uint16", |
| 1674 | "maximum": 65535, |
| 1675 | "minimum": 0 |
| 1676 | } |
| 1677 | } |
| 1678 | } |
| 1679 | } |
| 1680 | } |