#!/bin/sh dir=~/books book=`find $dir -name *.pdf -o -name *.epub | sort | dmenu -l 8` if [ -n "$book" ] ; then zathura "$book" fi