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,49 +15,49 @@ 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": [
{ {
"frequency": float, "frequency": float,
"is_current": boolean, "is_current": boolean,
"is_preferred": boolean "is_preferred": boolean
} }
] ]
} }
], ]
"is_connected": boolean,
"is_primary": boolean,
"device_name": string,
"rotation": string,
"reflection": string,
"resolution_width": int,
"resolution_height": int,
"offset_width": int,
"offset_height": int,
"dimension_width": int,
"dimension_height": int
} }
], ],
"screen_number": int, "is_connected": boolean,
"minimum_width": int, "is_primary": boolean,
"minimum_height": int, "device_name": string,
"current_width": int, "model_name": string,
"current_height": int, "product_id" string,
"maximum_width": int, "serial_number": string,
"maximum_height": int "resolution_width": integer,
"resolution_height": integer,
"offset_width": integer,
"offset_height": integer,
"dimension_width": integer,
"dimension_height": integer,
"rotation": string,
"reflection": string
} }
] ]
} }