dockapps/wmmenu/wmmenu.1

197 lines
5.3 KiB
Groff
Raw Normal View History

.TH "wmmenu" "1" "1.1" "Fabien COUTANT" "WMaker dockapp"
.SH "NAME"
2015-01-24 18:05:45 +00:00
.LP
wmmenu \- A WindowMaker dockapp to launch programs with a popup pixmap menu
.SH "SYNTAX"
2015-01-24 18:05:45 +00:00
.LP
wmmenu [\fI<options>\fR] \fB\-m\fP \fI<MENUNAME>\fR
2015-01-24 18:05:45 +00:00
.br
wmmenu \fB\-v\fP
2015-01-24 18:05:45 +00:00
.br
wmmenu \fB\-h\fP
.SH "DESCRIPTION"
2015-01-24 18:05:45 +00:00
.LP
This is a "dock application" for Windowmaker, that provides a button bar to
launch applications from.
2015-01-24 18:05:45 +00:00
.LP
The bar opens automatically when either the mouse enters the button or you
click on it (this is configurable).
2015-01-24 18:05:45 +00:00
.LP
Multiple instances of the program can run at the same time: each one provides
a menu that it reads from a separate file, so you can have as many different
menus as you want (you can also display the same menu more than once if you
want; dunno what it's useful for...).
2015-01-24 18:05:45 +00:00
.LP
NOTE: options can take place before or after "\-m", as long as each option is
correctly paired with its corresponding argument (when it has one).
.SH "OPTIONS"
2015-01-24 18:05:45 +00:00
.LP
.TP
\fB\-h\fR
print a help message listing known options.
2015-01-24 18:05:45 +00:00
.TP
\fB\-v\fR
print version information
2015-01-24 18:05:45 +00:00
.TP
\fB\-g\fR \fIW\fP\fBx\fR\fIH\fP
force width and height of tile
2015-01-24 18:05:45 +00:00
.TP
\fB\-l\fR \fIXPMFILE\fP
set filename of the pixmap used to highlight icon under cursor
2015-01-24 18:05:45 +00:00
.TP
\fB\-t\fR \fIXPMFILE\fP
set filename of the pixmap used as button bar background.
XPMFILE may also be '!COMMAND' to execute COMMAND and get the pixmap name to use
from its output.
2015-01-24 18:05:45 +00:00
.TP
\fB\-O click\fR
bar is only triggered by clicks on the tile, not moves
2015-01-24 18:05:45 +00:00
.TP
\fB\-O noautoscale\fR
disable automatic pixmap scaling to tile size
2015-01-24 18:05:45 +00:00
.TP
\fB\-O behind\fR
draw highlight pixmap behind icon, not above
2015-01-24 18:05:45 +00:00
.TP
\fB\-O hide=\fIN\fR
set bar hiding timeout in ms. See hide_timeout description in Defaults.
2015-01-24 18:05:45 +00:00
.TP
\fB\-r\fR \fIROWS\fP
set number of menu rows (default one)
2015-01-24 18:05:45 +00:00
.LP
Please note, that \fB\-l\fR, \fB\-t\fR and \fB\-O behind\fR options
can also be specified with another syntax in the \fBdefaults\fR file
(described hereafter).
.SH "DEFAULTS FILE"
This is a configuration file that defines things common to all instances
of wmmenu.
It is located in "~/.wmmenu/defaults".
2015-01-24 18:05:45 +00:00
.LP
The syntax is as follows:
2015-01-24 18:05:45 +00:00
.LP
# comment or empty lines are ignored
2015-01-24 18:05:45 +00:00
.LP
xpmpath PATH1:PATH2:...
2015-01-24 18:05:45 +00:00
.br
xpmpath PATH3
2015-01-24 18:05:45 +00:00
.br
xpmpath PATH4
2015-01-24 18:05:45 +00:00
.br
...
2015-01-24 18:05:45 +00:00
.br
# defines in which path to search for pixmaps
2015-01-24 18:05:45 +00:00
.LP
tile FILE.XPM
2015-01-24 18:05:45 +00:00
.br
or
2015-01-24 18:05:45 +00:00
.br
tile /SOME/PATH/TO/FILE.XPM
2015-01-24 18:05:45 +00:00
.br
# defines pixmap used as background tile in menu bar
2015-01-24 18:05:45 +00:00
.br
or
2015-01-24 18:05:45 +00:00
.br
tile !some_command with arguments
2015-01-24 18:05:45 +00:00
.br
# defines the command to call to get the pixmap name to be
# used: the name is read from its standard output.
# If the name read is empty, the internal default is used
# instead.
2015-01-24 18:05:45 +00:00
.LP
highlight FILE.XPM
2015-01-24 18:05:45 +00:00
.br
or
2015-01-24 18:05:45 +00:00
.br
highlight /SOME/PATH/TO/FILE.XPM
2015-01-24 18:05:45 +00:00
.br
# defines pixmap used to highlight item under cursor
2015-01-24 18:05:45 +00:00
.LP
highlight_behind[ ANYTHING_NOT_EMPTY]
2015-01-24 18:05:45 +00:00
.br
# (don't forget the separating space)
2015-01-24 18:05:45 +00:00
.br
# request to draw highlight pixmap BEHIND icon,
2015-01-24 18:05:45 +00:00
.br
# no more in front.
2015-01-24 18:05:45 +00:00
.br
# To be used if your pixmap is designed to cover most
2015-01-24 18:05:45 +00:00
.br
# of tile's surface
2015-01-24 18:05:45 +00:00
.LP
hide_timeout MS
2015-01-24 18:05:45 +00:00
.br
# set the delay, in ms, necessary for the bar to close
2015-01-24 18:05:45 +00:00
.br
# after the cursor has left wmmenu. 1 by default.
.SH "MENU FILES"
Those files each define a menu of their own.
Each menu file is located in "~/.wmmenu/\fI<MENUNAME>\fR";
The name of the file determines the name you must use on command\-line
to call it.
2015-01-24 18:05:45 +00:00
.LP
The syntax is the following:
2015-01-24 18:05:45 +00:00
.LP
# comment and blank lines are ignored
2015-01-24 18:05:45 +00:00
.TP
"MENUICON.XPM" menu title
There is exactly one such line in each menu file,
and is the first significant line encountered.
It describes the menu name, which may be used by your window manager, and
the pixmap that is shown to trigger the menu.
The pixmap is specified using the same rules as the next item (read on).
2015-01-24 18:05:45 +00:00
.TP
"ICON.XPM" command arguments &
\fIICON.XPM\fR is an image filename or path.
It can be an absolute path (begins with "/"),
a path relative to wmmenu's current directory (contains a "/" but not at the beginning),
a path relative to home directory (starts with "~/"),
or a simple file name (searched through all defined xpmpath elements).
If you compiled wmmenu with gdk\-pixbuf support, the image can be any format
supported by this library (GIF, PNG, TIFF, JPEG, etc...);
Otherwise only XPM is supported.
2015-01-24 18:05:45 +00:00
.br
\fIcommand\fR and \fIarguments\fR are run with the system(3) library call,
hence:
1/ you can use any shell tricks you want, and
2/ wmmenu waits for command completion, so for X11 programs you have to add
"\fB&\fR" at the end.
.SH "FILES"
2015-01-24 18:05:45 +00:00
.LP
\fI~/.wmmenu/<MENUNAME>\fP
.br
\fI~/.wmmenu/defaults\fP
.SH "ENVIRONMENT VARIABLES"
2015-01-24 18:05:45 +00:00
.LP
.TP
\fBHOME\fP
Specifies the home directory
.SH "EXAMPLES"
2015-01-24 18:05:45 +00:00
.LP
I personally use the following command line:
2015-01-24 18:05:45 +00:00
.LP
wmmenu \-m apps \-r 3
.SH "BUGS"
2015-01-24 18:05:45 +00:00
.LP
If wmmenu was not compiled with gdk\-pixbuf support,
application icons larger than tile overlap over icons next to them.
With gdk\-pixbuf support turned on, images in this case are
automatically scaled down to fit to tile
(unless "\-O noautoscale" was specified).
2015-01-24 18:05:45 +00:00
.LP
There is some flicker when the mouse goes from the dockapp to the
menu bar. On fast displays this is not always apparent.
2015-01-24 18:05:45 +00:00
.LP
No editor is provided, to edit menu files.
However, editing by hand is not so difficult, and
menu files are automatically reloaded each time you save them.
You only have to restart wmmenu, if you change any setting in
the \fBdefaults\fR file.
.SH "AUTHORS"
2015-01-24 18:05:45 +00:00
.LP
Fabien COUTANT <fcoutant@freesurf.fr>
.SH "SEE ALSO"
2015-01-24 18:05:45 +00:00
.LP
rox\-menu, wmaker