parse the output of the `xrandr` command