Skip to content

Instantly share code, notes, and snippets.

@monde
Created February 13, 2009 21:56
Show Gist options
  • Save monde/64119 to your computer and use it in GitHub Desktop.
Save monde/64119 to your computer and use it in GitHub Desktop.
def self.notify title, msg, img, pri='low', time=5000
msg.gsub!("'", '"')
folder = "/usr/share/icons/gnome/16x16/emblems/"
`notify-send -i #{folder}#{img} -u #{pri} -t #{time} '#{msg}'`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment