diff --git a/bin/bin/autostart b/bin/bin/autostart index 5929cf9..6bb1fc9 100755 --- a/bin/bin/autostart +++ b/bin/bin/autostart @@ -40,10 +40,12 @@ killall goimapnotify (sleep 55 && killall goimapnotify) & # start watching all mail dirs -for imapnotify_config in ~/Documents/passwords/*_imapnotify.json; do - LOG_FILE=$(sed 's#/#_#g' <<< "$imapnotify_config" ) - (sleep 60 && goimapnotify -conf "$imapnotify_config" &> ~/.cache/"$LOG_FILE") & -done +# moved to file + #for imapnotify_config in ~/Documents/passwords/*_imapnotify.json; do + # LOG_FILE=$(sed 's#/#_#g' <<< "$imapnotify_config" ) + # (sleep 60 && goimapnotify -conf "$imapnotify_config" &> ~/.cache/"$LOG_FILE") & + #done +~/bin/run_goimapnotify.sh & #ibus-daemon & diff --git a/bin/bin/run_goimapnotify.sh b/bin/bin/run_goimapnotify.sh new file mode 100755 index 0000000..222e7f6 --- /dev/null +++ b/bin/bin/run_goimapnotify.sh @@ -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 +