Sha256: f56a960e4c599cf90fe79b418b337584b6c150dd9361e675898db93c56dfd559
Contents?: true
Size: 848 Bytes
Versions: 1
Compression:
Stored size: 848 Bytes
Contents
#!/usr/bin/env ruby =begin urgency.rb Luca Russo <vargolo@gmail.com> Copyright (LGPL) 2006 - 2010 ruby-libnotify urgency example =end begin require 'RNotify' rescue LoadError require 'rubygems' require 'RNotify' end Notify.init("Test5") test = Notify::Notification.new("Test 5", "urgency test - LOW", nil, nil) test.urgency= Notify::Notification::URGENCY_LOW test.timeout= 3000 #3 seconds test.show sleep(3) test.close test = Notify::Notification.new("Test 5", "urgency test - NORMAL", nil, nil) test.urgency= Notify::Notification::URGENCY_NORMAL test.timeout= 3000 #3 seconds test.show sleep(3) test.close test = Notify::Notification.new("Test 5", "urgency test - CRITICAL", nil, nil) test.urgency= Notify::Notification::URGENCY_CRITICAL test.timeout= 3000 #3 seconds test.show sleep(3) test.close Notify.uninit
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-libnotify-0.4.1 | examples/urgency.rb |