diff options
| -rw-r--r-- | TODO.md | 1 | ||||
| -rwxr-xr-x | anypinentry | 10 |
2 files changed, 6 insertions, 5 deletions
@@ -1,6 +1,7 @@ # TODO - [ ] Cli arg to set password prompt command - [ ] Cli arg to set confirmation prompt command + - [ ] Use text that is provided as commands - [ ] Clear password support? - [ ] Add repeat password support - [ ] Add confirmation command diff --git a/anypinentry b/anypinentry index 0384287..bc03360 100755 --- a/anypinentry +++ b/anypinentry @@ -8,14 +8,16 @@ if [[ -z "$DISPLAY" ]]; then fi title=""; -prompt=""; +prompt="Password :: "; description=""; keyinfo=""; -prompt_action=""; +prompt_action='dmenu -P -p "$AP_PROMPT"'; +confirm_action=''; ask_password() { - dmenu -P -p "$prompt" 2> /dev/null; + export AP_PROMPT="$prompt"; + echo -n '' | bash -c "$prompt_action" 2> /dev/null; } save_option() { @@ -79,8 +81,6 @@ parse_cliargs() { parse_cliargs "$@"; -exit 0; - interpret_command "INIT"; while read line; do |
