Sha256: 00729d7e16d2306760610e58ea6732196958cb35f8f9c3da1bc5806d8a3c08d5
Contents?: true
Size: 379 Bytes
Versions: 18
Compression:
Stored size: 379 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true 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
18 entries across 18 versions & 1 rubygems