This can be used to replace that boring, flat "beep" sound with something
more interesting on linux systems running X, and perhaps others running
X as well.  It works by creating a small library with an XBell()
function that is LD_PRELOAD'd to replace the original XBell() function.

The unofficial homepage for replacebell, at least for now, is
http://nis.acs.uci.edu/~strombrg/software .

If you have trouble with this package, you can contact
strombrg@nis.acs.uci.edu for some help getting it working.

To install:

1) Extract the sources (you probably already have if you're reading this)

2) Type 'make' to build the library

3) Copy either "bell" or "fancybell" to ~/bin/bell and make sure it's
executable.  The library doesn't scan your path - it only looks in ~/bin
so don't put the bell script somewhere else unless you want to modify
the library correspondingly.

4) Customize ~/bin/bell to taste.  I've included a few sound files,
or you can certainly use your own.  Test running ~/bin/bell directly, prior
to using it through the library.  The original versions of bell and fancybell
assume you have sound files in ~/sound .

5) Copy libbell.so.1.0 to ~/lib/libbell.so.1.0 .

6) Modify your X windows initialization file (usually ~/.xinitrc, ~/.xsession
and/or ~/.Xclients) to set your LD_PRELOAD variable to include the path
to libbell.so.1.0, like:

	LD_PRELOAD=$HOME/lib/libbell.so.1.0
	export LD_PRELOAD

(You can also use /etc/ld.so.preload instead on some systems, particularly
if you want libbell used system-wide, and not just for one account)

7) Test a little more: Set your LD_PRELOAD variable in your current
xterm.  Then start up -another- xterm from within the one you
just set LD_PRELOAD in, so the new xterm inherits the value of LD_PRELOAD.
Then within that new xterm, say "echo ''", and listen to what it sounds
like.  It should make a more pleasing ting sound, or whatever you've made
your ~/bin/bell sound like.

8) Finally, log out and back in.  Now, all your local windows should have
the nice bells.  Remotely started programs may still have the old bell.

9) Enjoy.