Add 'syncnow' script and binding

Also remove symlink to 'mailsync' script.
This commit is contained in:
samedami 2020-05-16 18:45:33 +02:00
parent 3c4b3623d0
commit fbc555bdc7
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894
5 changed files with 11 additions and 3 deletions

View File

@ -47,6 +47,8 @@ F11
[ $(pgrep ffmpeg) ] && blaze -s || blaze
End
lockscreen; systemctl suspend
Pause
syncnow
#~~~~~~~

View File

@ -50,7 +50,7 @@ else
accounts=$*
fi
echo " " > /tmp/imapsyncicon_"$USER"
echo "" > /tmp/imapsyncicon_"$USER"
refbar &
# Parallelize multiple accounts

View File

@ -6,4 +6,5 @@ unread="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/*/[Ii][Nn][Bb][Oo][Xx
icon="$(cat "/tmp/imapsyncicon_$USER" 2>/dev/null)"
[ "$unread" -gt "0" ] && echo " $unread$icon" || echo ""
[ "$unread" -gt "0" ] && echo " $unread " || echo ""
echo "$icon"

View File

@ -1 +0,0 @@
../cron/mailsync

6
.local/bin/scripts/syncnow Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
# Sync mails and news now!
~/.local/bin/cron/mailsync &
~/.local/bin/cron/newsup &