From ee811e9ff30845d58830f57e9c232328e51638d6 Mon Sep 17 00:00:00 2001 From: Julian T Date: Mon, 16 Dec 2019 13:21:13 +0100 Subject: Proper dmenu usage --- scripts/Scripts/passmenu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/Scripts/passmenu') diff --git a/scripts/Scripts/passmenu b/scripts/Scripts/passmenu index e3cf4a8..be2d206 100644 --- a/scripts/Scripts/passmenu +++ b/scripts/Scripts/passmenu @@ -1,5 +1,7 @@ #!/usr/bin/env bash +DMENU="rofi -dmenu" + shopt -s nullglob globstar typeit=0 @@ -13,7 +15,7 @@ password_files=( "$prefix"/**/*.gpg ) password_files=( "${password_files[@]#"$prefix"/}" ) password_files=( "${password_files[@]%.gpg}" ) -password=$(printf '%s\n' "${password_files[@]}" | dmenu "$@") +password=$(printf '%s\n' "${password_files[@]}" | $DMENU -i "$@") [[ -n $password ]] || exit -- cgit v1.2.3