diff options
| author | LM-LCL <hello@exaltedelite.club> | 2023-08-31 01:01:57 +0200 |
|---|---|---|
| committer | LM-LCL <hello@exaltedelite.club> | 2023-09-01 16:14:09 +0200 |
| commit | 9aa290b9667832c8ae41ed8bc36e57da7a74b9c2 (patch) | |
| tree | 532a98d4561a85952543c609e4ff7c5c45601b5a /lcl-find | |
| parent | fe92c7ac827b18673e1fa89dacfca370dcfd313d (diff) | |
complete script revamp
Diffstat (limited to 'lcl-find')
| -rwxr-xr-x | lcl-find | 20 |
1 files changed, 4 insertions, 16 deletions
@@ -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 |
