commit da08476077d70b80f0a5add0b93100a559533626
parent c82be29fdf442b496b96388c989a94feb8455cda
Author: Alex Balgavy <alex@balgavy.eu>
Date: Thu, 21 Jan 2021 21:32:28 +0100
zathura: install and configure
Diffstat:
4 files changed, 66 insertions(+), 7 deletions(-)
diff --git a/Brewfile b/Brewfile
@@ -16,6 +16,12 @@ tap "thezeroalpha/formulae", "git@github.com:thezeroalpha/homebrew-formulae"
tap "tzvetkoff/extras"
tap "universal-ctags/universal-ctags"
tap "vitorgalvao/tiny-scripts"
+tap "zegervdv/zathura"
+brew "gettext"
+brew "readline"
+brew "pkg-config"
+brew "gobject-introspection"
+brew "librsvg"
brew "ascii"
brew "asciidoctor"
brew "autoconf"
@@ -26,8 +32,6 @@ brew "bfg"
brew "node"
brew "bitwarden-cli"
brew "boost"
-brew "gettext"
-brew "readline"
brew "ghostscript"
brew "libtool"
brew "imagemagick"
@@ -39,7 +43,6 @@ brew "cmatrix"
brew "coreutils"
brew "diskonaut"
brew "djvu2pdf"
-brew "pkg-config"
brew "dopewars"
brew "dos2unix"
brew "dwm"
@@ -49,7 +52,6 @@ brew "exiftool"
brew "eye-d3"
brew "gmp"
brew "unbound"
-brew "gobject-introspection"
brew "ffmpeg"
brew "ffmpegthumbnailer"
brew "mpfr"
@@ -66,6 +68,7 @@ brew "gnuplot"
brew "go"
brew "gotags"
brew "gradle"
+brew "gtk+3"
brew "ncurses"
brew "htop"
brew "httpie"
@@ -81,7 +84,6 @@ brew "json-c"
brew "lf"
brew "libmpdclient"
brew "libressl"
-brew "librsvg"
brew "libstfl"
brew "libxml2"
brew "libzip"
@@ -91,6 +93,7 @@ brew "lsusb"
brew "lynx"
brew "man-db"
brew "mas"
+brew "meson"
brew "mp3val"
brew "mpc"
brew "mpd"
@@ -110,7 +113,6 @@ brew "pastel"
brew "pipes-sh"
brew "pipx"
brew "plantuml"
-brew "poppler"
brew "proselint"
brew "pup"
brew "pv"
@@ -137,7 +139,6 @@ brew "up"
brew "urlview"
brew "util-linux"
brew "vim"
-brew "vips"
brew "w3m"
brew "watch"
brew "wget"
@@ -153,6 +154,12 @@ brew "thezeroalpha/formulae/radio"
brew "tzvetkoff/extras/im2a"
brew "universal-ctags/universal-ctags/universal-ctags", args: ["HEAD"]
brew "vitorgalvao/tiny-scripts/cask-repair"
+brew "zegervdv/zathura/girara", args: ["HEAD"]
+brew "zegervdv/zathura/zathura", args: ["HEAD"]
+brew "zegervdv/zathura/zathura-cb"
+brew "zegervdv/zathura/zathura-djvu"
+brew "zegervdv/zathura/zathura-pdf-mupdf"
+brew "zegervdv/zathura/zathura-ps"
cask "adobe-digital-editions"
cask "amethyst"
cask "ampps"
diff --git a/dot.map b/dot.map
@@ -52,6 +52,7 @@ mpd: ~/.config/mpd
ncmpcpp: ~/.config/ncmpcpp
pipe-viewer: ~/.config/pipe-viewer
R: ~/.config/R
+zathura: ~/.config/zathura
# Config: X server (Linux)
xinitrc: ~/.xinitrc
diff --git a/scripts/opener b/scripts/opener
@@ -4,6 +4,7 @@ case $(file --mime-type "$1" -bL) in
text/*|application/json|inode/x-empty) { [ -n "$VIM_TERMINAL" ] && vimsend "$1"; } || ${EDITOR:-vim} "$1";;
image/*) setsid -f sxiv "$@" 2>&1;;
application/epub*) setsid -f ebook-viewer "$1" >/dev/null 2>&1;;
+ application/pdf*) setsid -f zathura "$1" >/dev/null 2>&1;;
application/x-sc|application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) sc-im "$1";;
video/*) mpvq "$@";;
audio/*) mpv --no-audio-display --no-video --volume=50 "$1";;
diff --git a/zathura/zathurarc b/zathura/zathurarc
@@ -0,0 +1,50 @@
+set sandbox none
+
+# Spacing around pages
+set statusbar-h-padding 0
+set statusbar-v-padding 0
+set page-padding 1
+
+# Copy to clipboard
+set selection-clipboard clipboard
+
+# Font size
+set font "sans-serif normal 12"
+
+# Dark mode colors
+set recolor-keephue
+set recolor-lightcolor "#111111"
+set recolor-darkcolor "#D2D2D2"
+
+# Use synctex
+set synctex true
+
+# guioptions - Shows or hides GUI elements.
+# 'c': command line
+# 's': statusbar
+# 'h': horizontal scrollbar
+# 'v': vertical scrollbar
+set guioptions "sv"
+
+# Mappings
+map u scroll half-up
+map d scroll half-down
+map D toggle_page_mode
+map r reload
+map R rotate
+map K zoom in
+map J zoom out
+map i recolor
+map P print
+map p snap_to_page
+map w adjust_window width
+map z adjust_window best-fit
+map b toggle_statusbar
+map <C-g> abort
+map Z toggle_fullscreen
+map [fullscreen] Z toggle_fullscreen
+map ; feedkeys :
+
+# External commands
+map O exec "open -a Skim $FILE"
+map ! feedkeys ":exec ''<Left>"