summaryrefslogtreecommitdiffstats
path: root/.local/bin/opendoc
blob: 5fb73e0e9c628a279b63b4551b03ef5b06953226 (plain) (blame)
1
2
3
4
5
6
7
8
#!/bin/bash

cd ~/library/ || exit 1
file=$(find -L . \( -iname '*.pdf' -or -iname '*djvu' \) -type f \
  -printf '%P\n' | sort | dmenu -i -l 10)
if test -f "$file"; then
  zathura "$file" &
fi