#!/bin/sh
FILE=$(find -maxdepth 5 -type f | dmenu -c -i -l 10 -p "path to open")

if ( ./"$FILE" ); then
  exit
else
  xdg-open "$FILE"
fi
