Something went wrong. Try again.
Script for getting VR headset rolling scanout information. Requires `nushell` and `drm_info`
Something went wrong. Try again.
622 B · 27 lines · Created 1y ago
Nushell
123456789101112131415161718192021222324252627input -sn 1 "If Monado is running, please stop it. Press any key to continue."
let displays = drm_info -j| from json| get ($in | columns | last)| get crtcs.mode| enumerate| where item != null| get indexprint "\ncollected existing displays"
input -sn 1 "Please start Monado, then press any key to continue."print ""
let info = drm_info -j| from json| get ($in | columns | last)| get crtcs.mode| enumerate| where item != null and index not-in $displays| get item
print $infoprint "Please share this YAML representation of the above data (with ``` symbols):"print "```"print ($info | to yaml)print "```"