An Erlang NIF interface to the libnotify library. libnotify is used to send desktop notification bubbles. See:
https://wiki.ubuntu.com/NotifyOSD
To see the available icons:
dpkg -L notify-osd-icons
Then:
> notify:osd([{icon, "notification-gpm-phone-020"}]).
sudo apt-get install libnotify-dev
make
osd(Options) -> ok | {error,enomem}
Types Options = [Opt]
Opt = [{summary, string()}, {body, string()}, {icon, string()},
{category, string()}, {urgency, int()}, {timeout, int()},
Hints]
Hints = [string() | {string(), Value}]
Value = [string() | integer() | double() | Byte]
Byte = {byte, uchar()}
> notify:osd([]).
> notify:osd([{summary, "hello"}, {body, "world"}]).
> notify:osd([{icon, "notification-audio-volume-medium"},
{hints, [{"value", 75}, "x-canonical-private-synchronous"]},
{summary, "Volume"},
{body, ""}]).
> rss:start().