quiet - silence speakup while running a noisy application
mkdir /home/mybin cd /home/mybin wget http://www.pjb.com.au/blin/free/quiet chmod 755 quiet ln quiet mplayer ln quiet wget ln quiet rsync # etc... export PATH=/home/mybin:$PATH ... export QUIET_PLEASE=YES ... mplayer f.mp3 wget http://host.domain/file.html
If you're running speakup you'll probably be annoyed by some important programs (e.g. rsync, mplayer, wget, aptitude) that print fast-updating progress lines while they're running, and therefore sound most unpleasant under speakup.
This script is a wrapper which, if the environment variable QUIET_PLEASE is set, silences speakup. Then it runs the system-installed program of the same name with the same arguments, then if QUIET_PLEASE was set, it switches speakup back on.
This saves you having to silence speakup and re-enable it by hand every time, with KpadInsert+KpadEnter. Also, by switching speakup back on automatically, it makes sure that even if you have no sight at all you know when the program is finished. Also, the silenced output remains on the screen so you can check for error messages with Kpad7 as usual.
1 . Copy this script into somewhere in your $PATH which is ahead of the system directories which contain the programs you wish were quieter
2 . Make it executable
3 . Link it to names identical to all the noisy programs you wish to wrap.
4 . Whenever you're running speakup, make sure the environment variable QUIET_PLEASE is set.
Peter J Billam http://www.pjb.com.au/comp/contact.html