From ca3a844af240ca87882522d14b530e0f1a6327ef Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Tue, 6 Oct 2020 00:14:12 -0400 Subject: Move user-level configs out of rc.org I will keep rc.org around for now, only for system-level (global) config files. --- .local/bin/zathura-sync | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 .local/bin/zathura-sync (limited to '.local/bin/zathura-sync') diff --git a/.local/bin/zathura-sync b/.local/bin/zathura-sync new file mode 100755 index 0000000..89dc620 --- /dev/null +++ b/.local/bin/zathura-sync @@ -0,0 +1,7 @@ +#!/bin/sh +pos="$1" +pdffile="$2" +zathura --synctex-forward "$pos" "$pdffile" || \ + ( + zathura -x "emacsclient --eval '(progn (switch-to-buffer (file-name-nondirectory \"%{input}\")) (goto-line %{line}))'" "$pdffile" & + sleep 1; zathura --synctex-forward "$pos" "$pdffile" ) -- cgit v1.2.3-60-g2f50