
Hi, I run Xmonad on my laptop, where I sometimes have multiple displays (when I'm at my desk). As a result, I have two Xmonad configs - one for a single screen, and one for two screens, which spawns extra copies of some programs (xmobar, for example). However, to keep everything playing nice, I have to manually swap out the config each time I switch my monitor setup by editing my xmonad.hs. I tried adding code to use xrandr to detect how many screens are active, and execute the function accordingly, but this just caused my X session to break. My xinitrc script knows how many monitors are active, but I don't know how to pass that to Xmonad on startup. Is there a facility to pass arguments to Xmonad at startup from xinitrc? Or did I simply miss something in the documentation? Thanks! Chris Bell Ph.D. Student University of South Florida College of Engineering Department of Computer Science and Engineering NarMOS Research Team