Zathura: A Minimalist Document Viewer for Keyboard Shortcut Pros

Every Linux distribution comes with a document viewer app that lets you read PDF and other documents.

Most of the time, it is Evince from GNOME that is displayed as Document Viewer in Ubuntu and some other distributions. Evince is a handy tool and supports a wide variety of document formats.

However, there are other applications for reading documents. Take Foliate for example. It’s an excellent application for reading ebooks on Linux.

I recently came across another document viewer called Zathura.

Enjoy a mouse-free document reading experience with Zathura

Zathura is a highly customizable document viewer based on the girara user interface and several document libraries. girara implements a simple and minimalist user interface.

Zathura sure feels to load fast. It is minimalist, so you just get an application window with no sidebar, application menu or anything of that sort.

zathura document viewer interface
Zathura Document Viewer Interface

You may open its command line prompt by pressing the : key. You may close the CLI prompt with Esc key.

If you want to create a bookmark, type :bmark and then provide an index number to the bookmarked page.

bookmarking in zathura
Bookmarking in Zathura

You may highlight all the links by pressing the F key. It will also display a number beside the highlighted URL and the command line prompt will appear at the bottom. If you type the URL number and press enter, the URL will be opened in the default web browser.

follow link in zathura
Highlighting and opening links in documents

Zathura also has automatic reloading feature. So if you make some changes to the document with some other application, the changes will be reflected as Zathura reloads the document.

You may also install additional plugins to improve the capabilities of Zathura and use it for reading comics or PostScript.

The problem with Zathura is that you won’t see any documentation or help option anywhere on the application interface. This makes things a bit more difficult if you are not already familiar with the tool.

You may get the default keyboard shortcuts information from its man page. Here are a few of them:

  • R: Rotate
  • D: Toggle between single and double page viewing mode
  • F: Highlight all links on the current screen
  • HJKL: Moving with the Vim type keys
  • Arrows or PgUp/PgDown or the mouse/touchpad for moving up and down
  • / and search for text, press n or N for moving to next or previous search (like less command)
  • Q: Close

You may find the documentation on the project website to learn about configuration, but I still found it confusing.

Installing Zathura on Linux

Zathura is available in the repositories of the most Linux distributions. I could see it available for Ubuntu, Fedora, Arch and Debian, thanks to the pkgs.org website. This means that you can use the package manager of your distribution or the software center to install it.

On Debian and Ubuntu based distributions, use this command to install Zathura:

sudo apt install zathura

On Fedora, use:

sudo dnf install zathura

Use pacman command on Arch Linux:

sudo pacman -Sy zathura

And if you want to have a look at its source code, you may visit its GitLab repository:

Conclusion

I’ll be honest with you. I am not a fan of mouse-free tools. This is why I prefer Nano over Vim as I cannot remember so many shortcuts.

I know there are people who swear by their keyboards. However, I would prefer not to spend time learning to configure a document viewer. This is more because I do not read too many documents on my desktop and for the limited PDF viewing, the default application is sufficient.

It’s not that Zathura does not have it usage. If you are someone who has to deal a lot with documents, be it PDF or LaTex, Zathura could be your next favorite tool if you are a keyboard love.

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries πŸ•΅οΈβ€β™‚οΈ

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.