From 1c019761dfaf6be82de9284fa5e2b9dbfbdec27d Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Sun, 14 Aug 2011 17:16:55 -0400 Subject: Initial import --- bin/run-mailcheck | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/run-mailcheck (limited to 'bin/run-mailcheck') 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 -- cgit v1.2.3