Thanks! I am relatively new to linux but I managed to create a simple bash script to show a notification to rest my eyes & also activate the screen saver


Quote Originally Posted by DeusEx View Post
Notify-send is a little, simple On-Screen Display application. It uses the notify bubble (or balloon?) pop-up system as seen in 9.10 Karmic.

Despite its usage is very simple you can have a lot of fun with it. Let's install it first:

Code:
sudo apt-get install notify-osd
Now this command should pop up a 'bubble':
Code:
notify-send Test "Hello World"
The --help option shows basic usage:

Code:
$notify-send --help
Usage:                             
  notify-send [OPTION...] <SUMMARY> [BODY] - create a notification                                                    

Help Options:
  -?, --help                        Show help options

Application Options:
  -u, --urgency=LEVEL               Specifies the urgency level (low, normal, critical).                              
  -t, --expire-time=TIME            Specifies the timeout in milliseconds at which to expire the notification.
  -i, --icon=ICON[,ICON...]         Specifies an icon filename or stock icon to display.
  -c, --category=TYPE[,TYPE...]     Specifies the notification category.
  -h, --hint=TYPE:NAME:VALUE        Specifies basic extra data to pass. Valid types are int, double, string and byte.
  -v, --version                     Version of the package.
Some examples:

1. Basic message with an icon in front of the Title showing 5000 milliseconds
Code:
notify-send "Message Title" "The message body is shown here" -i /usr/share/pixmaps/idle.xpm -t 5000
2. Show contents of a file:
Code:
notify-send test "`tail /var/log/syslog`"
3. Follow log file:
Code:
tail -n0 -f /var/log/messages | while read line; do notify-send "System Message" "$line"; done
4. Format message with HTML:
Code:
notify-send Test "<font size=16 color=blue><b><i>Hello World</b></i></font>"