[xmonad] Retrieving screen resolution + ghci for XMonad

wagnerdm at seas.upenn.edu wagnerdm at seas.upenn.edu
Mon Apr 2 22:06:58 CEST 2012

Quoting Nicolas Dudebout <nicolas.dudebout at gatech.edu>:

> I would like to test the function `getScreenInfo`, but its input is a
> `Display` which I have no idea where to find.

You may get a Display from openDisplay:

> Is there any way to use the building blocks of XMonad in ghci for example?

It may be a bit tricky to play around with the building blocks of  
xmonad in ghci, because it's generally not a good idea to have two  
window managers running at once. However, if you really want to do  
this, you may at your own risk open up ghci, import XMonad, and be on  
your way. If you find that there are some functions you wish you had,  
but which are not exported by the appropriate library, you may  
navigate to your xmonad source directory and use ':l *XMonad' (or  
similar, with other module names) in ghci to bring all functions into  


More information about the xmonad mailing list