diff --git a/.local/bin/dmenuopen b/.local/bin/dmenuopen index 6894892..f92bfd5 100755 --- a/.local/bin/dmenuopen +++ b/.local/bin/dmenuopen @@ -15,8 +15,9 @@ filetype=$(printf "$filetypes" | sed "s| |\n|g" | dmenu -i -p "type of the file? [ -z "$filetype" ] && exit 1 +dirs=$(printf "$HOME/documents $HOME/downloads") -file=$(find $HOME/{documents,downloads} -type f -path "*.$filetype" | dmenu -i -l 20 -p "open") +file=$(find $dirs -type f -path "*.$filetype" | dmenu -i -l 20 -p "open") [ -z "$file" ] && exit 2