Compare commits
2 Commits
7687127136
...
1c6f497aee
Author | SHA1 | Date | |
---|---|---|---|
1c6f497aee | |||
f69a0c3af3 |
4
todo.css
4
todo.css
|
@ -8,6 +8,10 @@
|
||||||
margin-top: 1.5em;
|
margin-top: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.due_today {
|
||||||
|
color: #400;
|
||||||
|
}
|
||||||
|
|
||||||
.completed {
|
.completed {
|
||||||
display: none;
|
display: none;
|
||||||
color: darkgrey;
|
color: darkgrey;
|
||||||
|
|
23
watch_todo_debounced.sh
Executable file
23
watch_todo_debounced.sh
Executable file
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This script assumes debounce.sh from
|
||||||
|
# https://github.com/MerkleBros/debounce.sh
|
||||||
|
# is in the path.
|
||||||
|
|
||||||
|
cd "$(dirname "$0")" || exit
|
||||||
|
if [ ! -d ".venv" ]
|
||||||
|
then
|
||||||
|
python -m venv .venv
|
||||||
|
. .venv/bin/activate
|
||||||
|
pip install -r requirements.txt
|
||||||
|
else
|
||||||
|
. .venv/bin/activate
|
||||||
|
fi
|
||||||
|
|
||||||
|
name="$(basename "$(basename "$1")" .txt)"
|
||||||
|
echo "Watching $1 and writing to $2/$name.html"
|
||||||
|
while true
|
||||||
|
do
|
||||||
|
inotifywait -e close_write "$1" >/dev/null
|
||||||
|
echo "TODO file updated."
|
||||||
|
done | debounce.sh read 5 "./todotxt-to-html.py - \"$name\" < \"$1\" > \"$2/$name.html\""
|
Loading…
Reference in New Issue
Block a user