diff options
Diffstat (limited to 'xmonad/checkmail.sh')
| -rwxr-xr-x | xmonad/checkmail.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/xmonad/checkmail.sh b/xmonad/checkmail.sh index a760f30..5fb596d 100755 --- a/xmonad/checkmail.sh +++ b/xmonad/checkmail.sh @@ -1,14 +1,16 @@ #!/bin/bash -MAILS=$(echo x | mail -f /home/miguel/mail/default | head -n 2 | tail -n 1 | cut -d" " -f 4-) +MAILS=$(echo x | mail -f /home/miguel/mail/default | head -n 1 | tail -n 1 | cut -d" " -f 4-) +A="<action=xterm -e mutt>" +B="</action>" case $MAILS in *new*) - echo "<fc=#f44>$MAILS</fc>" + echo "$A<icon=/home/miguel/git/dotfiles/xmonad/mail.xpm/><fc="#dc322f">$MAILS</fc>$B" ;; *unread*) - echo "<fc=yellow>$MAILS</fc>" + echo "$A<fc="#b58900">$MAILS</fc>$B" ;; *) - echo "no mail" + echo "$A<fc="#93a1a1">no mail</fc>$B" ;; esac |
