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-mupdfWhen prompted for tesseract data (for OCR), select tesseract-data-eng for English.
Backend plugins
| Plugin | Formats |
|---|---|
zathura-pdf-mupdf | PDF, EPUB, XPS (recommended) |
zathura-pdf-poppler | PDF (alternative) |
zathura-djvu | DjVu |
zathura-ps | PostScript |
zathura-cb | Comic books (CBZ/CBR) |
Key Bindings
Navigation
| Key | Action |
|---|---|
j/k | Scroll down/up |
h/l | Scroll left/right |
Ctrl+d/u | Half page down/up |
gg/G | First/last page |
nG | Go to page n |
Space | Next page |
Zoom
| Key | Action |
|---|---|
+/- | Zoom in/out |
| a` | Fit page |
s | Fit width |
View
| Key | Action |
|---|---|
d | Toggle dual-page |
r | Rotate |
R | Reload |
Tab | Toggle index |
F11 | Fullscreen |
Other
| Key | Action |
|---|---|
/ | Search |
n/N | Next/prev match |
y | Copy selection |
o/O | Open file |
q | Quit |
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 trueMake Default PDF Viewer
xdg-mime default org.pwmt.zathura.desktop application/pdfSynctex (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
:helporman zathurafor full documentation- Use
:bmarkto bookmark pages - Use
ito invert colors (quick dark mode) - Index/TOC navigation with
Tabis very useful for long documents