summaryrefslogtreecommitdiff
path: root/lcl-find
diff options
context:
space:
mode:
Diffstat (limited to 'lcl-find')
-rwxr-xr-xlcl-find20
1 files changed, 4 insertions, 16 deletions
diff --git a/lcl-find b/lcl-find
index 1a1fd42..1bd073e 100755
--- a/lcl-find
+++ b/lcl-find
@@ -1,17 +1,5 @@
-#! /bin/bash
-
-source ./util/dpath
-
-cd "$HOME/Desktop"
-file="$(find -L "$DPATH" \
- . \
- -type f | dmenu -b \
- -i \
- -l 25 \
- -p 'Search File:' \
- -nb '#ffffff' \
- -nf '#000080' \
- -sb '#000080' \
- -sf '#ffffff')"
-[ -f "$file" ] && xdg-open "$file" || exit 0
+#! /bin/sh
+selected="$(find ~/Archive -type d \( -name node_modules -o -name .git \) -prune -o \
+ -type f -name '*' -print | dmenu -i -l 15 -p 'Search File')"
+[ -f "$selected" ] && setsid -f xdg-open "$selected" > /dev/null 2>&1