i3-open-pdf 139 B

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