Erez,

You can write the following program:


for (int count = 1; count <= argc; count ++) {
  Display *dpy;
  int i;
  dpy = XOpenDisplay(argv[count])
  i = XScreenCount(dpy);
  printf("You have %d screens\n", i);
  XCloseDisplay(dpy);
}

Its a quick and dirty code from my memory (haven't tried it). that counts
for each given display string in the command line.

Ido

http://ik.homelinux.org/


On Thu, Dec 31, 2009 at 11:57 AM, Erez D <erez0...@gmail.com> wrote:

> hi
>
> i have a computer with multiple display adapters, and each may have
> multiple X servers. each X server may have multiple screens.
>
>
>
> how can i get a list of all the screens i have ?
>
>
> thanks,
> erez.
>
> _______________________________________________
> Linux-il mailing list
> Linux-il@cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
_______________________________________________
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to