Re: FVWM: Q: Dynamic Bind of Menu Items to Keys?

From: Dan Espen <dane_at_mk.telcordia.com>
Date: Mon, 26 Apr 1999 22:03:13 -0400

David Forrest <drf5n_at_bootp-6-214.bootp.virginia.edu> writes:
> Dear Sir or Madam,
> Is there a way to dynamically bind menu items to keys? For example I
> have
> Key Escape A C Menu RootMenu Nop
> Key Escape A CS WindowList
>
> AddToMenu RootMenu "Root Menu" Title
> + "XTerm" Exec exec xterm
> + "Rxvt" Exec exec rxvt
>
> in my .fvwm2rc and can hit C-S-Escape and then '3' to get the third window
> on the list. Is there a way to make the items in my RootMenu happen if I
> do something like:
>
> C-Escape X >>> do the Xterm item
> C-Escape R >>> do the Rxvt item
>
> I tried to find it in the RTFM, but I could not, I would expect it to be
> in the AddToMenu section of the man page as something like:
>
> If the menu-label contains an ampersand character '&' then the character
> following the ampersand will activate the menu item. Case is disregarded,
> and if two or more instances of the character are selected, then the
> selection cycles between the items, and 'enter' is used to select the
> item. The menu will display the item with the letter underlined. For
> Example
>
> AddToMenu RootMenu "Root Menu" Title
> + "&Calculator*xcalc.xpm*" Exec xcalc
> + "&Concentration" Exec concentration
> + "X&term" Exec xterm
>
> Is there a way to do this that I was unable to find?

You don't mention the release you are using, I'm going to assume you
are using 2.2. Eaarlier releases could be different.

The way you did it is correct, except that fvwm2 does not like
2 menu entries with the same hot key, one of them will be ignored.

Check the man page for the term "hotkey".

> Thanks in advance for your time,
>
> Dave.
> --

--
Dan Espen
444 Hoes Lane  Room RRC 1C-214           E-mail: dane_at_mk.telcordia.com
Piscataway, NJ 08854                     Phone: (732) 699-5570
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Mon Apr 26 1999 - 21:05:01 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:02 BST