2012-08-20 08:02:36 +00:00
|
|
|
wmbutton Ver. 0 Rel 6.1
|
|
|
|
-------------------------------------------------------------
|
|
|
|
Code is based on wmppp, wmload, wmtime, wmcp, and asbutton
|
|
|
|
Author: Edward H. Flora <ehf_dockapps@cox.net>
|
|
|
|
This version is released by:
|
|
|
|
Christian 'Greek0' Aichinger <Greek0@gmx.net>
|
|
|
|
Ver 0 Rel 6.1 Jan 23, 2005
|
|
|
|
|
|
|
|
DESCRIPTION:
|
|
|
|
------------
|
|
|
|
wmbutton is a simple application launching program that sits in the
|
|
|
|
dock in WindowMaker, can be swallowed by Wharf in Afterstep, and
|
|
|
|
should be fairly configurable.
|
|
|
|
|
|
|
|
LICENSING:
|
|
|
|
----------
|
|
|
|
This program is released under the GPL license. A copy (in case you
|
|
|
|
don't already have hundreds of them floating around) can be found in
|
|
|
|
this distribution in the file COPYING
|
|
|
|
|
|
|
|
CONTRIBUTORS:
|
|
|
|
-------------
|
|
|
|
Christian 'Greek0' Aichinger <Greek0@gmx.net>
|
|
|
|
Did some code cleanup and fixed several memory leaks.
|
|
|
|
Ralf Horstmann <ralf.horstmann@gmx.de>
|
|
|
|
Added ability to load pixmaps at startup,
|
|
|
|
without having to re-compile
|
2014-10-05 15:29:59 +00:00
|
|
|
Michael Cohrs <camico@users.sourceforge.net>
|
2012-08-20 08:02:36 +00:00
|
|
|
Added Tool Tips, and updated graphics
|
|
|
|
Bruno Essmann <essmann@users.sourceforge.net>)
|
|
|
|
Creator of wmpager
|
|
|
|
Ben Cohen <buddog@aztec.asu.edu>
|
|
|
|
original author of wmcp (et al.)
|
|
|
|
Thomas Nemeth <tnemeth@multimania.com>
|
|
|
|
contributor to wmcp
|
2014-10-05 15:29:59 +00:00
|
|
|
Casey Harkins <charkins@cs.wisc.edu>
|
2012-08-20 08:02:36 +00:00
|
|
|
Bug fix reading config file path - 3/6/99
|
|
|
|
Added button-presses, and other - denoted by *charkins*
|
|
|
|
Michael Henderson <mghenderson@lanl.gov>
|
|
|
|
Application ideas, suggestions
|
2014-10-05 15:29:59 +00:00
|
|
|
Ryan ?? <pancake@mindspring.com>
|
2012-08-20 08:02:36 +00:00
|
|
|
Modified wmbutton to asbutton.
|
2014-10-05 15:29:59 +00:00
|
|
|
Note: asbutton is a seperate program, not associated
|
2012-08-20 08:02:36 +00:00
|
|
|
with wmbutton (just as wmbutton is not associated
|
|
|
|
with wmcp)
|
|
|
|
Jon Bruno
|
|
|
|
Web Page Development
|
2014-10-05 15:29:59 +00:00
|
|
|
The contributors listed above are not necessarily involved with the
|
|
|
|
development of wmbutton. I'm listing them here partially as thanks for
|
2012-08-20 08:02:36 +00:00
|
|
|
helping out, catching bugs in the code, etc.
|
|
|
|
|
|
|
|
INSTALLATION:
|
|
|
|
-------------
|
2014-10-05 15:29:59 +00:00
|
|
|
Untar the file:
|
2012-08-20 08:11:25 +00:00
|
|
|
tar xvzf wmbutton-0.6.1.tar.gz
|
2012-08-20 08:02:36 +00:00
|
|
|
|
2014-10-05 15:29:59 +00:00
|
|
|
CD to source directory:
|
2012-08-20 08:11:25 +00:00
|
|
|
cd wmbutton-0.6.1
|
2012-08-20 08:02:36 +00:00
|
|
|
|
|
|
|
Edit background xpm, and buttons.xpm to your preferences
|
|
|
|
There are icon files in ./icons to work from
|
|
|
|
|
|
|
|
Compile it:
|
|
|
|
make clean; make
|
|
|
|
|
|
|
|
Copy the config file:
|
|
|
|
cp .wmbutton ~
|
|
|
|
|
|
|
|
Put the executable somewhere in your path:
|
|
|
|
mv wmbutton /usr/local/bin (or anyhere in your path)
|
2014-10-05 15:29:59 +00:00
|
|
|
|
2012-08-20 08:02:36 +00:00
|
|
|
Run it:
|
|
|
|
wmbutton &
|
|
|
|
|
2014-10-05 15:29:59 +00:00
|
|
|
Grab the appicon and move it to the dock.
|
2012-08-20 08:02:36 +00:00
|
|
|
Change the settings to start with Windowmaker
|
|
|
|
|
|
|
|
Afterstep Wharf 1.6.??:
|
|
|
|
*Wharf wmbutton -Swallow "wmbutton" wmbutton &
|
|
|
|
|
2014-10-05 15:29:59 +00:00
|
|
|
***Note***:
|
|
|
|
The appicon has only a two pixel border where you can grab
|
2012-08-20 08:02:36 +00:00
|
|
|
and move it.
|
|
|
|
|
2014-10-05 15:29:59 +00:00
|
|
|
If make doesn't work, you may need to fiddle with the settings in
|
2012-08-20 08:02:36 +00:00
|
|
|
the Makefile.
|
|
|
|
|
|
|
|
Tested on: (Well, it runs, I don't know if 'Tested' is quite right...)
|
|
|
|
WindowMaker-0.80.1
|
|
|
|
Afterstep 1.6.?
|
|
|
|
Fluxbox 0.9.9
|
|
|
|
Clients: Red Hat 8.x, Kernel 2.4.18
|
|
|
|
|
|
|
|
|
|
|
|
USAGE:
|
|
|
|
------
|
2014-10-05 15:29:59 +00:00
|
|
|
wmbutton [-g geom] [-d dpy] [-f cfgfile] [-b btnfile] [-F <font>]
|
2012-08-20 08:02:36 +00:00
|
|
|
[-v] [-s] [-n]
|
|
|
|
|
|
|
|
wmbutton Ver 0 Rel 6.1
|
|
|
|
|
|
|
|
-g <geometry> Window Geometry - ie: 64x64+10+10
|
|
|
|
-d <display> Display - ie: 127.0.0.1:0.0
|
|
|
|
-f <filename> Full path to configuration file.
|
|
|
|
-b <filename> Full path to button xpm.
|
|
|
|
-F <font> Custom tooltip font (e.g. -b\&h-lucidatypewriter-medium-*-*-*-12-*)
|
|
|
|
-v Verbose Mode.
|
|
|
|
-h Help. This message.
|
|
|
|
-m Disable Middle Mouse functionality.
|
|
|
|
-s Swap tooltip colors.
|
|
|
|
-n Turn off tooltips.
|
|
|
|
|
|
|
|
Left mouse button:
|
|
|
|
Selects the application to launch, numbered 1 through 9
|
|
|
|
|
|
|
|
Middle mouse button: (unless disabled (-m))
|
|
|
|
Selects the application to launch, numbered 11 through 19
|
|
|
|
|
|
|
|
Right mouse button:
|
|
|
|
Selects the application to launch, numbered 21 through 29
|
|
|
|
|
|
|
|
NOTES:
|
|
|
|
------
|
2014-10-05 15:29:59 +00:00
|
|
|
This is a simple application launching tool for use in WindowMaker, and
|
|
|
|
possibly Afterstep. (Who knows, it should run for other window managers too,
|
2012-08-20 08:02:36 +00:00
|
|
|
by why bother?? It is taken from wmcp, by Ben Cohen, and modified just
|
2014-10-05 15:29:59 +00:00
|
|
|
enough to run applications rather than send ALT-[1..9] key sequences to
|
2012-08-20 08:02:36 +00:00
|
|
|
WindowMaker. It has also taken some ideas from asbuttons, and
|
|
|
|
included them back into the original. There may still be some code
|
2014-10-05 15:29:59 +00:00
|
|
|
left over from wmcp that is no longer needed, but...
|
2012-08-20 08:02:36 +00:00
|
|
|
|
2014-10-05 15:29:59 +00:00
|
|
|
The mini-icons must be combined into a single graphic, buttons.xpm. The
|
2012-08-20 08:02:36 +00:00
|
|
|
background border is defined in backdrop.xpm. Both must be edited in your
|
|
|
|
favorite graphics editor (GIMP??), and then recompiled. wmbuttons uses a
|
|
|
|
configuration file (usually ~/.wmbutton) for which applications to launch.
|
2014-10-05 15:29:59 +00:00
|
|
|
There is no need to restart wmbuttons when simply changing the configuration,
|
2012-08-20 08:02:36 +00:00
|
|
|
as wmbutton searches the file whenever a button is pressed.
|
|
|
|
|
|
|
|
As of release 0.5, you can also pass in your own pixmap file for the
|
|
|
|
buttons, to override the buttons that are compiled it. This file should
|
|
|
|
still have the same height and width so that it will make sense,
|
|
|
|
though really you give it any XPM you want, but it will only display
|
|
|
|
the upper left 54x54 pixel corner.
|
|
|
|
|
|
|
|
|
|
|
|
An example file is included, related to the the buttons.xpm graphic file.
|
|
|
|
|
|
|
|
|
|
|
|
CHANGE LOG:
|
|
|
|
-----------
|
|
|
|
0.6.1 Minor changes to the Makefile.
|
|
|
|
0.6 Code cleanup and fixes for memory leaks by Christian 'Greek0' Aichinger.
|
|
|
|
0.5 Added Modifications submitted by Ralf Horstmann.
|
|
|
|
Load different pixmaps at start-up time, rather than having
|
|
|
|
to compile them in. This also makes it much easier to run
|
|
|
|
multiple copies.
|
|
|
|
Added Modifications submitted by Michael Cohrs.
|
|
|
|
Added Tool-Tips
|
|
|
|
Updated default buttons.xpm graphics
|
|
|
|
General Code clean-up, including export must functions to
|
|
|
|
seperate C file, to reduce clutter.
|
|
|
|
|
2014-10-05 15:29:59 +00:00
|
|
|
0.4 Added Modifications submitted by Casey Harkins.
|
|
|
|
Start application on mouse button release,
|
2012-08-20 08:02:36 +00:00
|
|
|
Only start app if cursor is still on application button
|
|
|
|
Added 3-D button press look
|
|
|
|
Added new .wmbutton configuration file
|
|
|
|
|
|
|
|
0.3 Graphics changed to incorporate most changes made by asbutton
|
|
|
|
Removed Middle/Right mouse click on button to turn off buttons
|
|
|
|
after it.
|
|
|
|
Added Middle and Right mouse buttons to run more Applications
|
2014-10-05 15:29:59 +00:00
|
|
|
(Yes, you can now really run 27 different Apps from a single
|
2012-08-20 08:02:36 +00:00
|
|
|
instance of wmbuttons, if you would want too...)
|
|
|
|
Fixed bug for finding config file .wmbutton.
|
|
|
|
It used to not look in the home directory, but in the
|
|
|
|
startup directory. Thanks to Casey harkins for the fix.
|
|
|
|
Included the icons directory from the asbutton distribution,
|
|
|
|
plus a few more.
|
|
|
|
|
|
|
|
0.2 Added single configuration file, user selectable.
|
|
|
|
|
|
|
|
0.1 Origional version.
|
2014-10-05 15:29:59 +00:00
|
|
|
Shamelessly taken from wmcp 1.2.5,
|
2012-08-20 08:02:36 +00:00
|
|
|
by Ben Cohen <buddog@aztec.asu.edu>
|
|
|
|
|
|
|
|
TODO:
|
|
|
|
-----
|
|
|
|
Add ability (via config file) to use discrete 16x16 pixel icons for
|
|
|
|
the buttons, rather than having to paste them all into the existing file.
|
|
|
|
Make changing icons and/or background graphics easier.
|
|
|
|
Allow for less than 9 icons, 4 would be nicer on the mini-icon size.
|
|
|
|
|
2014-10-05 15:29:59 +00:00
|
|
|
BUGS:
|
2012-08-20 08:02:36 +00:00
|
|
|
-----
|
|
|
|
Remember, they're just undocumented FEATURES!!!
|
|
|
|
|
|
|
|
Probably Lots. Send comments (preferably with fixes) to
|
|
|
|
<ehf_dockapps@cox.net>
|
|
|
|
|
|
|
|
|
|
|
|
Good Luck.
|
|
|
|
|
|
|
|
|
|
|
|
"C code. C code run. Run, code, run.
|
|
|
|
PLEASE!?!?!?!?!?!?"
|
|
|
|
|
|
|
|
|