aboutsummaryrefslogtreecommitdiff
path: root/bin/run-mailcheck
blob: 13798d48910452ff5afe2180af3173ed3df21676 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!ZSH_PATH
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