wmmenu: Remove trailing whitespace.

This commit is contained in:
Doug Torrance 2015-01-24 12:05:45 -06:00 committed by Carlos R. Mafra
parent 0a64f9e23d
commit adcf7d75f2
3 changed files with 68 additions and 68 deletions

View file

@ -49,7 +49,7 @@ diff -ru libdockapp-0.4.0.orig/src/damain.c libdockapp-0.4.0/src/damain.c
- classHint->res_class = "DockApp"; - classHint->res_class = "DockApp";
+ classHint->res_class = name; + classHint->res_class = name;
classHint->res_name = name; classHint->res_name = name;
XSetClassHint(DADisplay, DALeader, classHint); XSetClassHint(DADisplay, DALeader, classHint);
======================================================================== ========================================================================
@ -244,7 +244,7 @@ STATUS
When using the gdk-pixbuf enabled version, pixmaps larger than tile When using the gdk-pixbuf enabled version, pixmaps larger than tile
(either the tile pixmap itself, or the size specified on command (either the tile pixmap itself, or the size specified on command
line) are automatically scaled to fit within the requested size. line) are automatically scaled to fit within the requested size.
This affects the dock icon, tile, highlight and application icons. This affects the dock icon, tile, highlight and application icons.
If you like pixmaps overriding each other (gasp!), this can be If you like pixmaps overriding each other (gasp!), this can be
disabled with "-O noautoscale". disabled with "-O noautoscale".

View file

@ -215,7 +215,7 @@ extern void ButtonBar_Unhighlight (void)
int x, y, h ; int x, y, h ;
if (HighlightImage == 0 || OldPos < 0) return ; if (HighlightImage == 0 || OldPos < 0) return ;
h = Menu_GetNbRows () ; h = Menu_GetNbRows () ;
x = (OldPos / h) * TileXSize ; x = (OldPos / h) * TileXSize ;
y = (OldPos % h) * TileYSize ; y = (OldPos % h) * TileYSize ;

View file

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