1 .TH "wmmenu" "1" "1.1" "Fabien COUTANT" "WMaker dockapp"
4 wmmenu \- A WindowMaker dockapp to launch programs with a popup pixmap menu
7 wmmenu [\fI<options>\fR] \fB\-m\fP \fI<MENUNAME>\fR
14 This is a "dock application" for Windowmaker, that provides a button bar to
15 launch applications from.
17 The bar opens automatically when either the mouse enters the button or you
18 click on it (this is configurable).
20 Multiple instances of the program can run at the same time: each one provides
21 a menu that it reads from a separate file, so you can have as many different
22 menus as you want (you can also display the same menu more than once if you
23 want; dunno what it's useful for...).
25 NOTE: options can take place before or after "\-m", as long as each option is
26 correctly paired with its corresponding argument (when it has one).
31 print a help message listing known options.
34 print version information
36 \fB\-g\fR \fIW\fP\fBx\fR\fIH\fP
37 force width and height of tile
39 \fB\-l\fR \fIXPMFILE\fP
40 set filename of the pixmap used to highlight icon under cursor
42 \fB\-t\fR \fIXPMFILE\fP
43 set filename of the pixmap used as button bar background.
44 XPMFILE may also be '!COMMAND' to execute COMMAND and get the pixmap name to use
48 bar is only triggered by clicks on the tile, not moves
51 disable automatic pixmap scaling to tile size
54 draw highlight pixmap behind icon, not above
57 set bar hiding timeout in ms. See hide_timeout description in Defaults.
60 set number of menu rows (default one)
62 Please note, that \fB\-l\fR, \fB\-t\fR and \fB\-O behind\fR options
63 can also be specified with another syntax in the \fBdefaults\fR file
64 (described hereafter).
66 This is a configuration file that defines things common to all instances
68 It is located in "~/.wmmenu/defaults".
71 The syntax is as follows:
73 # comment or empty lines are ignored
75 xpmpath PATH1:PATH2:...
83 # defines in which path to search for pixmaps
89 tile /SOME/PATH/TO/FILE.XPM
91 # defines pixmap used as background tile in menu bar
95 tile !some_command with arguments
97 # defines the command to call to get the pixmap name to be
98 # used: the name is read from its standard output.
99 # If the name read is empty, the internal default is used
106 highlight /SOME/PATH/TO/FILE.XPM
108 # defines pixmap used to highlight item under cursor
110 highlight_behind[ ANYTHING_NOT_EMPTY]
112 # (don't forget the separating space)
114 # request to draw highlight pixmap BEHIND icon,
118 # To be used if your pixmap is designed to cover most
124 # set the delay, in ms, necessary for the bar to close
126 # after the cursor has left wmmenu. 1 by default.
128 Those files each define a menu of their own.
129 Each menu file is located in "~/.wmmenu/\fI<MENUNAME>\fR";
130 The name of the file determines the name you must use on command\-line
134 The syntax is the following:
136 # comment and blank lines are ignored
138 "MENUICON.XPM" menu title
139 There is exactly one such line in each menu file,
140 and is the first significant line encountered.
141 It describes the menu name, which may be used by your window manager, and
142 the pixmap that is shown to trigger the menu.
143 The pixmap is specified using the same rules as the next item (read on).
145 "ICON.XPM" command arguments &
146 \fIICON.XPM\fR is an image filename or path.
147 It can be an absolute path (begins with "/"),
148 a path relative to wmmenu's current directory (contains a "/" but not at the beginning),
149 a path relative to home directory (starts with "~/"),
150 or a simple file name (searched through all defined xpmpath elements).
151 If you compiled wmmenu with gdk\-pixbuf support, the image can be any format
152 supported by this library (GIF, PNG, TIFF, JPEG, etc...);
153 Otherwise only XPM is supported.
155 \fIcommand\fR and \fIarguments\fR are run with the system(3) library call,
157 1/ you can use any shell tricks you want, and
158 2/ wmmenu waits for command completion, so for X11 programs you have to add
159 "\fB&\fR" at the end.
162 \fI~/.wmmenu/<MENUNAME>\fP
164 \fI~/.wmmenu/defaults\fP
165 .SH "ENVIRONMENT VARIABLES"
169 Specifies the home directory
172 I personally use the following command line:
174 wmmenu \-m apps \-r 3
177 If wmmenu was not compiled with gdk\-pixbuf support,
178 application icons larger than tile overlap over icons next to them.
179 With gdk\-pixbuf support turned on, images in this case are
180 automatically scaled down to fit to tile
181 (unless "\-O noautoscale" was specified).
183 There is some flicker when the mouse goes from the dockapp to the
184 menu bar. On fast displays this is not always apparent.
186 No editor is provided, to edit menu files.
187 However, editing by hand is not so difficult, and
188 menu files are automatically reloaded each time you save them.
189 You only have to restart wmmenu, if you change any setting in
190 the \fBdefaults\fR file.
193 Fabien COUTANT <fcoutant@freesurf.fr>