Add 'syncnow' script and binding

Also remove symlink to 'mailsync' script.
This commit is contained in:
Wiktor Zykubek 2020-05-16 18:45:33 +02:00
parent efae42020e
commit 25b625ce85
5 changed files with 11 additions and 3 deletions

View File

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

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)" 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 &