1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-15 01:24:29 +02:00

[xrandr] Fix schema

This commit is contained in:
Kevin Lyter
2024-02-28 21:06:51 -08:00
parent fdadba226f
commit 5c06712fba

View File

@ -15,19 +15,23 @@ Usage (module):
result = jc.parse('xrandr', xrandr_command_output) result = jc.parse('xrandr', xrandr_command_output)
Schema: Schema:
Plain Schema:
{ {
"screens": [ "screens": [
{ {
"screen_number": integer,
"minimum_width": integer,
"minimum_height": integer,
"current_width": integer,
"current_height": integer,
"maximum_width": integer,
"maximum_height": integer,
"devices": [ "devices": [
{ {
"props": {
[key: string]: List[string],
},
"resolution_modes": [ "resolution_modes": [
{ {
"resolution_width": int, "resolution_width": integer,
"resolution_height": int, "resolution_height": integer,
"is_high_resolution": boolean, "is_high_resolution": boolean,
"frequencies": [ "frequencies": [
{ {
@ -37,27 +41,23 @@ Schema:
} }
] ]
} }
]
}
], ],
"is_connected": boolean, "is_connected": boolean,
"is_primary": boolean, "is_primary": boolean,
"device_name": string, "device_name": string,
"model_name": string,
"product_id" string,
"serial_number": string,
"resolution_width": integer,
"resolution_height": integer,
"offset_width": integer,
"offset_height": integer,
"dimension_width": integer,
"dimension_height": integer,
"rotation": string, "rotation": string,
"reflection": string, "reflection": string
"resolution_width": int,
"resolution_height": int,
"offset_width": int,
"offset_height": int,
"dimension_width": int,
"dimension_height": int
}
],
"screen_number": int,
"minimum_width": int,
"minimum_height": int,
"current_width": int,
"current_height": int,
"maximum_width": int,
"maximum_height": int
} }
] ]
} }