typstwatch: wait for output file to appear before launching viewer

This commit is contained in:
LordMZTE 2024-10-21 14:10:48 +02:00
parent 35737f9d04
commit a2b3d282d4
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -4,4 +4,6 @@ trap 'kill $(jobs -p); rm "$tmpf"' EXIT
typst watch "$1" "$tmpf" "${@:2}" &
while [ ! -f "$tmpf" ]; do sleep 1; done
zathura "$tmpf"