5 --------------------------
6 zathura configuration file
7 --------------------------
9 :Author: Sebastian Ramacher <s.ramacher@gmx.at>
16 /etc/zathurarc, ~/.config/zathura/zathurarc
21 The zathurarc contains various options controlling the behavior of zathura. One
22 can use the ``set`` and ``map`` commands:
24 * ``set`` [id] [value]
25 * ``map`` [key] [function] [argument] [mode]
27 They behave the same as the ``set`` and ``map`` commands in zathura. Any line
28 not starting with ``set`` or ``map`` will be ignored.
33 [id] and the corresponding [value] can be one of
35 * adjust_open [bestfit|width|noadjust] - adjust mode.
37 - bestfit: adjust to best fit
38 - width: adjust to width
39 - noadjust: don't adjust
42 uri_command [string] - command to open external URIs.
44 The string has to include a ``%s`` which will be replaced with the URI.
50 completion_hl_bgcolor,
51 completion_hl_fgcolor,
56 notification_e_bgcolor,
57 notification_e_fgcolor,
58 notification_w_bgcolor,
59 notification_w_fgcolor,
68 The color can be given as hex triplet (#rrggbb) or any color
69 string understood by GTK+ (e.g. red, green, blue, black, ...).
71 * default_text [string] - text displayed in the statusbar if no file is opened.
73 * font [string] - the used font.
76 width [int] - default height and width of the zathura window.
78 * labels [bool] - allow label mode.
80 * list_printer_command [string] - command to list all available printers.
82 * n_completion_items [int] - number of completion items to display.
84 * offset - page offset.
86 * print_command [string] - command to print the file.
88 The string has to include
89 ``%s`` four times. The first occurence of ``%s`` will be replaced with the
90 printer, the second with additional options given on the command line, the
91 third with the pages to print and the fourth with the filename.
93 * recolor [bool] - invert the image.
95 * save_position, save_zoom_level [bool] - save current page and zoom level in
98 * scroll_step [float] - scroll step.
100 * scroll_wrap [bool] - wrap scrolling at the end and beginning of the document.
104 show_inputbar [bool] -
105 show statusbar, inputbar and scrollbars.
107 * smooth_scrolling [float] - smooth scrolling.
109 * transparency [float] - transparency of rectangles.
113 zoom_step [float] - maximal and minimal zoom level and zoom step.
118 [key] can be a single character, ``<C-?>`` for ``Ctrl + ?`` like shortcuts,
119 where ``?`` stands for some key (e.g. ``<C-q>``). Also it can be ``<S-?>`` for
120 uppercase shortcuts or one of
122 ``<BackSpace>, <CapsLock>, <Down>, <Esc>, <F[1-12]>, <Left>, <PageDown>,
123 <PageUp>, <Return>, <Right>, <Space>, <Super>, <Tab>, <Up>``.
125 [function] and the corresponding [argument] can be one of
127 * abort - clear command line and buffer.
129 * change_buffer [delete_last]: change buffer.
131 - delete_last: delete last character
133 * change_mode [mode] - change mode.
135 For the possible modes see the list of modes below.
137 * focus_inputbar - focus the inputbar.
138 * follow - follow a URI.
139 * navigate [next|previous|left|right] - navigate the document.
140 * navigate_index [up|down|expand|collapse|select] - nagivate the index.
141 * quit - quit zathura.
142 * recolor - toogle recolor setting.
143 * reload - reload the file.
144 * rotate - rotate by 90 degrees clockwise.
145 * scroll [up|down|half_up|half_down|full_up|full_down|left|right] - scroll.
146 * search [string] - search for the specified string.
147 * switch_goto_mode - toogle goto mode.
148 * toggle_fullscreen - toogle fullscreen mode.
149 * toggle_index - toogle index mode.
150 * toggle_inputbar - toogle inputbar display setting.
151 * toogle_statusbar - toogle statusbar display setting.
152 * zoom [in|out|float] - zoom in, out or to a specific zooming level.
163 If [mode] is omitted, all will be used.
173 set statusbar_bgcolor #00FF00
174 set statusbar_fgcolor red
179 set adjust_open width
182 map <PageUp> navigate previous
183 map <PageDown> navigate next