Whim Menu
Whim Menu/Launcher
Quick link to the latest whim-menu [1]
Current Version 0.13 updated November 22, 2005
The prefered way to use whim-menu is to add this to your .whim_config
after 500 {source [auto_execok whim-menu.tcl]}It must be sourced to have the commands/applet launchers/etc that are internal to whim.
The configuration file name is ~/.whim_menu . The following is an example file:
set menuopts(unmap_delay) 1000 set menuopts(click_to_open) 0 set menuopts(use_tile) 1 set menuopts(tile_theme) sriv set menuopts(auto_read_config) 1 set commands(xterm) "xterm -fg orange -bg black" set commands(Favorites/Firefox) "artsdsp browser" set commands(Favorites/Thunderbird) "artsdsp thunderbird" set commands(Favorites/Tkabber) "artsdsp tkabber.kit" set commands(Favorites/Identcl) "identcl.kit" set commands(Favorites/TclDocs) "tcl85dok.kit" set commands(Favorites/OpenOffice) "soffice" set commands(Favorites/Petcler) "petcler.kit" set commands(Favorites/VmWare) "artsdsp vmware" set commands(Favorites/Xmms) "artsdsp xmms" set commands(Favorites/URLS/slashdot) "artsdsp browser http://slashdot.org" set commands(Favorites/URLS/tcl\ wikit) "artsdsp browser http://mini.net/tcl/" set commands(Development/HelpBrowser) "dgHelpBrowser.kit" set commands(Development/Identcl) "identcl.kit" set commands(Development/kHexEdit) "khexedit" set commands(Development/tcl84dok) "tcl84dok.kit" set commands(Development/tcl85dok) "tcl85dok.kit" set commands(Development/tkcon) "tkcon.tcl" set commands(Development/tkcvs) "tkcvs.kit" set commands(Development/tkinspect) "tkinspect.kit"
You can continue to nest sub-levels by separating them with a / in the array key. The menuopts at the top are shown with default values. If the app is sourced into whim, the use_tile and tile_theme are ignored, whim-menu will follow the current Whim configuration. If it is run standalone, it will look for tile.kit or tile07.kit to be in your path, if it isnt, it will fallback to Tk mode.
Whim-menu can now be edited and sourced again into whim without having to restart Whim.
Whim-menu will now check for changes to ~/.whim_config every two seconds and reload itself automatically. If you do not want this set menuopts(auto_read_config) to 0 in your ~/.menu_config.