in reply to Getting screen resolution
If you really want to be portable, look at X11::Protocol:
I haven't been able to test this with Xinerama, but some variation on that theme should do the trick.use X11::Protocol; my $x = X11::Protocol->new(); print $x->{screens}->[0]->{width_in_pixels} . ' x ' . $x->{screens}->[0]->{height_in_pixels} . "\n";
|
|---|