"auto-reload on file change"-wrapper for the llpp pdfviewer
I really like the pdf viewer llpp, it is fast (build on mupdf) and provides very handy features like a presentation mode, a column mode, a bird’s eye mode and much more. The only thing I missed while creating pdfs is the ability to automatically reload pdfs on changes.
I’ve now hacked a script that used inotifywait to monitor the opened pdf for changes and sends the HUP signal to the llpp process. Until now I experienced no problems, but especially the part to kill inotifywait when llpp terminates (and to kill llpp when the script terminates) is hacky.
You can find the script on github.
Update: There was a bug mentioned on stackoverflow. It should be fixed in the current version on github. For details see the question on stackoverflow.