Re: FVWM: function definition?

From: John Palmieri <palmieri_at_math.mit.edu>
Date: 16 Oct 1996 10:15:19 -0400

I recently posted the following question:

> I am new to using fvwm. I'm quite pleased with it, except I find that
> I want a function that does the following:
>
> if an xdvi window is visible, then switch to an emacs window (via
> 'Next [Emacs] Focus', for instance)
> if an emacs window is visible, then switch to an xdvi window
> if neither is visible, switch to an emacs window

A friend made the following suggestion:

  Key F12 A A Function EmacsXdvi

  AddToFunc EmacsXdvi
  + "I" Function GoToEmacs
  + "I" Key F12 A A XdviEmacs

  AddToFunc XdviEmacs
  + "I" Function GoToXdvi
  + "I" Key F12 A A EmacsXdvi

This works, but it has the following disadvantages: I don't know how
to bind a button (as in FvwmButtons) to behave similarly, and this
business is annoying if I want to bind several different keys to this
same thing (I'm not using F11-F20 for anything, so rather than bind
one of them and try to remember which one, I thought I might bind a
lot of them to do this).

Any suggestions for improvements?

                John Palmieri
                palmieri_at_math.mit.edu
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Wed Oct 16 1996 - 09:15:31 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:59 BST