Skip to content

Instantly share code, notes, and snippets.

@rderoldan1
Created May 12, 2012 16:05
Show Gist options
  • Save rderoldan1/2667308 to your computer and use it in GitHub Desktop.
Save rderoldan1/2667308 to your computer and use it in GitHub Desktop.
A simple and pretty for ubuntu notificator made in ruby
require 'libnotify'
require 'date'
Libnotify.show :summary => "#{Date.today}", :body => "Hello world, today is #{Date::DAYNAMES[Date.today.wday]}"

###install first this libraries

sudo aptitude install libinotify-ruby libgtk2-ruby libnotify-dev;

sudo gem install libnotify

the result!!!

result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment