RATMENU(1) | General Commands Manual | RATMENU(1) |
ratmenu - create a menu to run commands
ratmenu [ -display displayname ] [ -font fname ] [ -fg foreground-color ] [ -bg background-color ] [ -io item-offset ] [ -label name ] [ -shell prog ] [ -align {left|center|right} ] [ -style {snazzy|dreary} ] [ -persist ] [ -version ] [ menuitem command ] ...
ratmenu is a simple program that accepts a list of menu item and command pairs on the command line. It creates a window that consists of nothing but a menu. When a particular item is selected, the corresponding command is executed.
ratmenu does not recognize any usage of the rodent. It is entirely keystroke operated.
Menu items must be followed by a command. The syntax is based on that of the dialog program.
ratmenu accepts the following command line options.
The Up keystrokes move the selection to the next item up. The Down keystrokes move the selection to the next item down. When the selection reaches the top or bottom, it scrolls around to the other side on pressing of the appropriate keystroke. The Select keystrokes execute the command corresponding to the currently selected menu item, and exit ratmenu. The Exit keystrokes quit ratmenu without doing anything.
You can configure some items using xrdb to load appropriate X resources. There is an example configuration in the file /usr/share/doc/ratmenu/Xresources.ratmenu which shows all possible configuration items. Give it a look; it is fairly easy to figure out.
ratmenu -label "Remotes xterm" acme "rsh acme xterm" herman "rsh herman 9term" & ratmenu -label 'X progs' ghostview ghostview xdvi xdvi xeyes xeyes xneko xneko & ratmenu -back ~/bin/mypreviousmenu "X Eyes" xeyes &
ratpoison(1), ratpoisonrc(5), dialog(1) xrdb(1)
Ratpoison Desktop Users Manual.
The initial idea for this program was by Arnold Robbins, after having worked with John Mackin's GWM Blit emulation. Matty Farrow wrote a version using libXg, from which some ideas were borrowed. This code was written by David Hogan and Arnold Robbins. Rich Salz motivated the -shell option. Jonathan Walther modified this code to play nicely with the ratpoison window manager by removing handling of mouse events and iconification. Zrajm C Akfohg made many improvements in his ratmen fork, including X resource handling, some of which were folded back in.
Oct 10 2001 | Ratpoison Desktop For X |