module Guard::Notifier::Libnotify
def notify(type, title, message, image, options = { })
(**options)
-
timeout
(Number, Boolean
) -- the number of seconds to display (1.5 (s), 1000 (ms), false) -
append
(Boolean
) -- append onto existing notification -
transient
(Boolean
) -- keep the notifications around after display
Parameters:
-
options
(Hash
) -- additional notification library options -
image
(String
) -- the path to the notification image -
message
(String
) -- the notification message body -
title
(String
) -- the notification title -
type
(String
) -- the notification type. Either 'success', 'pending', 'failed' or 'notify'
def notify(type, title, message, image, options = { }) require 'libnotify' ::Libnotify.show(DEFAULTS.merge(options).merge({ :urgency => libnotify_urgency(type), :summary => title, :body => message, :icon_path => image })) end