i3-open-pdf 140 B

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