Created
September 5, 2011 19:06
-
-
Save aaronmcadam/1195687 to your computer and use it in GitHub Desktop.
compass-inotify
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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