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:
Now this command should pop up a 'bubble':Code:sudo apt-get install notify-osd
The --help option shows basic usage:Code:notify-send Test "Hello World"
Some examples: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.
1. Basic message with an icon in front of the Title showing 5000 milliseconds
2. Show contents of a file:Code:notify-send "Message Title" "The message body is shown here" -i /usr/share/pixmaps/idle.xpm -t 5000
3. Follow log file:Code:notify-send test "`tail /var/log/syslog`"
4. Format message with HTML:Code:tail -n0 -f /var/log/messages | while read line; do notify-send "System Message" "$line"; done
Code:notify-send Test "<font size=16 color=blue><b><i>Hello World</b></i></font>"



Adv Reply




Bookmarks