1

Whenever something happen which require notification (connecting to a wireless network or low battery status) Ubuntu (unity) gives a nice floating message which (usually) vanishes after several seconds. Is there a way to produce my own floating notification?

Jorge Castro
  • 70,934
  • 124
  • 466
  • 653
Yotam
  • 1,428
  • 3
  • 19
  • 24

3 Answers3

5

Have you checked out the ubuntu wiki yet?

There's a few examples here https://wiki.ubuntu.com/NotificationDevelopmentGuidelines

More general info about it here https://wiki.ubuntu.com/NotifyOSD

Tagger
  • 419
  • 2
  • 5
2
notify-send "whatever you want to say :)"

You can put it in your scripts to notify you about almost anything happens in your system. To see more options like setting title, icons, time, etc...

man notify-send
animaletdesequia
  • 8,306
  • 4
  • 26
  • 43
0

Caveat! If using the Unity desktop man notify-send is contradicted by Non-expiring notifications

For details see reference: https://askubuntu.com/a/189173/89468

The use of notify-send is desktop conditioned, depending on whether it is:

  1. Unity's notify-OSD or
  2. Gnome's notification-daemon

that displays the notification.

Quoting mhall119/devportal/notify-osd - Ubuntu Wiki:

notify-osd

... takes the place of notification-daemon, and its presentation of notification bubbles differs in several ways ...

george rowell
  • 930
  • 1
  • 9
  • 11