drm_info icon indicating copy to clipboard operation
drm_info copied to clipboard

Add flag to read JSON from file

Open emersion opened this issue 3 years ago • 0 comments

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

emersion avatar Jul 09 '21 08:07 emersion