lib/pomo/notifier/libnotify_notifier.rb
require 'libnotify' if Pomo::OS.linux?
module Pomo
class Notifier
class LibnotifyNotifier
def notify(message, opts = {})
title = 'Pomo'
full_message = [opts[:header], opts[:message]].join(' ').lstrip
Libnotify.show :body => full_message, :summary => title
end
end
end
end