dotfiles/zathura/.config/zathura/zathurarc
2022-02-18 02:30:38 +05:30

45 lines
1.4 KiB
Plaintext

# https://git.pwmt.org/pwmt/zathura/-/blob/develop/doc/man/zathura.1.rst
# https://github.com/pwmt/zathura/blob/develop/doc/configuration/map.rst#shortcut-functions
# https://wiki.archlinux.org/title/Zathura
# https://askubuntu.com/questions/472540/is-there-a-pdf-reader-allowing-me-to-change-background-color-of-arxiv-pdfs
# https://git.sr.ht/~troels/dotfiles/tree/master/.config/zathura/zathurarc
# https://github.com/YingboMa/config/blob/master/zathurarc
# https://gist.github.com/michaelmrose/9595075b43f24aa903fa
#set default-bg \#f0f0d1
#set sandbox strict
#set default-fgcolor "#f0f0d1"
set window-title-basename "true"
set selection-clipboard "clipboard"
# Set colors
set recolor true
set recolor-keephue
set recolor-lightcolor "#f0f0d1"
set recolor-darkcolor "#000000"
# Duplicate key bindings for scrolling
map [normal] <C-e> scroll down
map [normal] <C-y> scroll up
map [normal] <PageDown> scroll full-down
map [normal] <PageUp> scroll full-up
## Useful for pdf of presentation slides
map [normal] <Left> navigate previous
map [normal] <Right> navigate next
# Copy path of current file to clipboard
map [normal] <C-o> exec "bash -c \"echo $FILE | xclip -i -sel clip\""
# Don't make it that easy to quit zathura
unmap q
unmap [index] q # I guess default mode is normal mode
map Q quit
map [index] Q quit
# Index of document
#map i toggle_index # default key is Tab
#map u toggle_inputbar