[scripts] fix: dmenuopen

This commit is contained in:
David JULIEN 2022-01-14 10:57:57 +01:00
parent 2cafd49a44
commit 15f78fdab0
1 changed files with 2 additions and 1 deletions

View File

@ -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