[xmonad] Problem with Multi-head setup

Bruce Stephens xmonad at cenderis.demon.co.uk
Mon Aug 24 18:07:19 EDT 2009


Eric Thomas <eric.l.m.thomas at gmail.com> writes:

> Thanks for your followup.
>
> What would be the correct way to set up the .xsession file?
> I am trying the following:
>
> exec /home/eric/bin/xmonad
> setenv DISPLAY=beryllium:0.1 exec /home/eric/bin/xmonad
>
> but the second display isn't loading xmonad correctly.

It won't, no.  The exec causes the shell to vanish (so the second xmonad
isn't seen at all).

Try something like

/home/eric/bin/xmonad &
setenv DISPLAY=beryllium:0.1 exec /home/eric/bin/xmonad

Presuming that works OK, you might want to start both instances in the
background and use wait (to wait for both) at the end of the script.  Or
some variant like that---I'm not sure what would be most convenient for
someone running two window managers.

[...]



More information about the xmonad mailing list