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.
I recently came across another document viewer called Zathura.
Enjoy a mouse-free document reading experience with Zathura
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.
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.
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.
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
sudo pacman -Sy zathura
And if you want to have a look at its source code, you may visit its GitLab repository:
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.