xrandr --output LVDS --prefs should output preferences to only one monitor
Submitted by paulo
Assigned to Keith Packard
xrandr output is 'all or nothing' which makes it very hard to script with grep and awk. Finding connected monitors is 'easy' because the ' connected ' string is in the same line as the monitor name.
However, finding properties for a single monitor is actually very hard to do (to the point there are 'parsers' libraries only for xrandr output in the wild).
Obviously, the output is structured already but it's quite unfriendly to 'casual' script hacking usage.
My suggestion is to make some combinations that do nothing today, such as
xrandr --output MONITOR --prefs xrandr --output MONITOR -q xrandr --output MONITOR (maybe)
to output the section of the information from the correspondent command without '--output MONITOR' relating to the specified device.