1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2026-04-24 20:56:11 +02:00
Commit Graph

3399 Commits

Author SHA1 Message Date
Jake Ob 98ced9616c Modify xrandr parser to extract model info from EDID (#364)
This change will make the xrandr parser to work also with outputs from
`xrandr --properties`, where the option `--properties` enables xrandr
to return the EDID data of each output device. The parser is expected
to remain backward compatible for regular xrandr outputs. The extra info
that will be added to every device object is:

```json
{
  "model_name": "str",
  "product_id": "str",
  "serial_number": "str"
}
```

Because the EDID data come encoded in a hexadecimal string, we have to
decode them by vendoring the pyedid (https://github.com/jojonas/pyedid) library.

Fixes: #364
2023-02-17 16:09:50 +02:00
Kelly Brazil ae19183803 add test for is_current fix 2023-02-13 18:17:14 -08:00
Kelly Brazil 8536514baf add test for output with extra spaces that caused infinite loops 2023-02-13 18:09:10 -08:00
Kelly Brazil 81982a9f79 doc updagte 2023-02-12 18:30:31 -08:00
Kelly Brazil 1acbb2f096 Merge pull request #361 from tzeikob/reflect-360
Move the reflect value in its own key (xrandr) #360
2023-02-12 18:28:37 -08:00
Jake Ob 80fb4d40a5 Add unit test to assert devices in reflect mode 2023-02-09 21:22:34 +02:00
Kelly Brazil c972dd1aac Merge pull request #362 from jpmat296/master
Improve accepted formats in proc_pid_smaps
2023-02-09 09:51:26 -08:00
Jean-Pierre Matsumoto 9dde65c25c Improve accepted formats in proc_pid_smaps 2023-02-07 14:57:15 +01:00
Jake Ob 7486b0c7cd Move the reflect value in its own key (xrandr)
Currently the reflect value of a device is included in the rotation
key as a combination of both rotation and reflection (e.g. normal X axis).
With this modification we move the reflection value to its own key in the
JSON document like so:

```json
{
  ...
  "rotation": "...",
  "reflection": "...,
  ...
}
```

Fixes: issue #360
2023-02-07 13:02:21 +02:00
Kelly Brazil 5c7a520a0b formatting 2023-02-05 13:04:32 -08:00
Kelly Brazil 193ddf71f8 fix typos 2023-02-05 09:52:59 -08:00
Kelly Brazil c46fe9816c doc update 2023-02-05 09:49:32 -08:00
Kelly Brazil aada5f0794 add int conversions 2023-02-04 19:04:43 -08:00
Kelly Brazil 5c7bf363a6 add schema and docs 2023-02-04 18:51:31 -08:00
Kelly Brazil 00b74be540 version bump 2023-02-04 17:37:56 -08:00
Kelly Brazil 96cb01f57a fix zpool-status for multi-line fields 2023-02-04 17:37:48 -08:00
Kelly Brazil adf5f403ae regex fix for infinite loop? 2023-02-04 14:37:03 -08:00
Kelly Brazil 1c09c95c71 doc update 2023-02-04 11:26:41 -08:00
Kelly Brazil 64f442d743 fix for is_current? 2023-02-04 11:20:48 -08:00
Kelly Brazil cd8d43446b add zpool-status parser 2023-02-02 15:57:15 -08:00
Kelly Brazil 7361eac1a4 formatting 2023-01-31 17:02:04 -08:00
Kelly Brazil 9d41f0a938 doc update 2023-01-31 17:00:42 -08:00
Kelly Brazil 00274c15df add process conversions 2023-01-31 16:52:56 -08:00
Kelly Brazil d0b8a91f94 add zpool-iostat parser 2023-01-31 11:59:19 -08:00
Kelly Brazil 098e8dbef6 doc update 2023-01-31 11:59:06 -08:00
Kelly Brazil ec29b8bbc6 add test for acpi fix for never fully discharge state 2023-01-31 09:51:23 -08:00
Kelly Brazil 1d8f83b8c6 add ver parser tests 2023-01-31 09:44:23 -08:00
Kelly Brazil 12c4419c6a doc update 2023-01-31 08:30:37 -08:00
Kelly Brazil b134c53f33 add ssh_conf tests 2023-01-31 08:29:43 -08:00
Kelly Brazil 23ff19fdb5 add slicer tests 2023-01-31 06:48:37 -08:00
Kelly Brazil 7a43ba631b fix tests for slice info metadata 2023-01-30 08:59:54 -08:00
Kelly Brazil 2beb26f3e3 add slice info to Metadata output 2023-01-30 08:52:22 -08:00
Kelly Brazil 4b55f49e99 formatting 2023-01-30 08:11:21 -08:00
Kelly Brazil c0239a771c clarify parser argument quote wrapping code 2023-01-27 16:28:55 -08:00
Kelly Brazil bc4738e900 don't quote spaces in command arguments 2023-01-27 15:58:01 -08:00
Kelly Brazil 1c76caf59b formatting 2023-01-27 15:22:36 -08:00
Kelly Brazil 0679951d4a add <nobr> tag 2023-01-27 15:17:41 -08:00
Kelly Brazil df7aee9e4b doc update 2023-01-27 14:47:08 -08:00
Kelly Brazil a8d97a2521 add slice info to help and doc update 2023-01-27 11:41:21 -08:00
Kelly Brazil 9370b336d8 add slice to man page 2023-01-27 11:31:16 -08:00
Kelly Brazil 118f98222a change restapi link 2023-01-27 08:15:53 -08:00
Kelly Brazil dc997821f4 ad jc-api demo link 2023-01-27 08:12:07 -08:00
Kelly Brazil aef0fdb435 formatting 2023-01-27 08:02:07 -08:00
Kelly Brazil 21ee3c0e78 clarify slice usage 2023-01-27 08:01:32 -08:00
Kelly Brazil d6c665f74b add both negative slice description 2023-01-26 17:06:07 -08:00
Kelly Brazil 79305a50d0 formatting 2023-01-26 16:59:15 -08:00
Kelly Brazil e758aa41ef formatting 2023-01-26 16:49:27 -08:00
Kelly Brazil 910cb34b09 formatting 2023-01-26 16:49:09 -08:00
Kelly Brazil 976fea4eb2 Formatting 2023-01-26 16:46:54 -08:00
Kelly Brazil 81447ec9e6 formatting 2023-01-26 16:44:26 -08:00