#!/bin/sh cd FILE="$(find -name '*.pdf' | sed -e 's/\.\///' | rofi -dmenu -p "PDF:")" if [[ $FILE != "" ]] ; then open-pdf $FILE fi