zathura is a minimalist document viewer with vim-like keybindings. Fast, keyboard-driven, and highly customizable.

Installation

Arch Linux:

sudo pacman -S zathura zathura-pdf-mupdf

When prompted for tesseract data (for OCR), select tesseract-data-eng for English.

Backend plugins

PluginFormats
zathura-pdf-mupdfPDF, EPUB, XPS (recommended)
zathura-pdf-popplerPDF (alternative)
zathura-djvuDjVu
zathura-psPostScript
zathura-cbComic books (CBZ/CBR)

Key Bindings

KeyAction
j/kScroll down/up
h/lScroll left/right
Ctrl+d/uHalf page down/up
gg/GFirst/last page
nGGo to page n
SpaceNext page

Zoom

KeyAction
+/-Zoom in/out
a`Fit page
sFit width

View

KeyAction
dToggle dual-page
rRotate
RReload
TabToggle index
F11Fullscreen

Other

KeyAction
/Search
n/NNext/prev match
yCopy selection
o/OOpen file
qQuit

Configuration

~/.config/zathura/zathurarc:

# Enable clipboard
set selection-clipboard clipboard
 
# Recolor for dark mode
set recolor true
set recolor-darkcolor "#ebdbb2"
set recolor-lightcolor "#282828"
 
# Default zoom
set zoom-min 10
set adjust-open "best-fit"
 
# Status bar
set statusbar-home-tilde true
 
# Window
set window-title-basename true
set window-title-page true

Make Default PDF Viewer

xdg-mime default org.pwmt.zathura.desktop application/pdf

Synctex (LaTeX integration)

For LaTeX editors that support synctex:

zathura --synctex-forward <line>:<col>:<input> <pdf>

Configure your editor to call this for forward search.

Tips

  • :help or man zathura for full documentation
  • Use :bmark to bookmark pages
  • Use i to invert colors (quick dark mode)
  • Index/TOC navigation with Tab is very useful for long documents