Sha256: f29d45a1d321cf231506145f2e377863d43c514153d406f34326edbc84bb2954
Contents?: true
Size: 800 Bytes
Versions: 2
Compression:
Stored size: 800 Bytes
Contents
= Libnotify Ruby binding for libnotify using FFI. == Usage require 'libnotify' # Block syntax Libnotify.new do |notify| notify.summary = "world" notify.body = "hello" notify.timeout = 1.5 # 1.5 (s), 1000 (ms), "2", nil, false notify.urgency = :critical # :low, :normal, :critical notify.icon_path = "/usr/share/icons/gnome/scalable/emblems/emblem-default.svg" notify.show! end # Hash syntax Libnotify.show(:body => "hello", :summary => "world", :timeout => 2.5) # Mixed syntax Libnotify.show(options) do |n| n.timeout = 1.5 # overrides :timeout in options end == Installation gem install libnotify You need libnotify. On Debian you can just do: apt-get install libnotify1 == Authors * Peter Suschlik == TODO * Mock FFI calls
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
libnotify-0.0.5 | README.rdoc |
libnotify-0.0.4 | README.rdoc |