Replace find with fd.

This commit is contained in:
CronyAkatsuki 2022-11-28 13:42:35 +01:00
parent ad858aa740
commit 9ce1022f33

View File

@ -2,7 +2,7 @@
. $HOME/.config/dmenu/config . $HOME/.config/dmenu/config
file=$(find $HOME -type f | $DMENU -l 15) file=$(fd . "$HOME" --type f --hidden --color=never --exclude ".git" | $DMENU -l 15)
[ -z "$file" ] && exit [ -z "$file" ] && exit
if [ "$XDG_SESSION_TYPE" = "wayland" ]; then if [ "$XDG_SESSION_TYPE" = "wayland" ]; then
curl -F "file=@$file" 0x0.st | wl-copy -n curl -F "file=@$file" 0x0.st | wl-copy -n