diff options
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 |