#!/bin/bash
set -euo pipefail

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