From 15f78fdab0441cf0d8b1f04ada357d97fac52ccb Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Fri, 14 Jan 2022 10:57:57 +0100 Subject: [PATCH] [scripts] fix: dmenuopen --- .local/bin/dmenuopen | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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