From 102cdbca1c3b481ec01be56cbcda48548c2c934e Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 2 Oct 2023 14:08:04 +0200 Subject: [PATCH] writing: Replace zathura with sioyek Replaced or extended all default references to zathura with sioyek so it will automatically take on any tasks meant for pdf reading. With the current configuration, hardly a change should be noticed. --- bootstrap/packages_stable.tsv | 1 + sh/.config/sh/env | 2 +- terminal/.config/vifm/vifmrc | 6 +++--- writing/.config/papis/config | 4 ++-- writing/README.md | 1 + 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/bootstrap/packages_stable.tsv b/bootstrap/packages_stable.tsv index cda548a..a93823b 100644 --- a/bootstrap/packages_stable.tsv +++ b/bootstrap/packages_stable.tsv @@ -274,6 +274,7 @@ screen Full-screen window manager that multiplexes a physical terminal R sfz A simple static file server A shellcheck-bin Shell script analysis tool (binary release, static) A shfmt Format shell programs R +sioyek PDF viewer for research papers and technical books. A slurp Select a region in a Wayland compositor R smartmontools Control and monitor S.M.A.R.T. enabled ATA and SCSI Hard Drives R snap-pac Pacman hooks that use snapper to create pre/post btrfs snapshots like openSUSE's YaST R diff --git a/sh/.config/sh/env b/sh/.config/sh/env index 5ba2ef8..c835c24 100644 --- a/sh/.config/sh/env +++ b/sh/.config/sh/env @@ -35,7 +35,7 @@ export BROWSER="qutebrowser" export TERMINAL="wezterm" export PAGER="less" -export FILEREADER="zathura" +export FILEREADER="sioyek" export FILEMANAGER="vifm" ## gopath diff --git a/terminal/.config/vifm/vifmrc b/terminal/.config/vifm/vifmrc index 020f129..688480a 100644 --- a/terminal/.config/vifm/vifmrc +++ b/terminal/.config/vifm/vifmrc @@ -358,7 +358,7 @@ set classify+=' ::*.doc,,*.docx::, ::*.xls,,*.xls[mx]::, ::*.pptx,,*.pp " Pdf filextype *.pdf \ { view as rich file } - \ zathura %c %i &, apvlv %c, xpdf %c, + \ sioyek %c %i, zathura %c %i &, apvlv %c, xpdf %c, \ { edit text content } \ pdftotext -nopgbrk %c - | nvim fileviewer *.pdf pdftotext -nopgbrk %c - @@ -366,14 +366,14 @@ fileviewer *.pdf pdftotext -nopgbrk %c - " PostScript filextype *.ps,*.eps,*.ps.gz \ {View in zathura} - \ zathura %f, + \ sioyek %f, zathura %f, \ {View in gv} \ gv %c %i &, " Djvu filextype *.djvu,*.epub \ {View in zathura} - \ zathura %f, + \ sioyek %f, zathura %f, \ {View in apvlv} \ apvlv %f, diff --git a/writing/.config/papis/config b/writing/.config/papis/config index 319d124..1797c7e 100644 --- a/writing/.config/papis/config +++ b/writing/.config/papis/config @@ -3,9 +3,9 @@ default-library = main formater = bbt local-config-file = .papis.config -# opentool = zathura +opentool = sioyek picktool = papis-tui -mark-opener = zathura -P {mark[value]} +mark-opener = sioyek --page {mark[value]} file-browser = vifm # edit info.yaml as new papers are added diff --git a/writing/README.md b/writing/README.md index 278e97d..cb13056 100644 --- a/writing/README.md +++ b/writing/README.md @@ -2,6 +2,7 @@ [bibtex](https://en.wikipedia.org/wiki/BibTeX) - plain-text reference management [zathura](git.pwmt.org) - keyboard-driven PDF reading +[sioyek](http://sioyek.info/) - keyboard-driven PDF reading *and annotating* This readme is a little out of date, as are the scripts below. They are old, I used them during my time as a student and they are probably written terribly.