Hi,

I've finally got around to port my beloved configuration (as described
in http://ezine.daemonnews.org/199902/fvwm.html plus some newer
developments) from fvwm1 to fvwm2 and in progress I've done I thing
that I think may be worthy inclusion into some of the sample configuration
files. 

It's a Windows-like implementation of Alt-Tab: when pressing Alt-Tab
once at a time, the focus will alternate between two windows, when
pressing Alt-Tab multiple times the focus will switch sequentially
between windows. The implementation is:

AddToFunc SetFocus
    + I WindowId $0 Focus
    + I FlipFocus 
    + I WindowList Root c c NoGeometry SelectOnRelease Alt_L CurrentDesk

AddToFunc PrevNext
    + I Next (CurrentDesk AcceptsFocus) Function SetFocus $w

AddToFunc TabForward
    + I Prev (CurrentDesk AcceptsFocus) Function PrevNext

Key Tab     A   M   Function TabForward


The idea in a nutshell is that the new window is taken from the
bottom of the list and brought to the top, and the old current window
is sent to the bottom of the list. So when WindowList is called, the
window at the top of the list (the default choice) is already the new one,
and you don't have to press Tab again to get to the next window.
And since normally the windows at the top and the bottom are exchanged,
pressing Alt-Tab once at a time will alternate between them.

-SB
--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to