Add 'syncnow' script and binding
Also remove symlink to 'mailsync' script.
This commit is contained in:
parent
3c4b3623d0
commit
fbc555bdc7
@ -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
|
||||||
|
|
||||||
|
|
||||||
#~~~~~~~
|
#~~~~~~~
|
||||||
|
@ -50,7 +50,7 @@ else
|
|||||||
accounts=$*
|
accounts=$*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo " " > /tmp/imapsyncicon_"$USER"
|
echo "" > /tmp/imapsyncicon_"$USER"
|
||||||
refbar &
|
refbar &
|
||||||
|
|
||||||
# Parallelize multiple accounts
|
# Parallelize multiple accounts
|
||||||
|
@ -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"
|
||||||
|
@ -1 +0,0 @@
|
|||||||
../cron/mailsync
|
|
6
.local/bin/scripts/syncnow
Executable file
6
.local/bin/scripts/syncnow
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Sync mails and news now!
|
||||||
|
|
||||||
|
~/.local/bin/cron/mailsync &
|
||||||
|
~/.local/bin/cron/newsup &
|
Loading…
x
Reference in New Issue
Block a user