blob: 985957073c41d12045d407aa9d05b2d47740ed54 (
plain) (
tree)
|
|
#!/bin/sh
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
|