I'd say it doesn't make much sense to read xorg.conf. It's your active resolution that we're more interested in. Maybe xprop is appropriate?
ongardie@tablet:~$ xprop -root | grep ^_NET_DESKTOP_GEOMETRY
returns:
_NET_DESKTOP_GEOMETRY(CARDINAL) = 1024, 600
We could add some code to *try* xprop, and if we get some desktop geometry back from it, and that geometry is different from our defaults, we could add it to the dropdown.
Sebastien/Andrew: Can I have some feedback on this approach?
I'd say it doesn't make much sense to read xorg.conf. It's your active resolution that we're more interested in. Maybe xprop is appropriate?
ongardie@tablet:~$ xprop -root | grep ^_NET_DESKTOP_ GEOMETRY
returns:
_NET_DESKTOP_ GEOMETRY( CARDINAL) = 1024, 600
We could add some code to *try* xprop, and if we get some desktop geometry back from it, and that geometry is different from our defaults, we could add it to the dropdown.
Sebastien/Andrew: Can I have some feedback on this approach?