Noti v0.1.0 Noti View Source
Simple Desktop notifications.
Noti is a gentle wrapper around notify-send
meant for linux.
Examples
iex> Noti.with("Hello World!")
:ok
Possible Options:
- :urgency - Specifies the urgency level (:low, :normal, :critical).
- :expire_time - Specifies the timeout in milliseconds at which to expire the notification.
- :app_name - Specifies the app name for the icon
- :icon - Specifies an icon filename or stock icon to display.
- :category - Specifies the notification category.
Link to this section Summary
Functions
with
is the standard function to create notifications with
Link to this section Functions
with
is the standard function to create notifications with.
It takes in two arguments, the first being a string for a message and the second being a keyword list for options.
Body text may contain markup. The markup is XML-based, and consists of a small subset of HTML along with a few additional tags. The following tags should be supported by the notification server. Though it is optional, it is recommended. Notification servers that do not support these tags should filter them out.
Some examples:
- … - Bold
- … - Italic
- … - Underline
- … - Hyperlink
- Image
Directly taken from notification specification, you can read more here.
Examples
iex> Noti.with("<b>Hello</b>")
:ok