diff options
| author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2026-07-22 17:00:30 +0300 |
|---|---|---|
| committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2026-07-22 17:00:30 +0300 |
| commit | b13cba93a6380ece676e9396b2f9cacb486c4c9c (patch) | |
| tree | 0c08d8ecabad815430a90e0bfb819c37170690d6 /dotfiles/.local/bin/mailsync | |
| parent | 9bd97ca672c17c87a0e1ceeca01836f44513a907 (diff) | |
| download | swayrice-b13cba93a6380ece676e9396b2f9cacb486c4c9c.tar.gz swayrice-b13cba93a6380ece676e9396b2f9cacb486c4c9c.zip | |
mailsync: some changes after moving to dank shell
Diffstat (limited to 'dotfiles/.local/bin/mailsync')
| -rwxr-xr-x | dotfiles/.local/bin/mailsync | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/dotfiles/.local/bin/mailsync b/dotfiles/.local/bin/mailsync index 7c644f6..42b8079 100755 --- a/dotfiles/.local/bin/mailsync +++ b/dotfiles/.local/bin/mailsync @@ -9,14 +9,14 @@ notmuchrc="$HOME/.config/notmuchrc" mbsyncrc="$HOME/.config/mbsyncrc" # Run only if user logged in (prevent cron errors) -w | grep "^$USER\W" >/dev/null || exit +# w | grep "^$USER\W" >/dev/null || exit # Don't run if screen is locked (gpg key is locked too) -pidof swaylock && exit +# pidof swaylock && exit # Check several times before giving up, useful when just waking up from sleep # since internet is usually not available right away -wget -q --tries=3 --timeout=20 --spider 1.1.1.1 > /dev/null || exit +wget -q --tries=3 --timeout=20 --spider http://1.1.1.1 > /dev/null || exit thereis=0 @@ -40,11 +40,9 @@ done if [ $thereis = 1 ]; then mpv --keep-open=no --really-quiet "$HOME/.local/share/soundalerts/mail.ogg" - killall -43 waybar fi notmuch -c "$notmuchrc" new 2>/dev/null # Create a touch file that indicates the time of the last run of mailsync touch "$HOME/.cache/lastmailsync" - |
