|
26 | 26 | "format": { |
27 | 27 | "description": "Output format of the module", |
28 | 28 | "type": "string" |
| 29 | + }, |
| 30 | + "percent": { |
| 31 | + "description": "Threshold of percentage colors", |
| 32 | + "type": "object", |
| 33 | + "properties": { |
| 34 | + "green": { |
| 35 | + "type": "integer", |
| 36 | + "minimum": 0, |
| 37 | + "maximum": 100, |
| 38 | + "description": "Value less then green will be shown in green" |
| 39 | + }, |
| 40 | + "yellow": { |
| 41 | + "type": "integer", |
| 42 | + "minimum": 0, |
| 43 | + "maximum": 100, |
| 44 | + "description": "Value greater than green and less then yellow will be shown in yellow.\nValue greater than yellow will be shown in red" |
| 45 | + } |
| 46 | + } |
29 | 47 | } |
30 | 48 | }, |
31 | 49 | "type": "object", |
|
439 | 457 | "minimum": 0, |
440 | 458 | "maximum": 9, |
441 | 459 | "default": 0 |
| 460 | + }, |
| 461 | + "color": { |
| 462 | + "type": "object", |
| 463 | + "description": "Set color used in different states of percentage bars and numbers", |
| 464 | + "properties": { |
| 465 | + "green": { |
| 466 | + "description": "Color used in green state", |
| 467 | + "$ref": "#/$defs/colors" |
| 468 | + }, |
| 469 | + "yellow": { |
| 470 | + "description": "Color used in yellow state", |
| 471 | + "$ref": "#/$defs/colors" |
| 472 | + }, |
| 473 | + "red": { |
| 474 | + "description": "Color used in red state", |
| 475 | + "$ref": "#/$defs/colors" |
| 476 | + } |
| 477 | + } |
442 | 478 | } |
443 | 479 | } |
444 | 480 | }, |
|
672 | 708 | "const": "font", |
673 | 709 | "description": "Print system font name" |
674 | 710 | }, |
675 | | - { |
676 | | - "const": "gamepad", |
677 | | - "description": "List connected gamepads" |
678 | | - }, |
679 | 711 | { |
680 | 712 | "const": "host", |
681 | 713 | "description": "Print product name of your computer" |
|
700 | 732 | "const": "media", |
701 | 733 | "description": "Print playing song name" |
702 | 734 | }, |
703 | | - { |
704 | | - "const": "memory", |
705 | | - "description": "Print system memory usage info" |
706 | | - }, |
707 | 735 | { |
708 | 736 | "const": "monitor", |
709 | 737 | "description": "Print connected physical monitor information" |
|
732 | 760 | "const": "shell", |
733 | 761 | "description": "Print current shell name and version" |
734 | 762 | }, |
735 | | - { |
736 | | - "const": "swap", |
737 | | - "description": "Print swap (paging file) space usage" |
738 | | - }, |
739 | 763 | { |
740 | 764 | "const": "terminal", |
741 | 765 | "description": "Print current terminal name and version" |
|
814 | 838 | "type": "boolean", |
815 | 839 | "default": false |
816 | 840 | }, |
| 841 | + "percent": { |
| 842 | + "$ref": "#/$defs/percent" |
| 843 | + }, |
817 | 844 | "key": { |
818 | 845 | "$ref": "#/$defs/key" |
819 | 846 | }, |
|
841 | 868 | "type": "boolean", |
842 | 869 | "default": false |
843 | 870 | }, |
| 871 | + "percent": { |
| 872 | + "$ref": "#/$defs/percent" |
| 873 | + }, |
844 | 874 | "key": { |
845 | 875 | "$ref": "#/$defs/key" |
846 | 876 | }, |
|
863 | 893 | "const": "brightness", |
864 | 894 | "description": "Print current brightness level of your monitors" |
865 | 895 | }, |
| 896 | + "percent": { |
| 897 | + "$ref": "#/$defs/percent" |
| 898 | + }, |
866 | 899 | "ddcciSleep": { |
867 | 900 | "type": "integer", |
868 | 901 | "description": "Set the sleep times (in ms) when sending DDC/CI requests.\nSee <https://www.ddcutil.com/performance_options/#option-sleep-multiplier> for detail", |
|
934 | 967 | "const": "cpuusage", |
935 | 968 | "description": "Print CPU usage. Costs some time to collect data" |
936 | 969 | }, |
| 970 | + "percent": { |
| 971 | + "$ref": "#/$defs/percent" |
| 972 | + }, |
937 | 973 | "separate": { |
938 | 974 | "type": "boolean", |
939 | 975 | "description": "Display CPU usage per CPU logical core, instead of an average result", |
|
1103 | 1139 | "description": "Use f_bavail (lpFreeBytesAvailableToCaller for Windows) instead of f_bfree to calculate used bytes", |
1104 | 1140 | "default": false |
1105 | 1141 | }, |
| 1142 | + "percent": { |
| 1143 | + "$ref": "#/$defs/percent" |
| 1144 | + }, |
1106 | 1145 | "key": { |
1107 | 1146 | "$ref": "#/$defs/key" |
1108 | 1147 | }, |
|
1170 | 1209 | } |
1171 | 1210 | } |
1172 | 1211 | }, |
| 1212 | + { |
| 1213 | + "title": "Gamepad", |
| 1214 | + "properties": { |
| 1215 | + "type": { |
| 1216 | + "const": "gamepad", |
| 1217 | + "description": "List connected gamepads" |
| 1218 | + }, |
| 1219 | + "percent": { |
| 1220 | + "$ref": "#/$defs/percent" |
| 1221 | + }, |
| 1222 | + "key": { |
| 1223 | + "$ref": "#/$defs/key" |
| 1224 | + }, |
| 1225 | + "keyColor": { |
| 1226 | + "$ref": "#/$defs/keyColor" |
| 1227 | + }, |
| 1228 | + "keyWidth": { |
| 1229 | + "$ref": "#/$defs/keyWidth" |
| 1230 | + }, |
| 1231 | + "format": { |
| 1232 | + "$ref": "#/$defs/format" |
| 1233 | + } |
| 1234 | + }, |
| 1235 | + "additionalProperties": false |
| 1236 | + }, |
1173 | 1237 | { |
1174 | 1238 | "title": "GPU", |
1175 | 1239 | "properties": { |
|
1272 | 1336 | }, |
1273 | 1337 | "additionalProperties": false |
1274 | 1338 | }, |
| 1339 | + { |
| 1340 | + "title": "Memory", |
| 1341 | + "properties": { |
| 1342 | + "type": { |
| 1343 | + "const": "memory", |
| 1344 | + "description": "Print system memory usage info" |
| 1345 | + }, |
| 1346 | + "percent": { |
| 1347 | + "$ref": "#/$defs/percent" |
| 1348 | + }, |
| 1349 | + "key": { |
| 1350 | + "$ref": "#/$defs/key" |
| 1351 | + }, |
| 1352 | + "keyColor": { |
| 1353 | + "$ref": "#/$defs/keyColor" |
| 1354 | + }, |
| 1355 | + "keyWidth": { |
| 1356 | + "$ref": "#/$defs/keyWidth" |
| 1357 | + }, |
| 1358 | + "format": { |
| 1359 | + "$ref": "#/$defs/format" |
| 1360 | + } |
| 1361 | + }, |
| 1362 | + "additionalProperties": false |
| 1363 | + }, |
1275 | 1364 | { |
1276 | 1365 | "title": "NetIO", |
1277 | 1366 | "properties": { |
|
1458 | 1547 | ], |
1459 | 1548 | "default": "main" |
1460 | 1549 | }, |
| 1550 | + "percent": { |
| 1551 | + "$ref": "#/$defs/percent" |
| 1552 | + }, |
| 1553 | + "key": { |
| 1554 | + "$ref": "#/$defs/key" |
| 1555 | + }, |
| 1556 | + "keyColor": { |
| 1557 | + "$ref": "#/$defs/keyColor" |
| 1558 | + }, |
| 1559 | + "keyWidth": { |
| 1560 | + "$ref": "#/$defs/keyWidth" |
| 1561 | + }, |
| 1562 | + "format": { |
| 1563 | + "$ref": "#/$defs/format" |
| 1564 | + } |
| 1565 | + }, |
| 1566 | + "additionalProperties": false |
| 1567 | + }, |
| 1568 | + { |
| 1569 | + "title": "Swap", |
| 1570 | + "properties": { |
| 1571 | + "type": { |
| 1572 | + "const": "swap", |
| 1573 | + "description": "Print swap (paging file) space usage" |
| 1574 | + }, |
| 1575 | + "percent": { |
| 1576 | + "$ref": "#/$defs/percent" |
| 1577 | + }, |
1461 | 1578 | "key": { |
1462 | 1579 | "$ref": "#/$defs/key" |
1463 | 1580 | }, |
|
0 commit comments