diff options
Diffstat (limited to 'scan')
-rwxr-xr-x | scan | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -0,0 +1,11 @@ +#!/bin/sh + +# Find all files in subdirectories (excluding top-level files) +file=$(find . -mindepth 2 -type f 2>/dev/null | sed 's|^\./||' | sort | dmenu -i -p "Select a file:") + +# If a file was selected +if [ -n "$file" ]; then + echo "You selected: $file" + # Do something with the selected file here, like open it: + # xdg-open "$file" # Uncomment if desired +fi |