gtkmenuplus

gtkmenuplus - a menu generator for Linux

A better version of this programme can be found at: Gtkmenuplus extended

gtkmenuplus is derived from myGtkMenu.

When gtkmenuplus is executed (by clicking on a panel or desktop icon, or executing a keyboard shortcut), it reads a menu configuration file and from it creates a menu.

Like myGtkMenu, gtkmenuplus's menu configuration files determine, for each item in the menu:

  • the item's name
  • the icon (if any) associated with that name
  • the command to execute if the menu item is chosen
  • the submenu, if any, of which the item is part

gtkmenuplus adds the ability to

  • add tooltips to menu items and submenus
  • format (for colour, italic, bold, etc.) the text of a menu item, submenu title, a group of menu items, alternate menu items, and/or tooltips
  • format separate parts of the text of a menu item, submenu title or tooltip
  • cause an item to be disabled, so it acts as a section label rather than a menu item
  • conditionally include or exclude menu items or group of menu items (with nested if/then/else lines)
  • use the tilde to refer to your home directory as part of a file location (as part of a command to execute
  • specify a directory to which the path to all icons for subsequent menu items and submenus will be relative
  • include configuration files within others
  • define variables and parameters on the command line that can then be referred to in any subsequent line of the
    • configuration file
  • pipe input into gtkmenuplus via stdin
  • create menus from selections of files in a directory or a directory tree
  • accept a literal set of configuration lines on the command line

gtkmenuplus, like myGtkMenu, allows you to have as many menus as you want, each driven by its own menu configuration file, each associated with it's own launcher or keyboard shortcut.

gtkmenuplus requires the GTK+ libraries (version 2.4 or later).

gtkmenuplus works on Fedora 17, Ubuntu 11.10 and the Knoppix 7.0.4 live CD.

If gtkmenuplus does not work for you, try to recompile using the Makefile.

Latest version (1.00) of gtkmenuplus here.

It comes with a sample menu configuration file; a makefile; caseChanger; a menu and shell script to change the case of text in editable controls; ubuntu_stop_modes, a menu to stop, suspend, hibernate, lock screen, shutdown, restart; and usage instructions (as well rules for menu configuration files).

You can alter the default theme for all menus created using gtkmenuplus ...

By setting GTK2_RC_FILES to a theme when you run it with e.g.

#env GTK2_RC_FILES=~/.themes/ClearlooksLocal/gtk-2.0/gtkrc /usr/bin/myGtkPlus "$@"

Assuming /usr/bin is where you put gtkmenuplus.

Back to home