aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/mailsync
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-04-10 11:31:51 +0300
committerYaroslav <contact@yaroslavps.com>2020-04-10 11:31:51 +0300
commit197682d0f5b9d79033b9198df57225de24fff69b (patch)
tree4ab77c60752e6cbf5a2c910c3f135b227fff48cc /dotfiles/.local/bin/mailsync
parentd5c97e78d80177119421f9dade324b04f2b00126 (diff)
downloadswayrice-197682d0f5b9d79033b9198df57225de24fff69b.tar.gz
swayrice-197682d0f5b9d79033b9198df57225de24fff69b.zip
fix mailsync script and related bar script
Diffstat (limited to 'dotfiles/.local/bin/mailsync')
-rwxr-xr-xdotfiles/.local/bin/mailsync4
1 files changed, 2 insertions, 2 deletions
diff --git a/dotfiles/.local/bin/mailsync b/dotfiles/.local/bin/mailsync
index 9da6270..2a5ed03 100755
--- a/dotfiles/.local/bin/mailsync
+++ b/dotfiles/.local/bin/mailsync
@@ -6,7 +6,7 @@ w | grep "^$USER\W" >/dev/null || 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=5 --timeout=20 --spider 1.1.1.1 > /dev/null || exit
+wget -q --tries=3 --timeout=20 --spider 1.1.1.1 > /dev/null || exit
# Source the needed env variables so that it can function properly from cron
. ~/.cache/sessionenv
@@ -33,7 +33,7 @@ done
if [ $thereis = 1 ]; then
mpv "$HOME/.local/share/soundalerts/mail.mp3" > /dev/null
- killall -42 waybar
+ killall -43 waybar
fi
notmuch new 2>/dev/null