I\'d like to know how many X screens the current machine has, to make my .xmonad a little more general; I have a netbook as well as a desktop with two monitors, and I use se
If you use the X11 package:
import Graphics.X11.Xinerama (getScreenInfo)
that will dynamically return a list of Rectangles, telling you how many screens, and their dimensions.
Rectangle