Skip to content

alepharchives/erlang-notify-osd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

https://wiki.ubuntu.com/NotifyOSD

SCREENSHOTS

Default Notification

Default Notification

Using a libnotify icon

To see the available icons:

dpkg -L notify-osd-icons

Then:

> notify:osd([{icon, "notification-gpm-phone-020"}]).

Default Notification

RSS Feed

Default Notification

HOW TO BUILD IT

sudo apt-get install libnotify-dev
make

HOW TO USE IT

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

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

About

Erlang NIF interface for sending desktop notifications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published