Skip to content

Instantly share code, notes, and snippets.

@aaronmcadam
Created September 5, 2011 19:06
Show Gist options
  • Save aaronmcadam/1195687 to your computer and use it in GitHub Desktop.
Save aaronmcadam/1195687 to your computer and use it in GitHub Desktop.
compass-inotify
# add to config.rb
# install libnotify gem if missing
require 'libnotify'
# success callback
on_stylesheet_saved do |filename|
Libnotify.show :summary => "#{File.basename(filename)}", :body => "Updated", :icon_path => "/usr/share/icons/gnome/256x256/actions/view-refresh.png"
end
# error callback
on_stylesheet_error do |filename, message|
Libnotify.show :summary => "#{File.basename(filename)}", :body => "#{message}", :icon_path => "/usr/share/icons/gnome/256x256/actions/edit-delete.png"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment