
There's also XMonad.Layout.IndependentScreens.countScreens, which has the type (MonadIO m, Integral i) => m i for counting screens. I think a function like this is exposed in several other spots, too. ~d Excerpts from Devin Mullins's message of 2014-10-06 12:17:30 -0700:
Curious what code you tried. Something like this seems like it should work:
import Graphics.X11.Xinerama (getScreenInfo)
main = do dpy <- openDisplay "" screens <- getScreenInfo dpy let config = case length screens of 1 -> ... _ -> ... xmonad config
On Mon, Oct 6, 2014 at 10:55 AM, Chris Bell
wrote: On Mon, Oct 6, 2014 at 12:53 PM, Brandon Allbery
wrote: In the meantime, the trick used by e.g. Fedora's default xmonad configuration is environment variables.
Aha, that will do nicely. Thanks! And I agree, a --user-arg param would be convenient.
Regards,
Chris Bell
Ph.D. Student University of South Florida College of Engineering Department of Computer Science and Engineering NarMOS Research Team _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad