Index

Subject : Re: LUG: Visible bell

From : Kevin Hunter <hunteke@earlham.[redacted]>

Date : Wed, 02 Jun 2010 17:30:44 -0600

Parent


At 12:42pm -0600 Wed, 02 Jun 2010, Alexander Ray wrote:
> That sounds like a good idea. takes a bit more shell-scripting than just
> echo-ing control characters to the terminal.
>
> This is just something to tack onto the end of build commands
>
> $ make -f makefile.what REALLY_LONG_LIST_OF_BLAH_BLAH&& ./annoytron.sh
>
> these builds take 5 min, so i want to notice when its done, but not watch
> the terminal.

If you're in a gnome environment, you can use notify-send for this. I
believe the package is libnotify-bin, then you can do something like:

$ notify-send -t 20 "Title" "message"

or

$ make ... ; notify-send -t 20 "$STATUS" "$MESSAGE"

Sends a titled message to you growl-like notification system, in this
case taking 20 seconds to expire. If you're the uber ... something ...
type, you can also set an icon with -i.

Kevin