#!/bin/sh # Searches through .desktop files and prompt to launch them via dmenu choice="$(find ~/.local/share/applications -maxdepth 1 -type f -not -iname "wine-extension*" | awk '/\/[^.\/]+\.desktop/ {print $(NF-1)}' | commander -s -d -x -c)" [ "$choice" ] || exit 1 gtk-launch "$choice"