Skip to content

Instantly share code, notes, and snippets.

@lucaspar
Last active September 10, 2026 22:03
Show Gist options
  • Select an option

  • Save lucaspar/6b95384d64648bbfd9fea70be11b02b1 to your computer and use it in GitHub Desktop.

Select an option

Save lucaspar/6b95384d64648bbfd9fea70be11b02b1 to your computer and use it in GitHub Desktop.
Zathura PDF viewer config file
# -- zathurarc ------------------------------
# reference: https://manpages.ubuntu.com/manpages/stonking/man5/zathurarc.5.html
# Press Ctrl-R to toggle recoloring (dark/default views)
# -- Window ---------------------------------
set window-height 1024
set window-width 768
set adjust-open "best-fit"
# set show-scrollbars true
set window-title-basename true
set window-title-page true
set page-v-padding 3
set page-h-padding 3
# set database sqlite
# -- Performance ---------------------------
set page-cache-size 15
set page-thumbnail-size 8388608
# -- Scrolling & Navigation -----------------
set scroll-step 30
set scroll-wrap false
set scroll-page-aware true
set first-page-column 2
set selection-clipboard clipboard
set selection-notification false
# -- Keybindings ----------------------------
# map <C-[> abort # Still doesn't work :(
map [normal] <F11> toggle_fullscreen
map [fullscreen] <F11> toggle_fullscreen
map [normal] <C-l> reload
map [fullscreen] <C-l> reload
map [normal] e scroll down
map [fullscreen] e scroll down
map [normal] <C-e> scroll down
map [fullscreen] <C-e> scroll down
map [normal] <C-y> scroll up
map [fullscreen] <C-y> scroll up
map [normal] y copy_filepath
map [fullscreen] y copy_filepath
map [normal] R rotate rotate-ccw
map [fullscreen] R rotate rotate-ccw
map [normal] <PageUp> navigate previous
map [fullscreen] <PageUp> navigate previous
map [normal] <PageDown> navigate next
map [fullscreen] <PageDown> navigate next
map [normal] <Left> navigate previous
map [fullscreen] <Left> navigate previous
map [normal] <Right> navigate next
map [fullscreen] <Right> navigate next
map [normal] gg goto 0
map [normal] G goto -1
map [normal] n search forward
map [normal] N search backward
map [normal] o focus_inputbar
map [normal] p print
map [normal] w toggle_single_page_mode
map [normal] D cycle_first_column
map [fullscreen] D cycle_first_column
map [normal] <C-r> recolor
map [fullscreen] <C-r> recolor
map [normal] <A-1> set "first-page-column 1:1"
map [fullscreen] <A-1> set "first-page-column 1:1"
map [normal] <A-2> set "first-page-column 1:2"
map [fullscreen] <A-2> set "first-page-column 1:2"
map [fullscreen] a adjust_window best-fit
map [fullscreen] s adjust_window width
map [fullscreen] f follow
map [fullscreen] d toggle_page_mode 2
map [fullscreen] <Tab> toggle_index
map [fullscreen] j scroll down
map [fullscreen] k scroll up
map [fullscreen] <C-d> scroll half-down
map [fullscreen] <C-u> scroll half-up
map [fullscreen] <C-o> jumplist backward
map [fullscreen] <C-i> jumplist forward
map [index] q quit
# -- Theme ----------------------------------
# -- Base
set font "inconsolata 11"
set default-bg "#1e1e2e"
set default-fg "#e0e0e0"
# -- Statusbar
set statusbar-bg "#282840"
set statusbar-fg "#9a9aba"
set statusbar-h-padding 12
set statusbar-v-padding 4
set statusbar-page-percent true
set statusbar-home-tilde true
# -- Inputbar
set inputbar-bg "#1e1e2e"
set inputbar-fg "#c8c8e0"
# -- Notifications
set notification-error-bg "#7a3a3a"
set notification-error-fg "#e0e0e0"
set notification-warning-bg "#7a5a3a"
set notification-warning-fg "#e0e0e0"
set notification-bg "#6a8a4a"
set notification-fg "#1e1e2e"
# -- Highlights
set highlight-color "#e0b070"
set highlight-active-color "#5a8fa5"
set highlight-fg "#1e1e2e"
# -- Index
set index-bg "#282840"
set index-fg "#c0c0d8"
set index-active-bg "#5a8fa5"
set index-active-fg "#1e1e2e"
# -- Completion
set completion-highlight-fg "#1e1e2e"
set completion-highlight-bg "#7a9a50"
set completion-bg "#282840"
set completion-fg "#c0c0d8"
set completion-group-bg "#1e1e2e"
set completion-group-fg "#9a9aba"
# -- Recolor (PDF recoloring)
set recolor "true"
set recolor-lightcolor "#1e1e2e"
set recolor-darkcolor "#d0d0e0"
set recolor-reverse-video "true"
set recolor-keephue "true"
# -- Render & Signatures
set render-loading true
set render-loading-bg "#282840"
set render-loading-fg "#9a9aba"
set signature-error-color "rgba(122,58,58,0.9)"
set signature-success-color "rgba(82,139,74,0.9)"
set signature-warning-color "rgba(122,90,58,0.9)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment