set font                        "Sarasa Mono J 12"

# set recolor-reverse-video       "true"
# set recolor                     "true"
# set recolor-keephue             "true"
# --- Nord --- #
set default-bg                  "#2e3440"
set default-fg                  "#d8dee9"
set statusbar-fg                "#88c0d0"
set statusbar-bg                "#3b4252"
set inputbar-bg                 "#3b4252"
set inputbar-fg                 "#ebcb8b"
set index-bg                    "#3b4252"
set index-fg                    "#d8dee9"
set index-active-bg             "#b48ead"
set index-active-fg             "#d8dee9"
set notification-bg             "#81a1c1"
set notification-fg             "#2e3440"
set notification-warning-bg     "#ebcb8b"
set notification-warning-fg     "#2e3440"
set notification-error-bg       "#bf616a"
set notification-error-fg       "#2e3440"
set highlight-color             "#ebcb8b"
set highlight-active-color      "#81a1c1"
set completion-highlight-fg     "#3b4252"
set completion-highlight-bg     "#81a1c1"
set completion-bg               "#3b4252"
set completion-fg               "#81a1c1"
set recolor-lightcolor          "#2e3440"
set recolor-darkcolor           "#d8dee9"
# -- OneDark -- #
# set default-bg                  "#282c34"
# set default-fg                  "#bbc2cf"
# set statusbar-fg                "#56b6c2"
# set statusbar-bg                "#3e4452"
# set inputbar-bg                 "#3e4452"
# set inputbar-fg                 "#e5c07b"
# set index-bg                    "#3e4452"
# set index-fg                    "#bbc2cf"
# set index-active-bg             "#c678dd"
# set index-active-fg             "#bbc2cf"
# set notification-bg             "#61afef"
# set notification-fg             "#282c34"
# set notification-warning-bg     "#e5c07b"
# set notification-warning-fg     "#282c34"
# set notification-error-bg       "#be5046"
# set notification-error-fg       "#282c34"
# set highlight-color             "#e5c07b"
# set highlight-active-color      "#61afef"
# set completion-highlight-fg     "#3e4452"
# set completion-highlight-bg     "#61afef"
# set completion-bg               "#3e4452"
# set completion-fg               "#61afef"
# set recolor-lightcolor          "#282c34"
# set recolor-darkcolor           "#bbc2cf"

# settings
set render-loading              "false"
set guioptions                  "hvs"
set window-height               1024
set window-width                960
set adjust-open                 width
set show-scrollbars             true
set scroll-page-aware           "true"
set scroll-step                 50
set scroll-full-overlap         0.01
set first-page-column           2
set pages-per-row               1
set window-title-basename       true
# set database                  sqlite
set selection-clipboard         clipboard
# set sandbox                   strict

# key bindings
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]     y scroll up
map [fullscreen] y scroll up
map [normal]     <C-y> scroll up
map [fullscreen] <C-y> scroll up
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]     <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
