feat: move goimapnotify to a seprate script

This commit is contained in:
Flinner Yuu 2022-04-11 22:38:17 +03:00
parent a8b1d4030b
commit 09cd13d288
Signed by: flinner
GPG Key ID: 95CE0DA7F0E58CA6
2 changed files with 14 additions and 4 deletions

View File

@ -40,10 +40,12 @@ killall goimapnotify
(sleep 55 && killall goimapnotify) & (sleep 55 && killall goimapnotify) &
# start watching all mail dirs # start watching all mail dirs
for imapnotify_config in ~/Documents/passwords/*_imapnotify.json; do # moved to file
LOG_FILE=$(sed 's#/#_#g' <<< "$imapnotify_config" ) #for imapnotify_config in ~/Documents/passwords/*_imapnotify.json; do
(sleep 60 && goimapnotify -conf "$imapnotify_config" &> ~/.cache/"$LOG_FILE") & # LOG_FILE=$(sed 's#/#_#g' <<< "$imapnotify_config" )
done # (sleep 60 && goimapnotify -conf "$imapnotify_config" &> ~/.cache/"$LOG_FILE") &
#done
~/bin/run_goimapnotify.sh &
#ibus-daemon & #ibus-daemon &

8
bin/bin/run_goimapnotify.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
for imapnotify_config in ~/Documents/passwords/*_imapnotify.json; do
LOG_FILE=$(sed 's#/#_#g' <<< "$imapnotify_config" )
# sleep for internet to get ready lol
(sleep 60 && goimapnotify -conf "$imapnotify_config" &> ~/.cache/"$LOG_FILE") &
done