Skip to content

Commit ac4ac42

Browse files
committed
Update: Zathura reader
1 parent bca4490 commit ac4ac42

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

content/blog/zathura.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Here's my `zathurarc` configuration for a Gruvbox-themed experience:
5454
5555
# General Settings
5656
set guioptions "shv"
57-
set page-padding 1
57+
set page-padding 2
5858
set adjust-open "best-fit"
5959
set window-height 3000
6060
set window-width 3000
@@ -69,6 +69,7 @@ set selection-clipboard "clipboard"
6969
set database "sqlite"
7070
7171
# Notification Settings
72+
# https://github.com/eastack/zathura-gruvbox
7273
set notification-error-bg "rgba(242,229,188,1)" # bg
7374
set notification-error-fg "rgba(157,0,6,1)" # bright:red
7475
set notification-warning-bg "rgba(242,229,188,1)" # bg
@@ -120,13 +121,15 @@ map r reload
120121
map R rotate
121122
map c recolor
122123
map p print
123-
map g goto top
124+
map g goto top
125+
map <Return> goto
124126
map <C-b> feedkeys ":bmark "
125127
map u follow
126-
map <Return> toggle_presentation
127-
map [presentation] <Return> toggle_presentation
128+
map <C-f> toggle_presentation
129+
map [presentation] <C-f> toggle_presentation
128130
129131
# Index Mode
132+
# https://github.com/alezost/config/blob/master/zathura/zathurarc
130133
map [index] i toggle_index
131134
map [index] <Tab> navigate_index toggle
132135
map [index] <ShiftTab> navigate_index expand-all
@@ -136,10 +139,9 @@ I use this script to open files.
136139
```bash
137140
#!/bin/bash
138141
139-
# Select a book or paper using fd and fzf
142+
# Select a book using fd and fzf
140143
files=$(fd --follow --type f --extension pdf --extension epub | fzf --height 75% --reverse --no-info --multi --prompt "Select Book/Paper: ")
141144
142-
# Check if a selection was made
143145
if [[ -n "$files" ]]; then
144146
# Open each selected file
145147
while IFS= read -r file; do

0 commit comments

Comments
 (0)