Packages

Notify_ex is just a simple wrapper around 'notify-send' for Unix systems.

Current section

Files

Jump to
notify_ex lib notify.ex
Raw

lib/notify.ex

defmodule Notify do
@moduledoc false
def send(name, message, opts \\ []) do
urgency = Keyword.get(opts, :urgency, "normal")
time = Keyword.get(opts, :time, 2000)
icon = Keyword.get(opts, :icon, "")
Notify.Notification.send(name, urgency, time, icon, message)
end
end