#!/bin/sh # feed the script with your directory path # and it will list all your files and open them # in your prefered program with xdg-open find "$1" | dmenu -l 30 | xargs -I {} xdg-open "{}"