On Tue, May 11, 2010 at 09:52:14PM +0100, Thomas Adam wrote: > On Tue, May 11, 2010 at 04:30:51PM -0400, Nathan H?sken wrote: > > Hi, > > > > I have a dual screen fvwm setup (xinerama). With Alt-Tab I switch > > between windows in the current screen. Which function do I have to bind > > to a keyboard shortcut to switch the screen (focus a window on the other > > screen)? > > Any function you like: > > DestroyFunc foo > AddToFunc foo > + I Next ($0, !CurrentScreen, CirculateHit, AcceptsFocus) Focus > > Then you can bind it as: > > Key a A M foo XTerm > Key b A M foo ELinks > Key c A M foo XTeddy > > Where, in this example "XTerm", "ELinks and "Xteddy" are examples of > programs you wish to focus which aren't on the current screen. > > Of course, change the command "Focus" to anything you like, even another > function which perhaps does: > > DestroyFunc FocusWindow > AddToFunc FocusWindow > + I Focus > + I WarpToWindow 5p 5p
Alternatively, if you did mean via the WindowList, then of course this is easy to do -- overriding WindowListFunc, as in: WindowList (!CurrentScreen) DestroyFunc WindowListFunc AddToFunc WindowListFunc + I ... + I ... -- Thomas Adam -- "It was the cruelest game I've ever played and it's played inside my head." -- "Hush The Warmth", Gorky's Zygotic Mynci.