scripts: pull current scripts out of rc.org & clean up
[~bandali/configs] / .local / bin / zathura-sync
1 #!/bin/sh
2
3 pos="$1"
4 pdffile="$2"
5 zathura --synctex-forward "$pos" "$pdffile" || \
6 (
7 zathura -x "emacsclient --eval '(progn (switch-to-buffer (file-name-nondirectory \"%{input}\")) (goto-line %{line}))'" "$pdffile" &
8 sleep 1; zathura --synctex-forward "$pos" "$pdffile" )