ZATHURARC(5) | zathura | ZATHURARC(5) |
zathurarc - zathura configuration file
/etc/zathurarc, $XDG_CONFIG_HOME/zathura/zathurarc
The zathurarc file is a simple plain text file that can be populated with various commands to change the behaviour and the look of zathura which we are going to describe in the following subsections. Each line (besides empty lines and comments (which start with a prepended #) is evaluated on its own, so it is not possible to write multiple commands in one single line.
In addition to the built-in :set command zathura offers more options to be changed and makes those changes permanent. To overwrite an option you just have to add a line structured like the following
set <option> <new value>
The option field has to be replaced with the name of the option that should be changed and the new value field has to be replaced with the new value the option should get. The type of the value can be one of the following:
In addition we advice you to check the options to get a more detailed view of the options that can be changed and which values they should be set to.
The following example should give some deeper insight of how the set command can be used
set option1 5 set option2 2.0 set option3 hello set option4 hello\ world set option5 "hello world"
Especially for options with strings as values, note that escaping of special characters and white spaces is necessary. In the above example, option4 and option5 are both set to hello world, but set option6 hello world would set option6 only to hello.
For colors, zathura supports HTML color codes and CSS3-style rgb(r,g,b) and rgba(r,g,b,a) values. If you want to use color codes for some options, make sure to quote them accordingly or to escape the hash symbol.
set default-fg "#CCBBCC" set default-fg \#CCBBCC
For rgba, note that it parses the color components as integers between 0 and 255 and the alpha component as float between 0 and 1.
This commands allows one to include other configuration files. If a relative path is given, the path will be resolved relative to the configuration file that is currently processed.
include another-config
It is possible to map or remap new key bindings to shortcut functions which allows a high level of customization. The :map command can also be used in the zathurarc file to make those changes permanent:
map [mode] <binding> <shortcut function> <argument>
The brackets around the value are mandatory.
map a shortcut_function optional_argument map b shortcut_function optional_argument map c shortcut_function optional_argument map 1 shortcut_function optional_argument map 2 shortcut_function optional_argument map 3 shortcut_function optional_argument map ! shortcut_function optional_argument map ? shortcut_function optional_argument
If any of the modifiers should be used for a binding, it is required to define the binding with the following structure:
map <A-a> shortcut_function map <C-a> shortcut_function
Identifier Description BackSpace Back space CapsLock Caps lock Esc Escape Down Arrow down Up Arrow up Left Arrow left Right Arrow right F1 F1 F2 F2 F3 F3 F4 F4 F5 F5 F6 F6 F7 F7 F8 F8 F9 F9 F10 F10 F11 F11 F12 F12 PageDown Page Down PageUp Page Up Return Return Space Space Super Windows key Tab Tab Print Print key
Of course it is possible to combine those special keys with a modifier. The usage of those keys should be explained by the following examples:
map <Space> shortcut_function map <C-Space> shortcut_function
Identifier Description Button1 Mouse button 1 Button2 Mouse button 2 Button3 Mouse button 3 Button4 Mouse button 4 Button5 Mouse button 5
They can also be combined with modifiers:
map <Button1> shortcut_function map <C-Button1> shortcut_function
map abc quit map test quit
Switch back to normal mode.
Adjust page width. Possible arguments are best-fit and width.
Change current mode. Pass the desired mode as argument.
Display link target.
Execute an external command. $FILE expands to the current document path, and $PAGE to the current page number.
Focus inputbar.
Follow a link.
Go to a certain page.
Move forwards/backwards in the jumplist. Pass forward as argument to move to the next entry and backward to move to the previous one.
Navigate to the next/previous page.
Navigate through the index.
Show the print dialog.
Quit zathura.
Recolor pages.
Reload the document.
Rotate the page. Pass rotate-ccw as argument for counterclockwise rotation and rotate-cw for clockwise rotation.
Scroll.
Search next/previous item. Pass forward as argument to search for the next hit and backward to search for the previous hit.
Set an option.
Snaps to the current page. Equivalent to goto <current_page>
Toggle fullscreen.
Show or hide index.
Show or hide inputbar.
Toggle between one and multiple pages per row.
Show or hide statusbar.
Zoom in or out.
Set a quickmark.
Go to a quickmark.
Simulate key presses. Note that all keys will be interpreted as if pressing a key on the keyboard. To input uppercase letters, follow the same convention as for key bindings, i.e. for X, use <S-X>.
map <C-i> zoom in map <C-o> zoom out
Possible arguments are:
In addition to mapping or remaping custom key bindings it is possible to remove existing ones by using the :unmap command. The command is used in the following way (the explanation of the parameters is described in the map section of this document
unmap [mode] <binding>
This section describes settings concerning the behaviour of girara and zathura. The settings described here can be changed with set.
Per default, the first column is set to 2 for double-page layout, i.e. the value is set to 1:2. A value of 1:1:3 would put the first page in dual-page layout in the first column, and for layouts with more columns the first page would be put in the 3rd column.
Some features are disabled when using strict sandbox mode:
The strict sandbox mode is still experimental with some libc implementations. Currently supported and tested libc implementations: glibc
No feature regressions are expected when using normal sandbox mode.
When running under WSL, the default is "none" since seccomp is not supported in that environment.
pwmt.org
2009-2022, pwmt.org
2022-11-27 | 0.5.2 |