You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mailnotify.sh 589B

123456789101112131415161718
  1. #!/usr/bin/env bash
  2. # AUTHOR: shaggy
  3. # FILE: mailnotify.sh
  4. # ROLE: TODO (some explanation)
  5. # CREATED: 2014-12-21 18:17:0
  6. # MODIFIED: 2014-12-21 19:14:43
  7. #count teknik mail for every maildir
  8. maildirtek="$HOME/Maildir/teknik/INBOX/new/"
  9. teknik="$(find $maildirtek -type f | wc -l)"
  10. #count new gmail for every maildir
  11. maildirgmail="$HOME/Maildir/gmail/INBOX/new/"
  12. gmail="$(find $maildirgmail -type f | wc -l)"
  13. export DISPLAY=:0; export XAUTHORITY=~/.Xauthority;
  14. notify-send -t 5000 -i /home/shaggy/bin/icons/smileicon.png -a "New Mail" "Gmail: $gmail Teknik: $teknik"