Module: Hubeye::Notification::GnomeNotify
- Defined in:
- lib/hubeye/notification/gnomenotify.rb
Constant Summary collapse
- EXPIRATION_IN_SECONDS =
2
Class Method Summary collapse
Class Method Details
.notify(title, msg, img = CHANGE_ICON_PATH) ⇒ Object
7 8 9 10 |
# File 'lib/hubeye/notification/gnomenotify.rb', line 7 def self.notify(title, msg, img=CHANGE_ICON_PATH) = "-t #{EXPIRATION_IN_SECONDS * 1000} -i #{img}" system "notify-send #{} '#{title}' '#{msg}'" end |