Buscar archivos

This commit is contained in:
Cat /dev/Nulo 2021-11-03 09:16:37 -03:00
parent 69b25543bd
commit b12d8ad01f
2 changed files with 32 additions and 0 deletions

25
.local/bin/buscar-archivos Executable file
View file

@ -0,0 +1,25 @@
#!/bin/sh
set -e
cd ~
file="$(find \
Documents Sync Pictures Downloads \
-iname '*.jpg' -or \
-iname '*.png' -or \
-iname '*.js' -or \
-iname '*.md' -or \
-iname '*.txt' -or \
-iname '*.pdf' -or \
-iname '*.docx' -or \
-iname '*.mp3' -or \
-type d \
| fuzzel-run --dmenu --width=40)"
if test -e "$file"; then
xdg-open "$file"
fi
# if test -d "$file"; then
# xdg-open "$file"
# else
# xdg-open "$(dirname "$file")"
# fi

View file

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Buscar archivos
Exec=buscar-archivos
Categories=System;Monitor;ConsoleOnly;
Keywords=system;process;task