Sending notifications and other messages to your desktop

To send messages to your desktop (which appear as simple notifications), use notify-send (ubuntu users: sudo apt-get install libnotify-bin).
To send a message, run the following:

notify-send "message"

Example: you can use notify-send to script a little timer:
sleep 5m; while [ 1 ]; do notify-send "Time's up"; sleep 1; done
This script will wait 5 minutes, then display up to seven notice bubbles (at a time) on your screen indicating that “Time’s up”

This has been tested with gnome and might work with other desktop environments.

Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: