ZATHURA(1)

πŸ’– NAME πŸ’–

okay so bestie, this is the manual page for zathura(1) β€” literally a document viewer. that's the name section, but stay for the rest because it's lowkey iconic.

🌈 SYNOPSIS 🌈

the whole launch vibe is:

zathura [-c PATH] [-d PATH] [-p PATH] [-w PASSWORD] [-P NUMBER] [--fork]
[-l LEVEL] [-s] [-x CMD] [--synctex-forward INPUT] [--synctex-pid PID]
[-find STRING] <files>

tiny note: -s is chillin' in that synopsis, and this page doesn't give it an options-list description, so I'm not gonna invent lore. periodt πŸ’…

✨ DESCRIPTION ✨

zathura is a highly customizable and functional document viewer. it gives you a minimalistic and space-saving interface, plus easy usage that mainly focuses on keyboard interaction. keyboard main character energy, fr fr.

zathura displays the given files. if a single hyphen-minus (-) is given as file name, the content will be read from the standard input. if no files are given, an empty zathura instance launches.

πŸŽ€ OPTIONS πŸŽ€

every flag, every vibe, no skipping:

  • -c, --config-dir=path β€” path to the config directory.
  • -d, --data-dir=path β€” path to the data directory.
  • -p, --plugins-dir=path β€” path to the directory containing plugins.
  • -w, --password=password β€” the document's password. if multiple documents are opened at once, the password will be used for the first one, and zathura will ask for the passwords of the remaining files if needed.
  • -P, --page=number β€” opens the document at the given page number. pages are numbered starting with 1, and negative numbers indicate page numbers starting from the end of the document, -1 being the last page.
  • -f, --find=string β€” opens the document and searches for the given string.
  • -l, --log-level=level β€” set log level (debug, info, warning, error).
  • -x, --synctex-editor-command=command β€” set the SyncTeX editor command. overrides the synctex-editor-command setting.
  • --synctex-forward=input β€” jump to the given position. the switch expects the same format as specified for synctex's view -i. if no instance is running for the specified document, a new instance will be launched (only if --synctex-pid is not specified).
  • --synctex-pid=pid β€” instead of looking for an instance having the correct file opened, try only the instance with the given PID. note that if the given PID does not have the correct file open or does not exist, no new instance will be spanned.
  • --mode=mode β€” start in a non-default mode.
  • --fork β€” fork into background.
  • --version β€” display version string and exit.
  • --help β€” display help and exit.

πŸ–±οΈβŒ¨οΈ MOUSE AND KEY BINDINGS βŒ¨οΈπŸ–±οΈ

the keyboard is the main character here, and the mouse has its moments too.

🌟 General 🌟

  • J, PgDn β€” go to the next page.
  • K, PgUp β€” go to the previous page.
  • h, k, j, l β€” scroll to the left, down, up or right direction.
  • Left, Down, Up, Right β€” scroll to the left, down, up or right direction.
  • ^t, ^d, ^u, ^y β€” scroll a half page left, down, up or right.
  • t, ^f, ^b, space, <S-space>, y β€” scroll a full page left, down, up or right.
  • gg, G, nG β€” goto the first, the last or the nth page.
  • P β€” snaps to the current page.
  • H, L β€” goto top or bottom of the current page.
  • ^o, ^i β€” move backward and forward through the jump list.
  • ^j, ^k β€” bisect forward and backward between the last two jump points.
  • ^c, Escape β€” abort.
  • a, s β€” adjust window in best-fit or width mode.
  • /, ? β€” search for text.
  • n, N β€” search for the next or previous result.
  • o, O β€” open document.
  • f β€” follow links.
  • F β€” display link target.
  • c β€” copy link target into the clipboard.
  • : β€” enter command.
  • r β€” rotate by 90 degrees.
  • Meta-r β€” rotate page by 90 degrees.
  • ^r β€” recolor (grayscale and invert colors).
  • R β€” reload document.
  • Tab β€” show index and switch to Index mode.
  • d β€” toggle dual page view.
  • D β€” cycle opening column in dual page view.
  • F5 β€” switch to presentation mode.
  • F11 β€” switch to fullscreen mode.
  • ^m β€” toggle inputbar.
  • ^n β€” toggle statusbar.
  • Escape β€” hide notification bar.
  • +, -, = β€” zoom in, out or to the original size.
  • zI, zO, z0 β€” zoom in, out or to the original size.
  • n= β€” zoom to size n.
  • mX β€” set a quickmark to a letter or number X (may conflict with default action of X, e.g. 'O' or 'P').
  • 'X β€” goto quickmark saved at letter or number X.
  • q β€” quit.
  • w β€” toggle single-page mode.

πŸͺŸ Fullscreen mode πŸͺŸ

  • J, K β€” go to the next or previous page.
  • space, <S-space>, <BackSpace> β€” scroll a full page down or up.
  • gg, G, nG β€” goto the first, the last or the nth page.
  • ^c, Escape β€” abort.
  • F11 β€” switch to normal mode.
  • +, -, = β€” zoom in, out or to the original size.
  • zI, zO, z0 β€” zoom in, out or to the original size.
  • n= β€” zoom to size n.
  • q β€” quit.

🎀 Presentation mode 🎀

  • space, <S-space>, <BackSpace> β€” scroll a full page down or up.
  • ^c, Escape β€” abort.
  • F5 β€” switch to normal mode.
  • q β€” quit.

πŸ“‘ Index mode πŸ“‘

  • k, j β€” move to upper or lower entry.
  • Up, Down β€” move to upper or lower entry.
  • ^u, ^d β€” scroll and move up or down by half a screen.
  • l, Right, zo β€” expand entry.
  • zO β€” expand entry recursively.
  • L, zR β€” expand all entries.
  • h, Left, zc β€” collapse entry.
  • zC β€” collapse entry recursively.
  • H, zM β€” collapse all entries.
  • space, Return, ^j β€” select and open entry.
  • gg, G β€” goto the first or last entry.
  • Tab, Escape, ^[, ^c β€” hide index and switch to normal mode.

πŸ–±οΈ Mouse bindings πŸ–±οΈ

  • Scroll β€” scroll up or down.
  • ^Scroll β€” zoom in or out.
  • Drag Button2 (middle button drag) β€” pan the document.
  • Button1 (left click) β€” follow link.
  • Drag Button1 β€” select text.
  • Drag S-Button1 β€” highlight region.
  • Button3 (right click) β€” open popup menu to copy/save image (activates for images recognized by export command).

πŸ’» COMMANDS πŸ’»

  • bmark β€” save a bookmark.
  • bdelete β€” delete a bookmark.
  • blist β€” list bookmarks.
  • bjump β€” jump to given bookmark.
  • jumplist β€” show recent jumps in jumplist (by default last 5). optional argument specifies number of entries to show. negative value "-N" shows all except the first "N" entries.
  • mark β€” set a quickmark.
  • delmarks β€” delete a quickmark. abbreviation: delm.
  • close β€” close document.
  • quit β€” quit zathura. abbreviation: q.
  • exec β€” execute an external command. $FILE expands to the current document path, $PAGE to the current page number, and $DBUS to the bus name of the D-Bus interface. alias: ! (space is still needed after).
  • info β€” show document information.
  • open β€” open a document. abbreviation: o.
  • offset β€” set page offset.
  • print β€” print document.
  • write(!) β€” save document (and force overwriting). alias: save(!).
  • export β€” export attachments. first argument specifies the attachment identifier (use completion with Tab), second argument gives the target filename (relative to current working directory).
  • dump β€” write values, descriptions, etc. of all current settings to a file.
  • source β€” source a configuration file. it is possible to change the config directory by passing an argument.
  • hlsearch β€” highlight current search results.
  • nohlsearch β€” remove highlights of current search results. abbreviation: nohl.
  • version β€” show version information.

πŸ› οΈ CONFIGURATION πŸ› οΈ

the default appearance and behaviour of zathura can be overwritten by modifying the zathurarc file (default path: ~/.config/zathura/zathurarc). for a detailed description please consult zathurarc(5).

🧚 SYNCTEX SUPPORT 🧚

both SyncTeX forward and backwards synchronization are supported by zathura. to enable SyncTeX forward synchronization, please look at the --synctex-forward and --synctex-editor options. zathura will also emit a signal via the D-Bus interface. to support synctex backwards synchronization, zathura provides a D-Bus interface that can be called by the editor. for convince, zathura also knows how to parse the output of the synctex view command. it is enough to pass the arguments to synctex view's -i option to zathura via --synctex-forward, and zathura will pass the information to the correct instance.

for gvim forward and backwards synchronization support can be set up as follows: first add the following to the vim configuration:

function! Synctex()
  execute "silent !zathura --synctex-forward " . line('.') . ":" . col('.') . ":" . bufname('%') . " " . g:syncpdf
  redraw!
endfunction
map <C-enter> :call Synctex()<cr>

then launch zathura with:

zathura -x "gvim --servername vim -c \"let g:syncpdf='$1'\" --remote +%{line} %{input}" $file

some editors support zathura as viewer out of the box:

🌱 ENVIRONMENT VARIABLES 🌱

  • ZATHURA_PLUGINS_PATH β€” path to the directory containing plugins. this directory is only considered if no other directory was specified using --plugins-dir.

πŸ›‘οΈ SANDBOX πŸ›‘οΈ

the zathura-sandbox binary runs zathura with a seccomp and/or landlock based sandbox enabled. some features are disabled when using sandbox mode:

  • saving/writing files
  • use of input methods like ibus
  • printing
  • bookmarks and history
  • D-Bus integration
  • SyncTeX support
  • accessibility support

the sandbox mode is still experimental with some libc implementations. the current supported and tested libc implementation is glibc.

πŸ’€ KNOWN BUGS πŸ’€

if GDK_NATIVE_WINDOWS is enabled you will experience problems with large documents. in this case zathura might crash or pages cannot be rendered properly. disabling GDK_NATIVE_WINDOWS fixes this issue. the same issue may appear, if overlay-scrollbar is enabled in GTK_MODULES.

πŸ‘€ SEE ALSO πŸ‘€

πŸ–‹οΈ Author πŸ–‹οΈ

pwmt.org

2009-2026, pwmt.org

that's the whole zathura(1) manual, from zathura version 2026.10.23, dated 2026-10-23 β€” mwah, bye bestie! πŸ«ΆπŸ’–

πŸ“¦ where this page comes from