Add 'syncnow' script and binding
Also remove symlink to 'mailsync' script.
This commit is contained in:
parent
efae42020e
commit
25b625ce85
@ -47,6 +47,8 @@ F11
|
||||
[ $(pgrep ffmpeg) ] && blaze -s || blaze
|
||||
End
|
||||
lockscreen; systemctl suspend
|
||||
Pause
|
||||
syncnow
|
||||
|
||||
|
||||
#~~~~~~~
|
||||
|
@ -50,7 +50,7 @@ else
|
||||
accounts=$*
|
||||
fi
|
||||
|
||||
echo " " > /tmp/imapsyncicon_"$USER"
|
||||
echo "" > /tmp/imapsyncicon_"$USER"
|
||||
refbar &
|
||||
|
||||
# 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)"
|
||||
|
||||
[ "$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