~kris/dots

srice

ref: e98f3b030dc24445bd55c68d95d2d81933fd68b3 srice/.local/bin/nnn/nnn-zathura -rw-r--r-- 256 bytes
e98f3b03 — Kris Yotam chore: sync local state after restore (push updates, no pull) a month ago
                                                                                
1
2
3
4
5
6
7
8
#!/bin/sh
# nnn opener for read script — opens documents in Zathura
case "$1" in
    *.pdf|*.epub|*.djvu|*.mobi|*.cbz)
        zathura "$1" >/dev/null 2>&1 & disown ;;
    *)
        ${NNN_FALLBACK_OPENER:-xdg-open} "$1" >/dev/null 2>&1 & disown ;;
esac