Compare commits

...

2 commits

Author SHA1 Message Date
892a02df2a
nix update 2024-11-05 08:08:05 +01:00
a20c3ea6bf
typstwatch: don't open half written files 2024-11-05 08:07:36 +01:00
2 changed files with 6 additions and 4 deletions

View file

@ -2,11 +2,11 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1730207978,
"narHash": "sha256-FnFkAqwoXfBoyWGBIVy17rT6sJK8HI09SlPmh6WKYJo=",
"lastModified": 1730729172,
"narHash": "sha256-RE6Fgw2FbVzWzRf5FD6LSIqSHTXq/hEm+GIqy7zcoe8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "6a1c602a1637c3b22c8a0b7123413ad84d7c51fe",
"rev": "eb36bf249929bfd7a94c5f9ee0f1972ded7b6931",
"type": "github"
},
"original": {

View file

@ -4,6 +4,8 @@ trap 'kill $(jobs -p); rm "$tmpf"' EXIT
typst watch "$1" "$tmpf" "${@:2}" &
while [ ! -f "$tmpf" ]; do sleep 1; done
# Without this, zathura may try to open a half-written file. This is a hack, but I don't know of a
# better approach.
sleep 1
zathura "$tmpf"