From dfe1efe982999312aba825c98918cdd205870cd2 Mon Sep 17 00:00:00 2001 From: Miguel Date: Sun, 27 Jan 2019 20:05:18 +0100 Subject: some updates --- xmonad/checkmail.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'xmonad/checkmail.sh') 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="" +B="" case $MAILS in *new*) - echo "$MAILS" + echo "$A$MAILS$B" ;; *unread*) - echo "$MAILS" + echo "$A$MAILS$B" ;; *) - echo "no mail" + echo "$Ano mail$B" ;; esac -- cgit v1.2.3