sup - initial commit

This commit is contained in:
Felix Van der Jeugt 2015-01-05 17:33:59 +01:00
parent 3df25d3dda
commit d70f1b36c0
6 changed files with 91 additions and 7 deletions

6
sup/hooks/after-poll.rb Normal file
View file

@ -0,0 +1,6 @@
if num_inbox > 0
system "notify-send", \
"#{num_inbox_total_unread} unread messages (#{num_inbox} new)", \
from_and_subj_inbox.map {|p| "#{p[0]} - #{p[1]}"}.join("\n")
end

4
sup/hooks/before-poll.rb Normal file
View file

@ -0,0 +1,4 @@
say "Running mbsync..."
if not system "mbsync", "-a", "-qq"
say "mbsync unsuccesful."
end

1
sup/hooks/goto.rb Normal file
View file

@ -0,0 +1 @@
system "xdg-open #{uri} > /dev/null"