11 lines
377 B
Bash
Executable File
11 lines
377 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Find and open pdf
|
|
|
|
# Generate menu of book filenames and save paths
|
|
# Preview window contains metadata
|
|
selected="$(find /home/h/doc/books/ -regex '.*\.\(pdf\|epub\|djvu\)' -type f | sort | fzf --delimiter=/ --with-nth=-1 --preview 'pdfinfo {}' --preview-window=right:70%:wrap)"
|
|
|
|
# Open and redirect output to /dev/null
|
|
zathura "$selected" 2> /dev/null &
|