ascent12 / drm_info

Moved to https://gitlab.freedesktop.org/emersion/drm_info
MIT License
63 stars 13 forks source link

Add flag to read JSON from file #75

Open emersion opened 3 years ago

emersion commented 3 years ago

A new -i flag is introduced to allow users to pretty-print a JSON dump. Users can now share JSON dumps, and optionally post-process them, e.g. this can be used to only print the connectors:

drm_info -j | jq '. | map_values(. | {driver,device,connectors,encoders:[],crtcs:[],planes:[]})' | drm_info -i