mirror of https://github.com/Flinner/dots.git
feat: move goimapnotify to a seprate script
This commit is contained in:
parent
a8b1d4030b
commit
09cd13d288
|
@ -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 &
|
||||
|
|
|
@ -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
|
||||
|
Loading…
Reference in New Issue