diff options
author | Amin Bandali <bandali@gnu.org> | 2019-04-12 23:39:24 -0400 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2019-04-13 00:40:17 -0400 |
commit | a92a01fe479e3b069e23297cb3b541eb273deb58 (patch) | |
tree | 092762963a81ac538b16deda8e2e1c7ea3fc1e2b /.local/bin/zathura-sync | |
parent | ec80f07afe6f0985de1aff4d321292c93b3cb4ef (diff) | |
download | configs-a92a01fe479e3b069e23297cb3b541eb273deb58.tar.gz configs-a92a01fe479e3b069e23297cb3b541eb273deb58.tar.xz configs-a92a01fe479e3b069e23297cb3b541eb273deb58.zip |
scripts: pull current scripts out of rc.org & clean up
battery-percentage-time: pull out of rc.org scripts
my-i3status: pull out of rc.org
rofi-light: pull out of rc.org
rofi-remmina: pull out of rc.org
s: pull out of rc.org
sway-ws-util: pull out of rc.org
toggle-presentation-mode: pull out of rc.org
toggle-tablet: pull out of rc.org
volume-info: pull out of rc.org
zathura-sync: pull out of rc.org
remove Scripts
Diffstat (limited to '.local/bin/zathura-sync')
-rwxr-xr-x | .local/bin/zathura-sync | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/bin/zathura-sync b/.local/bin/zathura-sync new file mode 100755 index 0000000..4384ffe --- /dev/null +++ b/.local/bin/zathura-sync @@ -0,0 +1,8 @@ +#!/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" ) |