-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
39 lines (24 loc) · 885 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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