Browse Source

[scripts] fix: dmenuopen

logos
David JULIEN 4 months ago
parent
commit
15f78fdab0
  1. 3
      .local/bin/dmenuopen

3
.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

Loading…
Cancel
Save