[xmonad] Startup Arguments

Devin Mullins devin.mullins at gmail.com
Mon Oct 6 19:17:30 UTC 2014


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 <cwbell at mail.usf.edu> wrote:

> On Mon, Oct 6, 2014 at 12:53 PM, Brandon Allbery <allbery.b at gmail.com>
> 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 at haskell.org
> http://www.haskell.org/mailman/listinfo/xmonad
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20141006/ff95cfa0/attachment.html>


More information about the xmonad mailing list