My Awesome Config
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.

17 lines
430B

  1. #!/bin/bash
  2. # mymail_gmail_loop.sh
  3. MAILDIR=/tmp/$USER-mail_loop
  4. while [ 1 ]; do
  5. mkdir --mode=700 $MAILDIR 2>/dev/null
  6. val=$(timeout -k 30 25 ~/.config/awesome/mail_loop_mymail.py)
  7. if [[ "$val" == "" ]]; then val = "?"; fi
  8. echo $val > $MAILDIR/mymail_count
  9. sleep 30
  10. #val=$(timeout -k 30 25 ~/.config/awesome/mail_loop_gmail.py)
  11. #if [[ "$val" == "" ]]; then val = "?"; fi
  12. #echo $val > $MAILDIR/gmail_count
  13. #sleep 30
  14. done