|Set the background color to background-color. By default, the background color is white.|
|Use the X display displayname, instead of the default display.|
|Read items to display from filename, in addition to any other command line arguments. This is intended for use with #! in scripts.|
|Set the foreground color to foreground-color. By default, the foreground color is black.|
|Use the font fname, instead of fixed.|
|Use geom (a geometry in standard X format) as the geometry of the menu. This is most useful for specifying the initial location of the menu. Note that larsmenu overrides the size part of the geometry specification. The window is always just large enough to hold the menu.|
|-iconic||Start up in the iconified state.|
|Change both the window and icon labels of the window to name.|
|-path||Append the current directory to the command search path.|
|-popdown||Once an item is selected, the menu window automatically iconifies itself.|
|-popup||Act like a pop-up menu. Once a menu item is selected, larsmenu exits. This option overrides -popdown.|
|Use prog as the shell to run commands, instead of /bin/sh. If the shell cannot be executed, larsmenu then silently falls back to using /bin/sh.|
|Move the menu to where the mouse is when the menu is uniconified. This option is particularly useful when combined with -popdown.|
|-version||This option prints the version of larsmenu on the standard output, and then exits with an exit value of zero.|
|-warp||Warp the mouse to the menu when the menu is uniconified. After the selection is made, restore the mouse to where it was. This option is particularly useful when combined with -popdown.|
larsmenu -popup "XTerm:xterm" "Calculator:xcalc"
This is a modified version of 9menu, which has this license:
9menu is free software, and is Copyright (c) 1994 by David Hogan and Arnold Robbins. Permission is granted to all sentient beings to use this software, to make copies of it, and to distribute those copies, provided that:
(1) the copyright and licence notices are left intact
(2) the recipients are aware that it is free software
(3) any unapproved changes in functionality are either
(i) only distributed as patches
or (ii) distributed as a new program which is not called 9menu and whose documentation gives credit where it is due
(4) the authors are not held responsible for any defects
or shortcomings in the software, or damages caused by it.
There is no warranty for this software. Have a nice day.
Please consider my code to be under the same type of license as 9menu, inserting my name where appropriate.
larsmenu was created by Lars Bernhardsson <email@example.com> by building on 9menu by David Hogan and Arnold Robbins.