Switch taskmon to use inotify instead of a loop

This commit is contained in:
Talia 2021-02-18 11:49:26 +01:00
parent 156d8959e3
commit 3647b40e8d
1 changed files with 8 additions and 1 deletions

View File

@ -1,2 +1,9 @@
#!/bin/sh
clear; task; while sleep 10; do clear; task; done
clear
task
while
sleep 1 && inotifywait $HOME/.task/backlog.data -e CLOSE_WRITE > /dev/null 2>&1
do
clear
task
done