Skip to content

Commit

Permalink
CONF: Init zathura
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Jan 25, 2022
1 parent e8aa387 commit 3738681
Show file tree
Hide file tree
Showing 3 changed files with 148 additions and 0 deletions.
58 changes: 58 additions & 0 deletions dot_config/zathura/zathuraColemak
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
##########
# Normal #
##########
# Normal mode is the default

# hjkl → hnei
map h scroll left
map n scroll down
map e scroll up
map i scroll right

map N scroll half-down
map E scroll half-up

map k search forward
map K search backward

map <PageUp> navigate previous
map <PageDown> navigate next

# Harmonize with Emacs
unmap o
map o toggle_index

# Quit with intent
unmap q
map Q quit

#########
# Index #
#########
# For TOC navigation
map [index] o toggle_index

# hjkl → hnei
map [index] n navigate_index down
map [index] e navigate_index up
map [index] h navigate_index collapse
map [index] i navigate_index expand

map [index] H navigate_index collapse-all
map [index] I navigate_index expand-all

unmap [index] q
map [index] Q quit

##############
# References #
##############
# https://github.com/pwmt/zathura/blob/develop/doc/man/zathurarc.5.rst
# https://github.com/igwan/dotfiles/blob/66d9eee0ffe4e4f67dedbbc5a28167559cbfa056/zathura/.config/zathura/zathurarc
# https://github.com/deterenkelt/dotfiles/blob/9674e4c974f0c2cb52302c36bcae7f3cfa4aa3d5/.config/zathura/zathurarc
# https://wiki.archlinux.org/index.php/Zathura

# Emacs Stuff (cross platform)
# Local Variables:
# mode: conf-space
# End:
42 changes: 42 additions & 0 deletions dot_config/zathura/zathuraThemerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Colors
# From https://github.com/nicodebo/base16-zathura
# Base16 Spacemacs
# Author: Nasser Alshammari (https://github.com/nashamri/spacemacs-theme)

set default-bg "#1f2022"
set default-fg "#282828"

set statusbar-fg "#b8b8b8"
set statusbar-bg "#444155"

set inputbar-bg "#1f2022"
set inputbar-fg "#f8f8f8"

set notification-bg "#1f2022"
set notification-fg "#f8f8f8"

set notification-error-bg "#1f2022"
set notification-error-fg "#f2241f"

set notification-warning-bg "#1f2022"
set notification-warning-fg "#f2241f"

set highlight-color "#b1951d"
set highlight-active-color "#4f97d7"

set completion-bg "#282828"
set completion-fg "#4f97d7"

set completion-highlight-fg "#f8f8f8"
set completion-highlight-bg "#4f97d7"

set recolor-lightcolor "#1f2022"
set recolor-darkcolor "#e8e8e8"

set recolor "false"
set recolor-keephue "false"

# Emacs Stuff (cross platform)
# Local Variables:
# mode: conf-space
# End:
48 changes: 48 additions & 0 deletions dot_config/zathura/zathurarc.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
###########
# Zathura #
###########

# Values from http://manpages.ubuntu.com/manpages/trusty/man5/zathurarc.5.html
# Also here https://pwmt.org/projects/zathura/documentation/

# best-fit width
set adjust-open width

# Use the X11 clipboard
# primary clipboard
# primary uses Shift+Insert to paste
# clipboard uses the traditional method to paste
set selection-clipboard clipboard

# Try the database
# plain null sql
set database sqlite

# Defines if scrolling by half or full pages stops at page boundaries.
# true false
set scroll-page-aware true

# En/Disables the ability of changing zoom when following links.
# true false
set link-zoom false

# Use basename of the file in the window title.
# true false
set window-title-basename true

# Display a short version of the file path, which replaces $HOME with ~, in the statusbar.
# true false
set statusbar-home-tilde true

# Put themes in a separate file
include zathuraThemerc

# If colemak: {{ if eq .key_layout "colemak" }}
# Put colemak bindings in a separate file
include zathuraColemak
# End colemak: {{ end}}

# Emacs Stuff (cross platform)
# Local Variables:
# mode: conf-space
# End:

0 comments on commit 3738681

Please sign in to comment.