Re: [wmii] Dual-monitor setup

From: Dewey Hylton <dewey-wmii_AT_hyltown.com>
Date: Tue, 9 Oct 2007 13:50:50 -0400

Quoting Jakob <jakob_AT_pipefour.org>:

> I've had more than one request for my dual-monitor wmii configuration,
> so I thought I'd send it out to the list.
>
> Instead of using Xinerama or two completely different X sessions, I use
> a single X session with two screens. This allows you to natively move
> the cursor from monitor to monitor and share the clipboard between the
> two without having to use additional software like Synergy. I use a
> dual-output nVidia video card, though this method might/should work if
> you have two separate cards.
>
> Relevant xorg.conf sections:
>
> http://pipefour.org/wmii/xorg.conf
>
> This will allow you to start a single X session with two screens, :x.0
> and :x.1. So, if this is the first X session on the box, you can start
> programs on both :0.0 (the left monitor) and :0.1 (the right one).
>
> Then, to start two instances of wmii, I have this in my .xinitrc (or
> .xsession, depending on your system):
>
> DISPLAY=:0.0 wmii &
> DISPLAY=:0.1 exec wmii
>
> This can probably be made better so the :0 isn't hardcoded, and so the
> second instance isn't just exec'd. This means that if you exit the
> first session, the second wmii will still keep going. If you exit the
> second one, your entire X session dies regardless of the other wmii
> instance.
>
> I also have a slightly modified version of swarp to allow me to easily
> switch back and forth between my two monitors using hotkeys. In its
> current form, it only uses the current display, so I changed it to allow
> you to use -d to specify the display (again, this could be cleaned up):
>
> http://pipefour.org/wmii/swarp.c
>
> And then in my wmiirc:
>
> Key $MODKEY-Control-Shift-$RIGHT
> swarp -d :0.1 840 525
> Key $MODKEY-Control-Shift-$LEFT
> swarp -d :0.0 640 515
>
> Yes, those are the hard-coded coordinates of the center of each of my
> screens. If you find a better solution, please tell me :).
>
> As my original email said, there's a bug in the current wmii snap with
> focus after closing a window, so the focus consistently goes to the
> wrong monitor with my setup. If you find this to be too annoying, the
> previous snap (20070516) worked fine.
>
> Hope this helps,
> Jakob

thanks, this setup is GREAT for me. way better than with xinerama, where the
first window for a given tag is spit in the middle and too wide to use.

it'd be great if the above-mentioned bug were addressed; i suckmore at C, but am
going to take a peek anyway since the overall amount of code is relatively small.
Received on Tue Oct 09 2007 - 19:41:01 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:29:23 UTC