Fix sleep timer
This commit is contained in:
parent
a07daf0f53
commit
87d788fb73
|
@ -168,7 +168,7 @@ in
|
||||||
Unit.Description = "Watch maildir for changes for account ${name}";
|
Unit.Description = "Watch maildir for changes for account ${name}";
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart = toString (pkgs.writeShellScript "watch-${name}-maildir" ''
|
ExecStart = toString (pkgs.writeShellScript "watch-${name}-maildir" ''
|
||||||
while sleep 1s; do
|
while ${pkgs.coreutils}/bin/sleep 1s; do
|
||||||
${quick-sync}
|
${quick-sync}
|
||||||
${pkgs.inotify-tools}/bin/inotifywait -e move,create,delete -r ${maildir}/${name}/Inbox
|
${pkgs.inotify-tools}/bin/inotifywait -e move,create,delete -r ${maildir}/${name}/Inbox
|
||||||
done
|
done
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart = toString (
|
ExecStart = toString (
|
||||||
pkgs.writeShellScript "watch-vdir" ''
|
pkgs.writeShellScript "watch-vdir" ''
|
||||||
while sleep 1s; do
|
while ${pkgs.coreutils}/bin/sleep 1s; do
|
||||||
${pkgs.taskwarrior}/bin/task sync
|
${pkgs.taskwarrior}/bin/task sync
|
||||||
${pkgs.inotify-tools}/bin/inotifywait -e move,create,delete,modify -r ${config.home.homeDirectory}/.task
|
${pkgs.inotify-tools}/bin/inotifywait -e move,create,delete,modify -r ${config.home.homeDirectory}/.task
|
||||||
done
|
done
|
||||||
|
|
|
@ -84,7 +84,7 @@ in
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart = toString (
|
ExecStart = toString (
|
||||||
pkgs.writeShellScript "watch-vdir" ''
|
pkgs.writeShellScript "watch-vdir" ''
|
||||||
while sleep 1s; do
|
while ${pkgs.coreutils}/bin/sleep 1s; do
|
||||||
${pkgs.vdirsyncer}/bin/vdirsyncer sync
|
${pkgs.vdirsyncer}/bin/vdirsyncer sync
|
||||||
${pkgs.inotify-tools}/bin/inotifywait -e move,create,delete,modify -r ${config.home.homeDirectory}/.contacts ${config.home.homeDirectory}/.calendars
|
${pkgs.inotify-tools}/bin/inotifywait -e move,create,delete,modify -r ${config.home.homeDirectory}/.contacts ${config.home.homeDirectory}/.calendars
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue