diff options
Diffstat (limited to 'xmonad/checkmail.sh')
| -rwxr-xr-x | xmonad/checkmail.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/xmonad/checkmail.sh b/xmonad/checkmail.sh new file mode 100755 index 0000000..a760f30 --- /dev/null +++ b/xmonad/checkmail.sh @@ -0,0 +1,14 @@ +#!/bin/bash +MAILS=$(echo x | mail -f /home/miguel/mail/default | head -n 2 | tail -n 1 | cut -d" " -f 4-) +case $MAILS in + *new*) + echo "<fc=#f44>$MAILS</fc>" + ;; + *unread*) + echo "<fc=yellow>$MAILS</fc>" + ;; + *) + echo "no mail" + ;; +esac + |
