Sha256: 4f52da5c92f32cda7d27f6ba8ac949df8607c7be8c6afdd7b74e8011f6af2def
Contents?: true
Size: 349 Bytes
Versions: 6
Compression:
Stored size: 349 Bytes
Contents
#!/usr/bin/env ruby require "dbus" if ARGV.size < 2 puts "Usage:" puts "notify.rb \"title\" \"body\"" exit end d = DBus::SessionBus.instance o = d["org.freedesktop.Notifications"]["/org/freedesktop/Notifications"] i = o["org.freedesktop.Notifications"] i.Notify("notify.rb", 0, "info", ARGV[0], ARGV[1], [], {}, 2000) do |ret, param| end
Version data entries
6 entries across 6 versions & 1 rubygems