sup - initial commit
This commit is contained in:
parent
3df25d3dda
commit
d70f1b36c0
6 changed files with 91 additions and 7 deletions
6
sup/hooks/after-poll.rb
Normal file
6
sup/hooks/after-poll.rb
Normal 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
4
sup/hooks/before-poll.rb
Normal 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
1
sup/hooks/goto.rb
Normal file
|
@ -0,0 +1 @@
|
|||
system "xdg-open #{uri} > /dev/null"
|
Loading…
Add table
Add a link
Reference in a new issue