#!/bin/bash
set -euo pipefail

#selected=$(ls "$HOME/.local/bin" | tofi --prompt-text "Select script")
selected=$(find "$HOME/.local/bin" -maxdepth 1 -type f -exec basename {} \; | sort | wofi --dmenu --sort-order=alphabetical -p "Select Script: ")
autoscript "$selected"
