diff --git a/docs/parsers/xrandr.md b/docs/parsers/xrandr.md index dcc7fea2..eb095eec 100644 --- a/docs/parsers/xrandr.md +++ b/docs/parsers/xrandr.md @@ -36,18 +36,21 @@ Schema: "maximum_width": integer, "maximum_height": integer, "associated_device": { - "associated_modes": [ - { - "resolution_width": integer, - "resolution_height": integer, - "is_high_resolution": boolean, - "frequencies": [ + "associated_modes": [ { - "frequency": float, - "is_current": boolean, - "is_preferred": boolean + "resolution_width": integer, + "resolution_height": integer, + "is_high_resolution": boolean, + "frequencies": [ + { + "frequency": float, + "is_current": boolean, + "is_preferred": boolean + } + ] } - ], + ] + }, "is_connected": boolean, "is_primary": boolean, "device_name": string, @@ -57,7 +60,6 @@ Schema: "offset_height": integer, "dimension_width": integer, "dimension_height": integer - } } ], "unassociated_devices": [ diff --git a/jc/parsers/xrandr.py b/jc/parsers/xrandr.py index bba6afe4..a2c94271 100644 --- a/jc/parsers/xrandr.py +++ b/jc/parsers/xrandr.py @@ -31,18 +31,21 @@ Schema: "maximum_width": integer, "maximum_height": integer, "associated_device": { - "associated_modes": [ - { - "resolution_width": integer, - "resolution_height": integer, - "is_high_resolution": boolean, - "frequencies": [ + "associated_modes": [ { - "frequency": float, - "is_current": boolean, - "is_preferred": boolean + "resolution_width": integer, + "resolution_height": integer, + "is_high_resolution": boolean, + "frequencies": [ + { + "frequency": float, + "is_current": boolean, + "is_preferred": boolean + } + ] } - ], + ] + }, "is_connected": boolean, "is_primary": boolean, "device_name": string, @@ -52,7 +55,6 @@ Schema: "offset_height": integer, "dimension_width": integer, "dimension_height": integer - } } ], "unassociated_devices": [ @@ -137,7 +139,6 @@ Examples: """ import re from typing import Dict, List, Optional, Union - import jc.utils