On 05/11/2010 05:09 PM, Thomas Adam wrote: > 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 ... > > Hey,
Thanks, that is close to what I want. But it also shows windows on other workspaces, which I do not want (that is just to many windows to tab through). I need some way to focus the other screen (or a window in it) of the current workspace. Something like Alt+(RightArrow|LeftArrow) gives focus to the according screen would be cool.
