12 lines
491 B
Bash
Executable File
12 lines
491 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)"
|
|
selected="$(find /home/h/doc/books/ -regex '.*\.\(pdf\|epub\|djvu\)' -type f | sort | fzf --delimiter=/ --with-nth=-1)"
|
|
|
|
# Open and redirect output to /dev/null
|
|
zathura "$selected" --fork
|