Re: FVWM: add to root menu
On 03 Apr 2006 17:08:35 -0400, Wendell Turner wrote: On Sun, Apr 02, 2006 at 09:11:38PM +, Mikhael Goikhman wrote: On 31 Mar 2006 17:47:16 -0500, Wendell Turner wrote: Is there an easy way to add a custom entry to the beginning of the root menu? The general answer is no, there is no easy way to prepend to menus. Maybe in the future. If you tell us which setup you use, Here are the main elements: fvwm 2.5.15 (from cvs) compiled on Sep 28 2005 at 21:19:57 fvwm-themes-0.7.0-2 from rpm Maybe in the future fvwm-themes will allow to prepend to root menu. then it is possible to try to solve your needs in one or another way. There are several solutions: Read after AddToMenu (reading optional user-or-system-defined file with plus prefixed top menu items); You mean that there are options to the AddToMenu function? No. Read and AddToMenu are both fvwm commands, not functions. Regards, Mikhael.
Re: FVWM: add to root menu
On Fri, 31 Mar 2006, Wendell Turner wrote: Is there an easy way to add a custom entry to the beginning of the root menu? In my .fvm2rc (I'm almost the only one FVWM user in a mainly KDE place), which is based on the one distributed with Suse 9.2, I've done something slightly beyond i.e. - I have a quite short root menu of my own - which includes as submenu a list of some original menus - of which the first is the original root menu On my system the root menu has key and mouse bindings under the name WORK_MENU_popup, so what I have done is to edit its entry as AddToMenu WORK_MENU_popup My Work Menu Title (1) + Nop (2) + X Terminal Exec xterm(3) ... list of some of my own applications (3) + Nop (2) + Old menus Popup OLD_MENU_popup (4) ... list of my own screensaver, restart, quit (3) (1) just changed the mnemonic name in quotes (2) separators (3) added entirely by me (4) invocation of old stuff Then I added a new menu like this AddToMenu OLD_MENU_popup Old Menus Title + Old root menu Popup OLD_WORK_MENU_popup + WindowManager Popup THISWM_MENU_popup + SUSE Popup xdg_menu and then I have the original menus unchanged where I renamed the popup name in the first line, e.g. AddToMenu OLD_WORK_MENU_popup Work Menu Title
Re: FVWM: add to root menu
On 31 Mar 2006 17:47:16 -0500, Wendell Turner wrote: Is there an easy way to add a custom entry to the beginning of the root menu? I see references to main-menu-pre.hook, but it looks like that is a Debian invention, not something in the stock fvwm/fvwm-themes. Would Piperead work for this? I don't really want to change the entire root menu, just add my own at the beginning. Also, it would be nice to do this system-wide, not just to my own account. I've made my own custom rpm with my very own theme in it to accomplish this (which worked ok), but that seemed to cumbersome for just one menu entry. The general answer is no, there is no easy way to prepend to menus. Maybe in the future. If you tell us which setup you use, then it is possible to try to solve your needs in one or another way. There are several solutions: Read after AddToMenu (reading optional user-or-system-defined file with plus prefixed top menu items); calling a function (to be redefined by a user) after AddToMenu; PipeRead with external script to create the whole menu. Regards, Mikhael.
FVWM: add to root menu
Is there an easy way to add a custom entry to the beginning of the root menu? I see references to main-menu-pre.hook, but it looks like that is a Debian invention, not something in the stock fvwm/fvwm-themes. Would Piperead work for this? I don't really want to change the entire root menu, just add my own at the beginning. Also, it would be nice to do this system-wide, not just to my own account. I've made my own custom rpm with my very own theme in it to accomplish this (which worked ok), but that seemed to cumbersome for just one menu entry. Thanks, Wendell