https://github.com/msantos/erlang-notify-osd
Erlang NIF interface for sending desktop notifications
https://github.com/msantos/erlang-notify-osd
Last synced: about 1 month ago
JSON representation
Erlang NIF interface for sending desktop notifications
- Host: GitHub
- URL: https://github.com/msantos/erlang-notify-osd
- Owner: msantos
- Created: 2010-07-28T21:55:28.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2020-05-27T12:34:40.000Z (about 5 years ago)
- Last Synced: 2025-04-28T18:14:45.057Z (about 1 month ago)
- Language: Erlang
- Homepage:
- Size: 410 KB
- Stars: 11
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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

## Using a libnotify icon
To see the available icons:
dpkg -L notify-osd-icons
Then:
> notify:osd([{icon, "notification-gpm-phone-020"}]).

## RSS Feed

# HOW TO BUILD IT
sudo apt-get install libnotify-dev
rebar3 compile# HOW TO USE IT
osd(Options) -> ok | {error,enomem}
Types Options = [Opt]
Opt = [{summary, iodata()}, {body, iodata()}, {icon, iodata()},
{category, iodata()}, {urgency, integer()},
{timeout, integer()}, Hints]
Hints = [atom() | {atom(), Value}]
Value = [iodata() | integer() | float() | Byte]
Byte = {byte, byte()}# 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().