Buscar archivos
This commit is contained in:
parent
69b25543bd
commit
b12d8ad01f
2 changed files with 32 additions and 0 deletions
25
.local/bin/buscar-archivos
Executable file
25
.local/bin/buscar-archivos
Executable 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
|
7
.local/share/applications/buscar-archivos.desktop
Normal file
7
.local/share/applications/buscar-archivos.desktop
Normal 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
|
Loading…
Reference in a new issue