1ZATHURARC(5) zathura ZATHURARC(5)
2
3
4
6 zathurarc - zathura configuration file
7
9 /etc/zathurarc, $XDG_CONFIG_HOME/zathura/zathurarc
10
12 The zathurarc file is a simple plain text file that can be populated
13 with various commands to change the behaviour and the look of zathura
14 which we are going to describe in the following subsections. Each line
15 (besides empty lines and comments (which start with a prepended #) is
16 evaluated on its own, so it is not possible to write multiple commands
17 in one single line.
18
20 set - Changing options
21 In addition to the built-in :set command zathura offers more options to
22 be changed and makes those changes permanent. To overwrite an option
23 you just have to add a line structured like the following
24
25 set <option> <new value>
26
27 The option field has to be replaced with the name of the option that
28 should be changed and the new value field has to be replaced with the
29 new value the option should get. The type of the value can be one of
30 the following:
31
32 · INT - An integer number
33
34 · FLOAT - A floating point number
35
36 · STRING - A character string
37
38 · BOOL - A boolean value ("true" for true, "false" for false)
39
40 In addition we advice you to check the options to get a more detailed
41 view of the options that can be changed and which values they should be
42 set to.
43
44 The following example should give some deeper insight of how the set
45 command can be used
46
47 set option1 5
48 set option2 2.0
49 set option3 hello
50 set option4 hello\ world
51 set option5 "hello world"
52
53 For colors, zathura supports HTML color codes and CSS3-style rgb(r,g,b)
54 and rgba(r,g,b,a) values. If you want to use color codes for some
55 options, make sure to quote them accordingly or to escape the hash sym‐
56 bol.
57
58 set default-fg "#CCBBCC"
59 set default-fg \#CCBBCC
60
61 For rgba, note that it parses the color components as integers between
62 0 and 255 and the alpha component as float between 0 and 1.
63
64 include - Including another config file
65 This commands allows one to include other configuration files. If a
66 relative path is given, the path will be resolved relative to the con‐
67 figuration file that is currently processed.
68
69 include another-config
70
71 map - Mapping a shortcut
72 It is possible to map or remap new key bindings to shortcut functions
73 which allows a high level of customization. The :map command can also
74 be used in the zathurarc file to make those changes permanent:
75
76 map [mode] <binding> <shortcut function> <argument>
77
78 Mode The map command expects several arguments where only the binding
79 as well as the shortcut-function argument is required. Since
80 zathura uses several modes it is possible to map bindings only
81 for a specific mode by passing the mode argument which can take
82 one of the following values:
83
84 · normal (default)
85
86 · fullscreen
87
88 · presentation
89
90 · index
91
92 The brackets around the value are mandatory.
93
94 Single key binding
95 The (possible) second argument defines the used key binding that
96 should be mapped to the shortcut function and is structured like
97 the following. On the one hand it is possible to just assign
98 single letters, numbers or signs to it:
99
100 map a shortcut_function optional_argument
101 map b shortcut_function optional_argument
102 map c shortcut_function optional_argument
103 map 1 shortcut_function optional_argument
104 map 2 shortcut_function optional_argument
105 map 3 shortcut_function optional_argument
106 map ! shortcut_function optional_argument
107 map ? shortcut_function optional_argument
108
109 Using modifiers
110 It is also possible to use modifiers like the Control or Alt
111 button on the keyboard. It is possible to use the following mod‐
112 ifiers:
113
114 · A - Alt
115
116 · C - Control
117
118 · S - Shift
119
120 If any of the modifiers should be used for a binding, it is
121 required to define the binding with the following structure:
122
123 map <A-a> shortcut_function
124 map <C-a> shortcut_function
125
126 Special keys
127 zathura allows it also to assign keys like the space bar or the
128 tab button which also have to be written in between angle brack‐
129 ets. The following special keys are currently available:
130
131 Identifier Description
132
133 BackSpace Back space
134 CapsLock Caps lock
135 Esc Escape
136 Down Arrow down
137 Up Arrow up
138 Left Arrow left
139 Right Arrow right
140 F1 F1
141 F2 F2
142 F3 F3
143 F4 F4
144 F5 F5
145 F6 F6
146 F7 F7
147 F8 F8
148 F9 F9
149 F10 F10
150 F11 F11
151 F12 F12
152 PageDown Page Down
153 PageUp Page Up
154 Return Return
155 Space Space
156 Super Windows key
157 Tab Tab
158 Print Print key
159
160 Of course it is possible to combine those special keys with a
161 modifier. The usage of those keys should be explained by the
162 following examples:
163
164 map <Space> shortcut_function
165 map <C-Space> shortcut_function
166
167 Mouse buttons
168 It is also possible to map mouse buttons to shortcuts by using
169 the following special keys:
170
171 Identifier Description
172
173 Button1 Mouse button 1
174 Button2 Mouse button 2
175 Button3 Mouse button 3
176 Button4 Mouse button 4
177 Button5 Mouse button 5
178
179 They can also be combined with modifiers:
180
181 map <Button1> shortcut_function
182 map <C-Button1> shortcut_function
183
184 Buffer commands
185 If a mapping does not match one of the previous definition but
186 is still a valid mapping it will be mapped as a buffer command:
187
188 map abc quit
189 map test quit
190
191 Shortcut functions
192 The following shortcut functions can be mapped:
193
194 · abort
195
196 Switch back to normal mode.
197
198 · adjust_window
199
200 Adjust page width. Possible arguments are best-fit and width.
201
202 · change_mode
203
204 Change current mode. Pass the desired mode as argument.
205
206 · display_link:
207
208 Display link target.
209
210 · exec:
211
212 Execute an external command.
213
214 · focus_inputbar
215
216 Focus inputbar.
217
218 · follow
219
220 Follow a link.
221
222 · goto
223
224 Go to a certain page.
225
226 · jumplist
227
228 Move forwards/backwards in the jumplist. Pass forward as argu‐
229 ment to move to the next entry and backward to move to the
230 previous one.
231
232 · navigate
233
234 Navigate to the next/previous page.
235
236 · navigate_index
237
238 Navigate through the index.
239
240 · print
241
242 Show the print dialog.
243
244 · quit
245
246 Quit zathura.
247
248 · recolor
249
250 Recolor pages.
251
252 · reload
253
254 Reload the document.
255
256 · rotate
257
258 Rotate the page. Pass rotate-ccw as argument for counterclock‐
259 wise rotation and rotate-cw for clockwise rotation.
260
261 · scroll
262
263 Scroll.
264
265 · search
266
267 Search next/previous item. Pass forward as argument to search
268 for the next hit and backward to search for the previous hit.
269
270 · set
271
272 Set an option.
273
274 · snap_to_page
275
276 Snaps to the current page. Equivalent to goto <current_page>
277
278 · toggle_fullscreen
279
280 Toggle fullscreen.
281
282 · toggle_index
283
284 Show or hide index.
285
286 · toggle_inputbar
287
288 Show or hide inputbar.
289
290 · toggle_page_mode
291
292 Toggle between one and multiple pages per row.
293
294 · toggle_statusbar
295
296 Show or hide statusbar.
297
298 · zoom
299
300 Zoom in or out.
301
302 · mark_add
303
304 Set a quickmark.
305
306 · mark_evaluate
307
308 Go to a quickmark.
309
310 · feedkeys
311
312 Simulate key presses. Note that all keys will be interpreted
313 as if pressing a key on the keyboard. To input uppercase let‐
314 ters, follow the same convention as for key bindings, i.e. for
315 X, use <S-X>.
316
317 Pass arguments
318 Some shortcut function require or have optional arguments which
319 influence the behaviour of them. Those can be passed as the last
320 argument:
321
322 map <C-i> zoom in
323 map <C-o> zoom out
324
325 Possible arguments are:
326
327 · best-fit
328
329 · bottom
330
331 · backward
332
333 · collapse
334
335 · collapse-all
336
337 · default
338
339 · down
340
341 · expand
342
343 · expand-all
344
345 · forward
346
347 · full-down
348
349 · full-up
350
351 · half-down
352
353 · half-up
354
355 · in
356
357 · left
358
359 · next
360
361 · out
362
363 · page-bottom
364
365 · page-top
366
367 · previous
368
369 · right
370
371 · rotate-ccw
372
373 · rotate-cw
374
375 · select
376
377 · specific
378
379 · toggle
380
381 · top
382
383 · up
384
385 · width
386
387 unmap - Removing a shortcut
388 In addition to mapping or remaping custom key bindings it is possible
389 to remove existing ones by using the :unmap command. The command is
390 used in the following way (the explanation of the parameters is
391 described in the map section of this document
392
393 unmap [mode] <binding>
394
396 This section describes settings concerning the behaviour of girara and
397 zathura. The settings described here can be changed with set.
398
399 girara
400 n-completion-items
401 Defines the maximum number of displayed completion entries.
402
403 · Value type: Integer
404
405 · Default value: 15
406
407 completion-bg
408 Defines the background color that is used for command line com‐
409 pletion entries
410
411 · Value type: String
412
413 · Default value: #232323
414
415 completion-fg
416 Defines the foreground color that is used for command line com‐
417 pletion entries
418
419 · Value type: String
420
421 · Default value: #DDDDDD
422
423 completion-group-bg
424 Defines the background color that is used for command line com‐
425 pletion group elements
426
427 · Value type: String
428
429 · Default value: #000000
430
431 completion-group-fg
432 Defines the foreground color that is used for command line com‐
433 pletion group elements
434
435 · Value type: String
436
437 · Default value: #DEDEDE
438
439 completion-highlight-bg
440 Defines the background color that is used for the current com‐
441 mand line completion element
442
443 · Value type: String
444
445 · Default value: #9FBC00
446
447 completion-highlight-fg
448 Defines the foreground color that is used for the current com‐
449 mand line completion element
450
451 · Value type: String
452
453 · Default value: #232323
454
455 default-fg
456 Defines the default foreground color
457
458 · Value type: String
459
460 · Default value: #DDDDDD
461
462 default-bg
463 Defines the default background color
464
465 · Value type: String
466
467 · Default value: #000000
468
469 exec-command
470 Defines a command the should be prepended to any command run
471 with exec.
472
473 · Value type: String
474
475 · Default value:
476
477 font Defines the font that will be used
478
479 · Value type: String
480
481 · Default value: monospace normal 9
482
483 guioptions
484 Shows or hides GUI elements. If it contains 'c', the command
485 line is displayed. If it contains 's', the statusbar is dis‐
486 played. If it contains 'h', the horizontal scrollbar is dis‐
487 played. If it contains 'v', the vertical scrollbar is dis‐
488 played.
489
490 · Value type: String
491
492 · Default value: s
493
494 inputbar-bg
495 Defines the background color for the inputbar
496
497 · Value type: String
498
499 · Default value: #131313
500
501 inputbar-fg
502 Defines the foreground color for the inputbar
503
504 · Value type: String
505
506 · Default value: #9FBC00
507
508 notification-bg
509 Defines the background color for a notification
510
511 · Value type: String
512
513 · Default value: #FFFFFF
514
515 notification-fg
516 Defines the foreground color for a notification
517
518 · Value type: String
519
520 · Default value: #000000
521
522 notification-error-bg
523 Defines the background color for an error notification
524
525 · Value type: String
526
527 · Default value: #FFFFFF
528
529 notification-error-fg
530 Defines the foreground color for an error notification
531
532 · Value type: String
533
534 · Default value: #FF1212
535
536 notification-warning-bg
537 Defines the background color for a warning notification
538
539 · Value type: String
540
541 · Default value: #FFFFFF
542
543 notification-warning-fg
544 Defines the foreground color for a warning notification
545
546 · Value type: String
547
548 · Default value: #FFF712
549
550 tabbar-fg
551 Defines the foreground color for a tab
552
553 · Value type: String
554
555 · Default value: #FFFFFF
556
557 tabbar-bg
558 Defines the background color for a tab
559
560 · Value type: String
561
562 · Default value: #000000
563
564 tabbar-focus-fg
565 Defines the foreground color for the focused tab
566
567 · Value type: String
568
569 · Default value: #9FBC00
570
571 tabbar-focus-bg
572 Defines the background color for the focused tab
573
574 · Value type: String
575
576 · Default value: #000000
577
578 show-scrollbars
579 Defines if both the horizontal and vertical scrollbars should be
580 shown or not. Deprecated, use 'guioptions' instead.
581
582 · Value type: Boolean
583
584 · Default value: false
585
586 show-h-scrollbar
587 Defines whether to show/hide the horizontal scrollbar. Depre‐
588 cated, use 'guioptions' instead.
589
590 · Value type: Boolean
591
592 · Default value: false
593
594 show-v-scrollbar
595 Defines whether to show/hide the vertical scrollbar. Deprecated,
596 use 'guioptions' instead.
597
598 · Value type: Boolean
599
600 · Default value: false
601
602 statusbar-bg
603 Defines the background color of the statusbar
604
605 · Value type: String
606
607 · Default value: #000000
608
609 statusbar-fg
610 Defines the foreground color of the statusbar
611
612 · Value type: String
613
614 · Default value: #FFFFFF
615
616 statusbar-h-padding
617 Defines the horizontal padding of the statusbar and notifica‐
618 tionbar
619
620 · Value type: Integer
621
622 · Default value: 8
623
624 statusbar-v-padding
625 Defines the vertical padding of the statusbar and notification‐
626 bar
627
628 · Value type: Integer
629
630 · Default value: 2
631
632 window-icon
633 Defines the path for a icon to be used as window icon.
634
635 · Value type: String
636
637 · Default value:
638
639 window-height
640 Defines the window height on startup
641
642 · Value type: Integer
643
644 · Default value: 600
645
646 window-width
647 Defines the window width on startup
648
649 · Value type: Integer
650
651 · Default value: 800
652
653 zathura
654 This section describes settings concerning the behaviour of zathura.
655
656 abort-clear-search
657 Defines if the search results should be cleared on abort.
658
659 · Value type: Boolean
660
661 · Default value: true
662
663 adjust-open
664 Defines which auto adjustment mode should be used if a document
665 is loaded. Possible options are "best-fit" and "width".
666
667 · Value type: String
668
669 · Default value: best-fit
670
671 advance-pages-per-row
672 Defines if the number of pages per row should be honored when
673 advancing a page.
674
675 · Value type: Boolean
676
677 · Default value: false
678
679 continuous-hist-save
680 Tells zathura whether to save document history at each page
681 change or only when closing a document.
682
683 · Value type: Boolean
684
685 · Default value: false
686
687 database
688 Defines the database backend to use for bookmarks and input his‐
689 tory. Possible values are "plain", "sqlite" (if built with
690 sqlite support) and "null". If "null" is used, bookmarks and
691 input history will not be stored.
692
693 · Value type: String
694
695 · Default value: plain
696
697 dbus-service
698 En/Disables the D-Bus service. If the services is disabled,
699 SyncTeX forward synchronization is not available.
700
701 · Value type: Boolean
702
703 · Default value: true
704
705 filemonitor
706 Defines the file monitor backend used to check for changes in
707 files. Possible values are "glib", "signal" (if signal handling
708 is supported), and "noop". The "noop" file monitor does not
709 trigger reloads.
710
711 · Value type: String
712
713 · Default value: glib
714
715 incremental-search
716 En/Disables incremental search (search while typing).
717
718 · Value type: Boolean
719
720 · Default value: true
721
722 highlight-color
723 Defines the color that is used for highlighting parts of the
724 document (e.g.: show search results)
725
726 · Value type: String
727
728 · Default value: #9FBC00
729
730 highlight-active-color
731 Defines the color that is used to show the current selected
732 highlighted element (e.g: current search result)
733
734 · Value type: String
735
736 · Default value: #00BC00
737
738 highlight-transparency
739 Defines the opacity of a highlighted element
740
741 · Value type: Float
742
743 · Default value: 0.5
744
745 page-padding
746 The page padding defines the gap in pixels between each rendered
747 page.
748
749 · Value type: Integer
750
751 · Default value: 1
752
753 page-cache-size
754 Defines the maximum number of pages that could be kept in the
755 page cache. When the cache is full and a new page that isn't
756 cached becomes visible, the least recently viewed page in the
757 cache will be evicted to make room for the new one. Large val‐
758 ues for this variable are NOT recommended, because this will
759 lead to consuming a significant portion of the system memory.
760
761 · Value type: Integer
762
763 · Default value: 15
764
765 page-thumbnail-size
766 Defines the maximum size in pixels of the thumbnail that could
767 be kept in the thumbnail cache per page. The thumbnail is scaled
768 for a quick preview during zooming before the page is rendered.
769 When the page is rendered, the result is saved as the thumbnail
770 only if the size is no more than this value. A larger value
771 increases quality but introduces longer delay in zooming and
772 uses more system memory.
773
774 · Value type: Integer
775
776 · Default value: 4194304 (4M)
777
778 pages-per-row
779 Defines the number of pages that are rendered next to each other
780 in a row.
781
782 · Value type: Integer
783
784 · Default value: 1
785
786 first-page-column
787 Defines the column in which the first page will be displayed.
788 This setting is stored separately for every value of
789 pages-per-row according to the following pattern <1 page per
790 row>:[<2 pages per row>[: ...]]. The last value in the list will
791 be used for all other number of pages per row if not set explic‐
792 itly.
793
794 Per default, the first column is set to 2 for double-page lay‐
795 out, i.e. the value is set to 1:2. A value of 1:1:3 would put
796 the first page in dual-page layout in the first column, and for
797 layouts with more columns the first page would be put in the 3rd
798 column.
799
800 · Value type: String
801
802 · Default value: 1:2
803
804 recolor
805 En/Disables recoloring
806
807 · Value type: Boolean
808
809 · Default value: false
810
811 recolor-keephue
812 En/Disables keeping original hue when recoloring
813
814 · Value type: Boolean
815
816 · Default value: false
817
818 recolor-darkcolor
819 Defines the color value that is used to represent dark colors in
820 recoloring mode
821
822 · Value type: String
823
824 · Default value: #FFFFFF
825
826 recolor-lightcolor
827 Defines the color value that is used to represent light colors
828 in recoloring mode
829
830 · Value type: String
831
832 · Default value: #000000
833
834 recolor-reverse-video
835 Defines if original image colors should be kept while recolor‐
836 ing.
837
838 · Value type: Boolean
839
840 · Default value: false
841
842 render-loading
843 Defines if the "Loading..." text should be displayed if a page
844 is rendered.
845
846 · Value type: Boolean
847
848 · Default value: true
849
850 render-loading-bg
851 Defines the background color that is used for the "Loading..."
852 text.
853
854 · Value type: String
855
856 · Default value: #FFFFFF
857
858 render-loading-fg
859 Defines the foreground color that is used for the "Loading..."
860 text.
861
862 · Value type: String
863
864 · Default value: #000000
865
866 scroll-hstep
867 Defines the horizontal step size of scrolling by calling the
868 scroll command once
869
870 · Value type: Float
871
872 · Default value: -1
873
874 scroll-step
875 Defines the step size of scrolling by calling the scroll command
876 once
877
878 · Value type: Float
879
880 · Default value: 40
881
882 scroll-full-overlap
883 Defines the proportion of the current viewing area that should
884 be visible after scrolling a full page.
885
886 · Value type: Float
887
888 · Default value: 0
889
890 scroll-wrap
891 Defines if the last/first page should be wrapped
892
893 · Value type: Boolean
894
895 · Default value: false
896
897 show-directories
898 Defines if the directories should be displayed in completion.
899
900 · Value type: Boolean
901
902 · Default value: true
903
904 show-hidden
905 Defines if hidden files and directories should be displayed in
906 completion.
907
908 · Value type: Boolean
909
910 · Default value: false
911
912 show-recent
913 Defines the number of recent files that should be displayed in
914 completion. If the value is negative, no upper bounds are
915 applied. If the value is 0, no recent files are shown.
916
917 · Value type: Integer
918
919 · Default value: 10
920
921 scroll-page-aware
922 Defines if scrolling by half or full pages stops at page bound‐
923 aries.
924
925 · Value type: Boolean
926
927 · Default value: false
928
929 link-zoom
930 En/Disables the ability of changing zoom when following links.
931
932 · Value type: Boolean
933
934 · Default value: true
935
936 link-hadjust
937 En/Disables aligning to the left internal link targets, for
938 example from the index.
939
940 · Value type: Boolean
941
942 · Default value: true
943
944 search-hadjust
945 En/Disables horizontally centered search results.
946
947 · Value type: Boolean
948
949 · Default value: true
950
951 window-title-basename
952 Use basename of the file in the window title.
953
954 · Value type: Boolean
955
956 · Default value: false
957
958 window-title-home-tilde
959 Display a short version of the file path, which replaces $HOME
960 with ~, in the window title.
961
962 · Value type: Boolean
963
964 · Default value: false
965
966 window-title-page
967 Display the page number in the window title.
968
969 · Value type: Boolean
970
971 · Default value: false
972
973 statusbar-basename
974 Use basename of the file in the statusbar.
975
976 · Value type: Boolean
977
978 · Default value: false
979
980 statusbar-home-tilde
981 Display a short version of the file path, which replaces $HOME
982 with ~, in the statusbar.
983
984 · Value type: Boolean
985
986 · Default value: false
987
988 zoom-center
989 En/Disables horizontally centered zooming.
990
991 · Value type: Boolean
992
993 · Default value: false
994
995 vertical-center
996 Center the screen at the vertical midpoint of the page by
997 default.
998
999 · Value type: Boolean
1000
1001 · Default value: false
1002
1003 zoom-max
1004 Defines the maximum percentage that the zoom level can be.
1005
1006 · Value type: Integer
1007
1008 · Default value: 1000
1009
1010 zoom-min
1011 Defines the minimum percentage that the zoom level can be.
1012
1013 · Value type: Integer
1014
1015 · Default value: 10
1016
1017 zoom-step
1018 Defines the amount of percent that is zoomed in or out on each
1019 command.
1020
1021 · Value type: Integer
1022
1023 · Default value: 10
1024
1025 selection-clipboard
1026 Defines the X clipboard into which mouse-selected data will be
1027 written. When it is "clipboard", selected data will be written
1028 to the CLIPBOARD clipboard, and can be pasted using the Ctrl+v
1029 key combination. When it is "primary", selected data will be
1030 written to the PRIMARY clipboard, and can be pasted using the
1031 middle mouse button, or the Shift-Insert key combination.
1032
1033 · Value type: String
1034
1035 · Default value: primary
1036
1037 selection-notification
1038 Defines if a notification should be displayed after selecting
1039 text.
1040
1041 · Value type: Boolean
1042
1043 · Default value: true
1044
1045 synctex
1046 En/Disables SyncTeX backward synchronization support.
1047
1048 · Value type: Boolean
1049
1050 · Default value: true
1051
1052 synctex-editor-command
1053 Defines the command executed for SyncTeX backward synchroniza‐
1054 tion.
1055
1056 · Value type: String
1057
1058 · Default value:
1059
1060 index-fg
1061 Defines the foreground color of the index mode.
1062
1063 · Value type: String
1064
1065 · Default value: #DDDDDD
1066
1067 index-bg
1068 Define the background color of the index mode.
1069
1070 · Value type: String
1071
1072 · Default value: #232323
1073
1074 index-active-fg
1075 Defines the foreground color of the selected element in index
1076 mode.
1077
1078 · Value type: String
1079
1080 · Default value: #232323
1081
1082 index-active-bg
1083 Define the background color of the selected element in index
1084 mode.
1085
1086 · Value type: String
1087
1088 · Default value: #9FBC00
1089
1090 sandbox
1091 Defines the sandbox mode to use for the seccomp syscall filter.
1092 Possible values are "none", "normal" and "strict". If "none" is
1093 used, the sandbox will be disabled. The use of "normal" will
1094 provide minimal protection and allow normal use of zathura with
1095 support for all features. The "strict" mode is a read only sand‐
1096 box that is intended for viewing documents only.
1097
1098 · Value type: String
1099
1100 · Default value: normal
1101
1102 Some features are disabled when using strict sandbox mode:
1103
1104 · saving/writing files
1105
1106 · use of input methods like ibus
1107
1108 · printing
1109
1110 · bookmarks and history
1111
1112 No feature regressions are expected when using normal sandbox
1113 mode.
1114
1115 When running under WSL, the default is "none" since seccomp is
1116 not supported in that environment.
1117
1118 window-icon-document
1119 Defines whether the window document should be updated based on
1120 the first page of a dcument.
1121
1122 · Value type: Boolean
1123
1124 · Default value: false
1125
1126 page-right-to-left
1127 Defines whether pages in multi-column view should start from the
1128 right side.
1129
1130 · Value type: Boolean
1131
1132 · Default value: false
1133
1135 zathura(1)
1136
1138 pwmt.org
1139
1141 2009-2020, pwmt.org
1142
1143
1144
1145
11460.4.7 2020-09-03 ZATHURARC(5)