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

16 Commits

Author SHA1 Message Date
2ddf67ad0c make xrander test quiet 2024-04-28 12:44:40 -07:00
1da080dc52 fix for unhandled lines in xrandr output 2024-03-23 10:57:46 -07:00
8ead7e4835 rename List class to _List for documentation purposes 2024-02-12 15:05:44 -08:00
d50bd96ce6 [xrandr] Allow props command (#540)
* [xrandr] Allow props command

Responding to issue #525
Somewhat substantial rewriting here to make the parser more resilient
- Change parser to not mutate the incoming data list, instead index
- Create `Line` class and `categorize` classmethod
  - Every line is categorized and regexed, so it gets dispatched to the
  right level of responsibility

* Bump version

---------

Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>
2024-02-12 09:03:25 -08:00
a254ee8d88 add test for issue 490 2023-12-16 11:39:40 -08:00
88ffcaee56 update schema. fix no-data output to match other parsers. 2023-12-10 10:29:58 -08:00
2630049ab7 possible fix for infinite loop issue 2023-12-09 16:14:27 -08:00
8bf2f4f4d0 [xrandr] Fix 453 devices issue (#455)
* [xrandr] Fix bug 453, clean up data model

* Fix: 'devices' was originally not a list, just assigned each time it
was parsed. Made that a list and appended to it.
* Removed distinction between unassociated/associated devices
* Added test for @marcin-koziol's problem
* Put tests into separate test methods

* Formatting cleanup

* Backwards compatible type syntax

---------

Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>
2023-09-30 15:19:14 -07:00
6ea2d776ae Add unit tests for xrandr --properties outputs 2023-02-17 16:25:41 +02:00
ae19183803 add test for is_current fix 2023-02-13 18:17:14 -08:00
8536514baf add test for output with extra spaces that caused infinite loops 2023-02-13 18:09:10 -08:00
80fb4d40a5 Add unit test to assert devices in reflect mode 2023-02-09 21:22:34 +02:00
e39f150a21 Support rotated devices 2022-04-10 19:53:37 +09:00
e5b478218c add quiet=True to parse tests 2022-03-22 16:05:07 -07:00
ca914ec77d add nodata test 2022-02-14 09:14:38 -08:00
520082d963 New parser: xrandr
Tests passing, working as intended in plugin directory
2022-02-02 20:33:25 -08:00