diff options
author | Ryan Kavanagh <ryanakca@kubuntu.org> | 2011-08-14 17:16:55 -0400 |
---|---|---|
committer | Ryan Kavanagh <ryanakca@kubuntu.org> | 2011-08-25 07:42:57 -0400 |
commit | 1c019761dfaf6be82de9284fa5e2b9dbfbdec27d (patch) | |
tree | 7ed6bd2f437d3a334bd7a81f62e6dfa63689272b /bin/run-mailcheck |
Initial import
Diffstat (limited to '')
-rwxr-xr-x | bin/run-mailcheck | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/run-mailcheck b/bin/run-mailcheck new file mode 100755 index 0000000..215aaf7 --- /dev/null +++ b/bin/run-mailcheck @@ -0,0 +1,14 @@ +#!/bin/zsh +MAIL=`mailcheck` +GMAIL=`echo $MAIL | /bin/grep -v QueensU` +QUEENSU=`echo $MAIL | /bin/grep QueensU` +if echo $GMAIL | grep -q new ; then + echo $GMAIL | awk '{printf("%d(%d)"), $6, $3}' > ~/.xmonad/gmailcheck; +else + echo $GMAIL | awk '{printf("%d(%d)"), $3, 0}' > ~/.xmonad/gmailcheck; +fi +if echo $QUEENSU | grep -q new ; then + echo $QUEENSU | awk '{printf("%d(%d)"), $6, $3}' > ~/.xmonad/queensucheck; +else + echo $QUEENSU | awk '{printf("%d(%d)"), $3, 0}' > ~/.xmonad/queensucheck; +fi |