Luke Smith 7 лет назад
Родитель
Сommit
4c57b410fc
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 4C50B54A911F6252
1 измененных файлов: 3 добавлений и 3 удалений
  1. +3
    -3
      bin/mailsync

+ 3
- 3
bin/mailsync Просмотреть файл

@@ -2,7 +2,7 @@
# Sync mail and give notification if there is new mail. # Sync mail and give notification if there is new mail.


# Run only if user logged in (prevent cron errors) # Run only if user logged in (prevent cron errors)
pgrep -cu "$USER" >/dev/null || exit
pgrep -u "$USER" >/dev/null || exit


# Checks for internet connection and set notification script. # Checks for internet connection and set notification script.
ping -q -c 1 1.1.1.1 > /dev/null || exit ping -q -c 1 1.1.1.1 > /dev/null || exit
@@ -18,7 +18,7 @@ else
fi fi


echo " 🔃" > /tmp/imapsyncicon_$USER echo " 🔃" > /tmp/imapsyncicon_$USER
pkill -RTMIN+12 i3blocks
pkill -RTMIN+12 i3blocks >/dev/null 2>&1


# Run mbsync. You can feed this script different settings. # Run mbsync. You can feed this script different settings.
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
@@ -28,7 +28,7 @@ else
fi fi


rm -f /tmp/imapsyncicon_$USER rm -f /tmp/imapsyncicon_$USER
pkill -RTMIN+12 i3blocks
pkill -RTMIN+12 i3blocks >/dev/null 2>&1


# Check all accounts/mailboxes for new mail. Notify if there is new content. # Check all accounts/mailboxes for new mail. Notify if there is new content.
for account in "$HOME/.local/share/mail/"* for account in "$HOME/.local/share/mail/"*


Загрузка…
Отмена
Сохранить