Skip to content

Instantly share code, notes, and snippets.

@jugyo
Created September 12, 2008 05:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jugyo/10379 to your computer and use it in GitHub Desktop.
Save jugyo/10379 to your computer and use it in GitHub Desktop.
require 'RNotify'
def rnotify(title, message, timeout_sec = 5)
Notify.init('rnotify')
test = Notify::Notification.new( "Test 1", "This is a test", nil, nil )
test.timeout= timeout_sec * 1000
test.show
sleep(timeout_sec)
test.close
Notify.uninit
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment