From bd0c6bc05c529e90317e9b3d6f0ba7890a1ebca3 Mon Sep 17 00:00:00 2001 From: Miguel Date: Tue, 29 May 2018 20:28:06 +0200 Subject: add xmonad stuff --- xmonad/checkmail.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 xmonad/checkmail.sh (limited to 'xmonad/checkmail.sh') 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 "$MAILS" + ;; + *unread*) + echo "$MAILS" + ;; + *) + echo "no mail" + ;; +esac + -- cgit v1.2.3