Re: [wmii] Dual-monitor setup

From: sqweek <sqweek_AT_gmail.com>
Date: Thu, 18 Oct 2007 21:24:55 +0800

 Something ancient like 3.1. See /tag/sel/index for the relevant
information in recent versions.
-sqweek

On 10/18/07, Joseph Xu <josephzxu_AT_gmail.com> wrote:
> What version of wmii is this? I don't have the /view/ directory or the
> geom files.
>
> On 10/8/07, dragan dimitrijevic <dragandm_AT_gmail.com> wrote:
> > This may not apply to your version of wmii but you can use the same
> > principle:
> >
> > address=unix!/tmp/ns.$USER.:0.$display/wmii
> > view=`wmiir -a $address read /view/name`
> > x=`wmiir -a $address read /$view/sel/sel/geom | awk '{ print $1}'`
> > y=`wmiir -a $address read /$view/sel/sel/geom | awk '{ print $2}'`
> > DISPLAY=:0.$display wmiiwarp $x $y
> >
> > Moving from one screen to the other will warp the mouse to the last selected
> > window.
> >
> >
> >
> >
> > On 10/7/07, Jakob <jakob_AT_pipefour.org> wrote:
> > > 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
> > >
> > >
> >
> >
>
>
Received on Thu Oct 18 2007 - 15:24:56 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:30:10 UTC