#!/bin/bash file="$(dmenu -l 20 < <(locate ${1:-~}))" && $TERMINAL -e $FILE "$file"