Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Erlang NIF interface for sending desktop notifications
Erlang C
tree: 5db8243530

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
c_src
ebin
priv
src
.gitignore
Emakefile
Makefile
README
rebar
rebar.config.tmpl

README

An Erlang NIF interface to the libnotify library. libnotify is used to
send desktop notification bubbles. See:

https://wiki.ubuntu.com/NotifyOSD


HOW TO BUILD IT

make

HOW TO USE IT

osd(Options) -> ok | 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()}


EXAMPLES

> 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().

TODO

* support growl on Mac OS X

Something went wrong with that request. Please try again.