File: notify

package info (click to toggle)
ruby-notify 0.5.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 148 kB
  • sloc: ruby: 112; makefile: 2
file content (8 lines) | stat: -rwxr-xr-x 208 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
#!/usr/bin/env ruby
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'notify'

title = ARGV.shift || 'Notify'
message = ARGV.empty? ? 'notify' : ARGV.join("\n")

Notify.notify title, message