i3-open-pdf 190 B

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