make better

This commit is contained in:
2025-12-01 23:54:15 -08:00
parent 8ac6e895b9
commit a9b5e2250a

View File

@ -1,3 +1,9 @@
#!/bin/sh
FILE=$(ls $HOME | xargs find | dmenu -c -i -l 10 -p "file to open")
FILE=$(find -type f -maxdepth 5 | dmenu -c -i -l 10 -p "path to open")
# try to execute
./"$FILE"&
if [[ $? == 1 ]]; then
xdg-open "$FILE"
fi