1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

formatting

This commit is contained in:
Kelly Brazil
2022-02-14 09:20:16 -08:00
parent 4723db8e3c
commit 3f5f6e39a7
2 changed files with 100 additions and 98 deletions

View File

@ -24,60 +24,61 @@ Usage (module):
result = jc.parsers.xrandr.parse(xrandr_command_output) result = jc.parsers.xrandr.parse(xrandr_command_output)
Schema: Schema:
{
"screens": [ {
{ "screens": [
"screen_number": integer, {
"minimum_width": integer, "screen_number": integer,
"minimum_height": integer, "minimum_width": integer,
"current_width": integer, "minimum_height": integer,
"current_height": integer, "current_width": integer,
"maximum_width": integer, "current_height": integer,
"maximum_height": integer, "maximum_width": integer,
"associated_device": { "maximum_height": integer,
"associated_modes": [ "associated_device": {
{ "associated_modes": [
"resolution_width": integer,
"resolution_height": integer,
"is_high_resolution": boolean,
"frequencies": [
{ {
"frequency": float, "resolution_width": integer,
"is_current": boolean, "resolution_height": integer,
"is_preferred": boolean "is_high_resolution": boolean,
}
],
"is_connected": boolean,
"is_primary": boolean,
"device_name": string,
"resolution_width": integer,
"resolution_height": integer,
"offset_width": integer,
"offset_height": integer,
"dimension_width": integer,
"dimension_height": integer
}
}
],
"unassociated_devices": [
{
"associated_modes": [
{
"resolution_width": integer,
"resolution_height": integer,
"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,
"resolution_width": integer,
"resolution_height": integer,
"offset_width": integer,
"offset_height": integer,
"dimension_width": integer,
"dimension_height": integer
} }
] }
} ],
] "unassociated_devices": [
} {
"associated_modes": [
{
"resolution_width": integer,
"resolution_height": integer,
"is_high_resolution": boolean,
"frequencies": [
{
"frequency": float,
"is_current": boolean,
"is_preferred": boolean
}
]
}
]
}
]
}
Examples: Examples:

View File

@ -19,60 +19,61 @@ Usage (module):
result = jc.parsers.xrandr.parse(xrandr_command_output) result = jc.parsers.xrandr.parse(xrandr_command_output)
Schema: Schema:
{
"screens": [ {
{ "screens": [
"screen_number": integer, {
"minimum_width": integer, "screen_number": integer,
"minimum_height": integer, "minimum_width": integer,
"current_width": integer, "minimum_height": integer,
"current_height": integer, "current_width": integer,
"maximum_width": integer, "current_height": integer,
"maximum_height": integer, "maximum_width": integer,
"associated_device": { "maximum_height": integer,
"associated_modes": [ "associated_device": {
{ "associated_modes": [
"resolution_width": integer,
"resolution_height": integer,
"is_high_resolution": boolean,
"frequencies": [
{ {
"frequency": float, "resolution_width": integer,
"is_current": boolean, "resolution_height": integer,
"is_preferred": boolean "is_high_resolution": boolean,
}
],
"is_connected": boolean,
"is_primary": boolean,
"device_name": string,
"resolution_width": integer,
"resolution_height": integer,
"offset_width": integer,
"offset_height": integer,
"dimension_width": integer,
"dimension_height": integer
}
}
],
"unassociated_devices": [
{
"associated_modes": [
{
"resolution_width": integer,
"resolution_height": integer,
"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,
"resolution_width": integer,
"resolution_height": integer,
"offset_width": integer,
"offset_height": integer,
"dimension_width": integer,
"dimension_height": integer
} }
] }
} ],
] "unassociated_devices": [
} {
"associated_modes": [
{
"resolution_width": integer,
"resolution_height": integer,
"is_high_resolution": boolean,
"frequencies": [
{
"frequency": float,
"is_current": boolean,
"is_preferred": boolean
}
]
}
]
}
]
}
Examples: Examples: