diff --git a/sh/tmenu b/sh/tmenu index cbfeec6..bff2038 100755 --- a/sh/tmenu +++ b/sh/tmenu @@ -3,6 +3,6 @@ file=$(mktemp) cat - > "$file" -st -c tmenu-prompt -g 40x10+0+0 -e tmenu-backend "$file" +st -c tmenu-prompt -g 40x10+0+0 -e tmenu-backend "$file" "$1" cat "$file" rm "$file" diff --git a/sh/tmenu-backend b/sh/tmenu-backend index cd2839b..28b755b 100755 --- a/sh/tmenu-backend +++ b/sh/tmenu-backend @@ -2,5 +2,5 @@ printf "%s" $1 -fzy < "$1" > "${1}a" +fzy $2 < "$1" > "${1}a" mv ${1}a ${1}