Hi,<br><br>I am trying to align a dzen2 bar to the right of my screen.<br>A dzen2 bar is aligned by giving an offset from the left side of the screen.<br>Since I have a single xmonad.hs for multiple computers, I would like to retrieve the width of the screen from XMonad.<br>

I found the following snippet online:<span><br>main</span> <span>=</span> <span>do</span><br>

     <span>(</span><span>_</span><span>,</span> <span>out</span><span>,</span> <span>_</span><span>,</span> <span>process_handle</span><span>)</span> <span>&lt;-</span> <span>runInteractiveCommand</span> 
                                 <span>&quot;echo WIDTH | eval m4 `xrdb -symbols`&quot;</span> <br>     ...<br>This does not seem really satisfactory.<br>I know this information is available from inside XMonad, probably in a ScreenDetail from XMonad.Core.<br>
<br>My question is: &quot;How can I retrieve this number from XMonad?&quot;<br><br>Another way look at that the question is: &quot;What is the best way to figure out things in XMonad?&quot;<br>I have a specific question, found a potential candidate in the documentation, and would like to experiment before changing my xmonad.hs.<br>
Is there a way to use ghci to look around?<br><br>Thanks.<br><br>