diff options
Diffstat (limited to '.local/bin/opendoc')
-rwxr-xr-x | .local/bin/opendoc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/.local/bin/opendoc b/.local/bin/opendoc index 5fb73e0..c0930cb 100755 --- a/.local/bin/opendoc +++ b/.local/bin/opendoc @@ -4,5 +4,13 @@ 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" & + case "$file" in + *.pdf) + zathura "$file" & + #sioyek "$file" & + ;; + *.djvu) + zathura "$file" & + ;; + esac fi |