Sha256: 6765474bc1d8636f5edb0d29c4d0204e46832a57be3b56fdba30715cdfeba2a4

Contents?: true

Size: 415 Bytes

Versions: 1

Compression:

Stored size: 415 Bytes

Contents

#!/usr/bin/env ruby

=begin

xy.rb

Luca Russo <vargolo@gmail.com>
Copyright (LGPL) 2006 - 2011

ruby-libnotify xy example

=end

begin
  require 'RNotify'
rescue LoadError
  require 'rubygems'
  require 'RNotify'
end

Notify.init("Test7")

test = Notify::Notification.new("Test 7", "This notification point to 150,100", nil)
test.hint32("x", 150)
test.hint32("y", 100)
test.timeout= 5000      #5 seconds
test.show

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-libnotify-0.5.0 examples/xy.rb