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) &
|
(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 &
|
||||||
|
|
|
@ -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