Re: menus (was Re: proposal for limiting menu icons color and size)
On 12 Mar 1997, Kenneth MacDonald wrote:
>> To be honest, I've found it fairly trivial to integrate the Debian menus
>> into an existing .fvwmrc. An m4 "include" in the right place and one extra
>> menu definition gives me a "Debian" submenu without affecting the rest of
>> my horribly-hacked fvwm setup.
>>
>> [snip]
>
>Could you send me an example of this? I'll add it to the fvwm95
>documentation.
OK, here are the relevant bits. This comes from something that was, back
in the mists of time, a fairly standard fvwmrc. Then the wiles of m4 took
me :-) . Of course, it will need fiddling with to be useful for
fvwm2/95...
##############################################################################
#now define the menus - defer bindings until later
#add the Debian automatically-generated menus... - needs a "MainMenu" entry
#in the main menu...
include(`/etc/X11/fvwm/menudefs.hook')
[definitions for lots of other Popups, now to the main menu]
# This menu will fire up some very common utilities
Popup "Utilities"
Title "Hammer Menu"
Exec "Shell" exec xterm &
Exec "Dos In A Box" exec xdos &
Exec "Pine" exec xterm -ut -geometry 80x50 -T Pine -n PINE -e pine &
Exec "Trn" exec xterm -ut -geometry 80x50 -T Trn -n TRN -e trn4 &
Nop ""
Popup "Utilities" Utils
Popup "Applications" Local-Apps
Nop ""
Popup "Debian" MainMenu
Nop ""
Popup "Fvwm" Quit-Verify
Popup "Modules" Module-Popup
Refresh "Refresh screen"
Nop ""
Nop ""
Quit "Logout"
EndPopup
--
Steve McIntyre, CURS Secretary, Cambridge, UK. stevem@chiark.greenend.org.uk
<a href=http://hammer.chu.cam.ac.uk/~sam1007/curs/>CURS home page</a>
"Can't keep my eyes from the circling sky, +------------------
"Tongue-tied & twisted, Just an earth-bound misfit, I..." |Finger for PGP key
Reply to: