From 504ad81a019e222c2baaf1c6eff4b3e6970ca2c2 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Sat, 30 Sep 2023 15:21:29 -0700 Subject: [PATCH] version bump --- docs/parsers/xrandr.md | 38 +++++++++----------------------------- jc/parsers/xrandr.py | 2 +- 2 files changed, 10 insertions(+), 30 deletions(-) diff --git a/docs/parsers/xrandr.md b/docs/parsers/xrandr.md index b3c355fc..63ebbeec 100644 --- a/docs/parsers/xrandr.md +++ b/docs/parsers/xrandr.md @@ -31,8 +31,8 @@ Schema: "current_height": integer, "maximum_width": integer, "maximum_height": integer, - "associated_device": { - "associated_modes": [ + "devices": { + "modes": [ { "resolution_width": integer, "resolution_height": integer, @@ -63,24 +63,6 @@ Schema: "reflection": string } ], - "unassociated_devices": [ - { - "associated_modes": [ - { - "resolution_width": integer, - "resolution_height": integer, - "is_high_resolution": boolean, - "frequencies": [ - { - "frequency": float, - "is_current": boolean, - "is_preferred": boolean - } - ] - } - ] - } - ] } Examples: @@ -96,8 +78,8 @@ Examples: "current_height": 1080, "maximum_width": 32767, "maximum_height": 32767, - "associated_device": { - "associated_modes": [ + "devices": { + "modes": [ { "resolution_width": 1920, "resolution_height": 1080, @@ -141,8 +123,7 @@ Examples: "reflection": "normal" } } - ], - "unassociated_devices": [] + ] } $ xrandr --properties | jc --xrandr -p @@ -156,8 +137,8 @@ Examples: "current_height": 1080, "maximum_width": 32767, "maximum_height": 32767, - "associated_device": { - "associated_modes": [ + "devices": { + "modes": [ { "resolution_width": 1920, "resolution_height": 1080, @@ -204,8 +185,7 @@ Examples: "reflection": "normal" } } - ], - "unassociated_devices": [] + ] } @@ -231,4 +211,4 @@ Returns: ### Parser Information Compatibility: linux, darwin, cygwin, aix, freebsd -Version 1.2 by Kevin Lyter (lyter_git at sent.com) +Version 1.3 by Kevin Lyter (code (at) lyterk.com) diff --git a/jc/parsers/xrandr.py b/jc/parsers/xrandr.py index 05963458..dfd480bf 100644 --- a/jc/parsers/xrandr.py +++ b/jc/parsers/xrandr.py @@ -193,7 +193,7 @@ from jc.parsers.pyedid.helpers.edid_helper import EdidHelper class info: """Provides parser metadata (version, author, etc.)""" - version = "1.2" + version = "1.3" description = "`xrandr` command parser" author = "Kevin Lyter" author_email = "code (at) lyterk.com"